[MPlayer-dev-eng] rtmpe support

Howard Chu hyc at highlandsun.com
Fri Mar 12 08:27:57 CET 2010


I've written the attached module to let mplayer use rtmpdump's librtmp. 
Unfortunately, I don't see how to pass in the necessary options, mplayer.c 
always calls open_stream() with options==NULL, so there doesn't seem to be any 
way to pass stream options in from the command line. Note that just adding 
options to the main URL would be extremely ugly, since RTMP URLs can be pretty 
long to begin with, and typically 2-3 other very long URLs are also needed. 
E.g., to play this movie from Youtube (actually crackle.com) we have to supply 
these URLs:
   main: 
rtmpe://cdn-auth.akamai.crackle.com/ondemand/crackle/1/n/sk/6dpvb_306p.mp4
   swfUrl: http://crackle.com/flash/CracklePlayer.swf?id=2419511&site=219
   pageUrl: http://www.youtube.com/watch?v=yPeNnReBK0A&feature=spotlight

Any suggestions?
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream_rtmp.c
Type: text/x-csrc
Size: 5471 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100311/3bed41b9/attachment.c>


More information about the MPlayer-dev-eng mailing list