Source

p5-soundswarm / lib / SoundSwarm / Client / Player.pm

Full commit
package SoundSwarm::Client::Playing;

use SoundSwarm::Syntax;
use Moo;

has port => (
	is      => 'lazy',
	isa     => Int,
	default => sub { 4242 },
);

has host => (
	is      => 'lazy',
	isa     => Str,
	default => sub { '127.0.0.1' },
);

with qw(
	MooseX::ConstructInstance
	SoundSwarm::Role::Logging
	SoundSwarm::Role::Client
	SoundSwarm::Role::Client::JSONRPC
);

__PACKAGE__->__proxy(qw(
	pause
	skip
	is_playing
));

1;