af83 / erlyvideo-ucengine

U.C.Engine plugin for Erlyvideo
http://ucengine.org
GNU General Public License v3.0
14 stars 1 forks source link

Error when running stream from erlyvideo admin #2

Open pats opened 13 years ago

pats commented 13 years ago

Hi,

When i try run stream video from erlyvideo admin i get error


error 2011-05-19 20:24:5 ** State machine <0.279.0> terminating 
** Last message in was {rtmp,<0.278.0>,
                           {rtmp_message,8,new,58,invoke,1,
                               {rtmp_funcall,0,<<"play">>,0.0,
                                   [null,<<"biba">>],
                                   1,invoke}}}
** When State == 'WAIT_FOR_DATA'
**      Data  == {rtmp_session,default,<<"rtmp">>,<0.278.0>,"127.0.0.1",
                     61051,1305829445530591,0,[],undefined,
                     [{app,<<"rtmp">>},
                      {flashVer,<<"MAC 10,1,102,64">>},
                      {swfUrl,<<"http://localhost:8082/jwplayer/player.swf">>},
                      {tcUrl,<<"rtmp://localhost/rtmp">>},
                      {fpad,false},
                      {capabilities,239.0},
                      {audioCodecs,3191.0},
                      {videoCodecs,252.0},
                      {videoFunction,1.0},
                      {pageUrl,<<"http://localhost:8082/#">>},
                      {objectEncoding,0.0}],
                     [{rtmp_stream,undefined,1,undefined,false,false,true,
                          true}],
                     0,0,[],[]}
** Reason for termination = 
** {function_clause,
       [{ucengine_login,user_can,
            [{rtmp_session,default,<<"rtmp">>,<0.278.0>,"127.0.0.1",61051,
                 1305829445530591,0,[],undefined,
                 [{app,<<"rtmp">>},
                  {flashVer,<<"MAC 10,1,102,64">>},
                  {swfUrl,<<"http://localhost:8082/jwplayer/player.swf">>},
                  {tcUrl,<<"rtmp://localhost/rtmp">>},
                  {fpad,false},
                  {capabilities,239.0},
                  {audioCodecs,3191.0},
                  {videoCodecs,252.0},
                  {videoFunction,1.0},
                  {pageUrl,<<"http://localhost:8082/#">>},
                  {objectEncoding,0.0}],
                 [{rtmp_stream,undefined,1,undefined,false,false,true,true}],
                 0,0,[],[]},
             <<"biba">>,"view"]},
        {rtmp_session,call_mfa,3},
        {rtmp_session,handle_info,3},
        {gen_fsm,handle_msg,7},
        {proc_lib,init_p_do_apply,3}]}

error 2011-05-19 20:24:5 <0.279.0> {crash_report,[[{initial_call,{rtmp_session,init,['Argument__1']}},{pid,<0.279.0>},{registered_name,""},{error_info,{exit,{function_clause,[{ucengine_login,user_can,[{rtmp_session,default,<<"rtmp">>,<0.278.0>,"127.0.0.1",61051,1305829445530591,0,"",undefined,[{app,<<"rtmp">>},{flashVer,<<"MAC 10,1,102,64">>},{swfUrl,<<"http://localhost:8082/jwplayer/player.swf">>},{tcUrl,<<"rtmp://localhost/rtmp">>},{fpad,false},{capabilities,239.0},{audioCodecs,3191.0},{videoCodecs,252.0},{videoFunction,1.0},{pageUrl,<<"http://localhost:8082/#">>},{objectEncoding,0.0}],[{rtmp_stream,undefined,1,undefined,false,false,true,true}],0,0,"",""},<<"biba">>,"view"]},{rtmp_session,call_mfa,3},{rtmp_session,handle_info,3},{gen_fsm,handle_msg,7},{proc_lib,init_p_do_apply,3}]},[{gen_fsm,terminate,7},{proc_lib,init_p_do_apply,3}]}},{ancestors,[rtmp_session_sup,ems_user_sessions_sup,ems_sup,<0.87.0>]},{messages,[{rtmp,<0.278.0>,{rtmp_message,2,delta,16036139,buffer_size,1,1000}}]},{links,[<0.112.0>]},{dictionary,[{random_seed,{1305,11156,29658}}]},{trap_exit,true},{status,running},{heap_size,2584},{stack_size,24},{reductions,1076}],""]}
error 2011-05-19 20:24:5 <0.112.0> {supervisor_report,[{supervisor,{local,rtmp_session_sup}},{errorContext,child_terminated},{reason,{function_clause,[{ucengine_login,user_can,[{rtmp_session,default,<<"rtmp">>,<0.278.0>,"127.0.0.1",61051,1305829445530591,0,"",undefined,[{app,<<"rtmp">>},{flashVer,<<"MAC 10,1,102,64">>},{swfUrl,<<"http://localhost:8082/jwplayer/player.swf">>},{tcUrl,<<"rtmp://localhost/rtmp">>},{fpad,false},{capabilities,239.0},{audioCodecs,3191.0},{videoCodecs,252.0},{videoFunction,1.0},{pageUrl,<<"http://localhost:8082/#">>},{objectEncoding,0.0}],[{rtmp_stream,undefined,1,undefined,false,false,true,true}],0,0,"",""},<<"biba">>,"view"]},{rtmp_session,call_mfa,3},{rtmp_session,handle_info,3},{gen_fsm,handle_msg,7},{proc_lib,init_p_do_apply,3}]}},{offender,[{pid,<0.279.0>},{name,undefined},{mfargs,{rtmp_session,start_link,""}},{restart_type,temporary},{shutdown,2000},{child_type,worker}]}]}
francois2metz commented 13 years ago

Hi,

It's a know issue. This is because we protect stream with a token, and the admin panel of erlyvideo doesn't know this token.

pats commented 13 years ago

Ok, thx for info. Is any roadmap/milestones anywhere?

francois2metz commented 13 years ago

It's a bit complicated. We have now way, from the plugin point of view, to alter the admin panel.

It's a big problem for you ?

pats commented 13 years ago

Not now.