Permalink
Browse files

fix example

  • Loading branch information...
1 parent 841b325 commit 9e96fecac8b81f2fc7b3d5c7ec6ec52abbac9499 @typester committed Sep 11, 2009
Showing with 3 additions and 3 deletions.
  1. +2 −2 example/lib/Service/LiveStreamingRecorder.pm
  2. +1 −1 example/server.pl
@@ -8,14 +8,14 @@ with 'Kamaitachi::Service::AutoConnect',
'Kamaitachi::Service::Streaming',
'Kamaitachi::Service::Recorder';
-has record_output_dir => (
+has output_dir => (
is => 'rw',
isa => 'Path::Class::Dir',
required => 1,
coerce => 1,
);
-sub record_output_dir { shift->{record_output_dir} }
+sub record_output_dir { shift->output_dir }
sub on_invoke_record {
my ($self, $session, $req) = @_;
View
@@ -21,7 +21,7 @@
'rpc/echo' => 'Service::Echo',
'rpc/chat' => 'Service::Chat',
'stream/live' => 'Service::LiveStreaming',
- 'stream/rec' => Service::LiveStreamingRecorder->new( record_output_dir => $dir ),
+ 'stream/rec' => Service::LiveStreamingRecorder->new( output_dir => $dir ),
);
$kamaitachi->run;

0 comments on commit 9e96fec

Please sign in to comment.