Permalink
Browse files

Now Red5 flash demos may play streams, so it is possible to use their…

… Publisher
  • Loading branch information...
1 parent d89663f commit 80fdc4175de86f0ab5fb6db20a5b3c2fd4d5a075 @windock committed Nov 27, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/apps/apps_streaming.erl
@@ -131,7 +131,10 @@ play(#amf{args = [_Null, {boolean, false} | _]} = AMF, State) -> stop(AMF, State
play(AMF, #rtmp_client{video_player = Player} = State) ->
StreamId = 1,
Channel = #channel{id = 5, timestamp = 0, stream = StreamId},
- [_Null,{string,Name}] = AMF#amf.args,
+ case AMF#amf.args of
+ [_Null, {string, Name}] -> ok;
+ [_Null, {string, Name}, {number, _DoNotKnowWhatItIsButRed5DemosSendIt}] -> ok
+ end,
?D({"invoke - play", Name, AMF}),
case Player of
undefined -> ok;

1 comment on commit 80fdc41

@maxlapshin
Contributor

This commit is not full, look here: http://github.com/maxlapshin/erlyvideo/commit/cef1cf20e0a2ded1aa30d9fa761126b78e6f40eb

And I've merged your branch, except this commit.

Please sign in to comment.