2012-05-12, 17:33
Short description.
On UFC.tv you can purchase fights legally from the UFC so this is an official thing not some behind-the-scenes-sketchy kind of thing. Uses RTMP and mp4, the player is a flashplayer on the site.
Goal.
To be able to login using the addon and watch free videos + any purchased videos. Purchase might have to be done using a browser unless someone can figure out how to do it using the addon.
Notes.
I've not yet managed to use rtmpdump to access any of the videos even the free ones, been doing some dumps with wireshark but no progress yet. I will be more then happy to help with debugging and testing.
Debugging trying to play a free video:
HTML code:
Note sure if the code to FlexPlayer is GPL or BSD or something like that, but here's the URL to the js file, http://e1.cdnl3.neulion.com/ufc/player/u...xplayer.js
On UFC.tv you can purchase fights legally from the UFC so this is an official thing not some behind-the-scenes-sketchy kind of thing. Uses RTMP and mp4, the player is a flashplayer on the site.
Goal.
To be able to login using the addon and watch free videos + any purchased videos. Purchase might have to be done using a browser unless someone can figure out how to do it using the addon.
Notes.
I've not yet managed to use rtmpdump to access any of the videos even the free ones, been doing some dumps with wireshark but no progress yet. I will be more then happy to help with debugging and testing.
Debugging trying to play a free video:
Quote:deegan@lappy:~$ rtmpdump -r rtmp://cp117209.edgefcs.net/ondemand/mp4:s/ufc/vod/vol1/20120813/ufc-151-jones-pre-interview.dsk_400.mp4 -o foo -V
RTMPDump v2.3
© 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMP
DEBUG: Hostname : cp117209.edgefcs.net
DEBUG: Port : 1935
DEBUG: Playpath : mp4:s/ufc/vod/vol1/20120813/ufc-151-jones-pre-interview.dsk_400.mp4
DEBUG: tcUrl : rtmp://cp117209.edgefcs.net:1935/ondemand
DEBUG: app : ondemand
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 370180183
DEBUG: HandShake: FMS Version : 3.5.7.1
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: RTMP_ClientPacket, received: invoke 134 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Rejected>
DEBUG: Property: <Name: description, STRING: [ AccessManager.Reject ] : Access denied!>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
DEBUG: Closing connection.
HTML code:
Quote:<script type="text/javascript">writeFlexPlayer("rtmp://cp117209.edgefcs.net/ondemand/mp4:s/ufc/vod/vol1/20120813/ufc-151-jones-pre-interview.dsk_400.mp4", false, "1648", "UFC 151: Jon Jones Pre-Fight Interview","",true)</script>
Note sure if the code to FlexPlayer is GPL or BSD or something like that, but here's the URL to the js file, http://e1.cdnl3.neulion.com/ufc/player/u...xplayer.js