Git Product home page Git Product logo

erlyvideo-ucengine's Introduction

U.C.Engine plugin for Erlyvideo

Introduction

erlyvideo_ucengine is a plugin to bind Erlyvideo events and U.C.Engine events, it allows U.C.Engine clients to connect to Erlyvideo through U.C.Engine events.

Docs

U.C.Engine

docs.ucengine.org/erlyvideo.html

Install it from scratch

# Fetch af83's fork of Erlyvideo
$ git clone https://github.com/AF83/erlyvideo.git --branch plugins
$ mkdir erlyvideo/plugins
$ cd erlyvideo/plugins/

# Fetch erlyvideo_ucengine sources
$ git clone git://github.com/AF83/erlyvideo-ucengine.git erlyucengine

# Build Erlyvideo
$ cd ../
$ make

# Update configuration, then run Erlyvideo
$ make run

Configuration

Add the following lines to our priv/erlyvideo.conf:

{ucengine, [{host, "localhost"},
    {port, 5280},
    {uid, "erlyvideo"},
    {token, "da93ae03c1280f82709f857ffa22f0a30c26fa9c"}]}.

And don't forget to add 'ucengine' in our module list:

{modules, [ucengine]}.

And replace trusted_login by ucengine_login in rtmp_handlers, like that:

{rtmp_handlers, [{auth_users_limit, 200}, ucengine_login, apps_push, apps_streaming, apps_recording]},

License

Copyright 2010-2011, af83

The default license for all files is GPLv3.

erlyvideo-ucengine's People

Contributors

francois2metz avatar tokeshu avatar

Stargazers

Paulo A Pereira avatar  avatar Nikola Dachev avatar Alexandre Eisenchteter avatar Erlyvideo avatar Anton Andonov avatar Patrycjusz Szydło avatar  avatar Zvi avatar elias showk avatar Shree Dittakavi avatar Adam Hill avatar  avatar

Watchers

 avatar Florent Peyraud avatar Xinhui Xu avatar Ori Pekelman avatar Alexandre Eisenchteter avatar Johan Van Ryseghem avatar James Cloos avatar Rouffi avatar Mike G. avatar  avatar Victor Deschamps de Paillette avatar Kevin Bonnin avatar Guillaume avatar  avatar  avatar Aurelien Grmd avatar  avatar  avatar

Forkers

chinnurtb

erlyvideo-ucengine's Issues

Error after plugin install

Hello,

I have done install, step by step from README. After finished, when i run any video in erlyvideo Admin i have error:


** Reason for termination = 
** {{cant_load_file,ucengine_login},
    [{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-14 18:4:48 <0.127.0> {crash_report,[[{initial_call,{rtmp_session,init,['Argument__1']}},{pid,<0.127.0>},{registered_name,""},{error_info,{exit,{{cant_load_file,ucengine_login},[{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.88.0>]},{messages,""},{links,[<0.111.0>]},{dictionary,[{random_seed,{1305,25404,24221}}]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,24},{reductions,506}],""]}
error 2011-05-14 18:4:48 <0.111.0> {supervisor_report,[{supervisor,{local,rtmp_session_sup}},{errorContext,child_terminated},{reason,{{cant_load_file,ucengine_login},[{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.127.0>},{name,undefined},{mfargs,{rtmp_session,start_link,""}},{restart_type,temporary},{shutdown,2000},{child_type,worker}]}]}

What do you think?

patS

Video flashing and neverending loop

Hello,

After successful running example from Quickstart, in place where i expect a video i got blinking place.
After quick look into firebug it seems like there is neverending loop of ajax requests.

From erlyvideo

debug 2011-05-19 21:2:37 [main] auth_users_limit:32 {"Checking limit",200,2}
info 2011-05-19 21:2:37 check acl video.view ok (meeting: biba, uid: 94286445423260827980699139965693)
info 2011-05-19 21:2:37 PLAY 127.0.0.1 [{meeting,"biba"},{uid,"94286445423260827980699139965693"}] 1305831757376555 biba 1
info 2011-05-19 21:2:39 DISCONNECT 127.0.0.1 default [{meeting,"biba"},
                              {uid,"94286445423260827980699139965693"}] 1305831757376555 3755 13193
debug 2011-05-19 21:2:40 [main] auth_users_limit:32 {"Checking limit",200,2}
info 2011-05-19 21:2:40 check acl video.view ok (meeting: biba, uid: 94286445423260827980699139965693)
info 2011-05-19 21:2:40 PLAY 127.0.0.1 [{meeting,"biba"},{uid,"94286445423260827980699139965693"}] 1305831760955007 biba 1
info 2011-05-19 21:2:42 DISCONNECT 127.0.0.1 default [{meeting,"biba"},
                              {uid,"94286445423260827980699139965693"}] 1305831760955007 3755 363
debug 2011-05-19 21:2:46 [main] auth_users_limit:32 {"Checking limit",200,2}
info 2011-05-19 21:2:46 check acl video.view ok (meeting: biba, uid: 94286445423260827980699139965693)
info 2011-05-19 21:2:46 PLAY 127.0.0.1 [{meeting,"biba"},{uid,"94286445423260827980699139965693"}] 1305831766023237 biba 1
info 2011-05-19 21:2:53 DISCONNECT 127.0.0.1 default [{meeting,"biba"},
                              {uid,"94286445423260827980699139965693"}] 1305831766023237 3755 17017

Error when running stream from erlyvideo admin

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}]}]}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.