2010-05-16, 11:00
Hi exobuzz. Thanks so much for putting these patches and builds together - my xbox was a little lonely without the Iplayer.
If I may, I have an off-topic question (not Iplayer related but to do with libRTMP)
Thanks to your libRTMP patch I though I'd look into getting a 4oD plugin working. I'm just stuck on one thing though. How do I generate the auth key?
I can get a stream to play from the xbox (from my plugin generated url) as long as I supply an authkey nicked from getflv. It is only valid for one file and seems to expire in about 5 minutes.
Example built rtmpe stream (this worked at some point before the authkey expired!):
This is How I Met Your Mother - Episode: As Fast as She Can
I can only get a valid authkey from getflv (closed source). I have yet to replicate it's generation with rtmpdump.
All I could find in the Iplayer code was:
I tried tracing it back but the structure of the coding is beyond me! I also couldn't find any other reference to authString anywhere. Could you provide a similar piece of code that would work for my plugin? I'd be extremely grateful.
Here's my messy plugin (lots of commented out code, unoptimised etc) for your perusal: 4oD_20100517_2253.rar
A couple of extra notes:
Please let me know if this shouldn't be here an I'll create a new post.
Edit: I should have done - New Post here.
If I may, I have an off-topic question (not Iplayer related but to do with libRTMP)
Thanks to your libRTMP patch I though I'd look into getting a 4oD plugin working. I'm just stuck on one thing though. How do I generate the auth key?
I can get a stream to play from the xbox (from my plugin generated url) as long as I supply an authkey nicked from getflv. It is only valid for one file and seems to expire in about 5 minutes.
Example built rtmpe stream (this worked at some point before the authkey expired!):
Code:
rtmpe://ak.securestream.channel4.com:1935/4oD/?ovpfv=1.1&auth=[b]da_a1dVaYdXaEcXcWbfdwdibdbncBakajbU-bl76LM-eS-gAT-kttDkpt7swpem8srnunsr3k2tTqvnsq7kYsckFtJsDphmMsfn6ndrbk3sfp8noqdkVtSkIt9sCoem2sw[/b]&aifp=v002&slist=assets/CH4_08_02_16_48398023001001_001.mp4 playpath=mp4:assets/CH4_08_02_16_48398023001001_001.mp4 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-4.49.7.swf swfvfy=true flashver=10,0,42,34 conn=Z: pageurl=http://www.channel4.com/programmes/how-i-met-your-mother/4od#3068826 app=4oD/?ovpfv=1.1&auth=[b]da_a1dVaYdXaEcXcWbfdwdibdbncBakajbU-bl76LM-eS-gAT-kttDkpt7swpem8srnunsr3k2tTqvnsq7kYsckFtJsDphmMsfn6ndrbk3sfp8noqdkVtSkIt9sCoem2sw[/b]&aifp=v002&slist=assets/CH4_08_02_16_48398023001001_001.mp4
I can only get a valid authkey from getflv (closed source). I have yet to replicate it's generation with rtmpdump.
All I could find in the Iplayer code was:
Code:
auth = conn.get('authString')
Here's my messy plugin (lots of commented out code, unoptimised etc) for your perusal: 4oD_20100517_2253.rar
A couple of extra notes:
- You can resume the RTMPE stream!
- Buffering seems to be rubbish on the xbox - the video bitrate doesn't seem any greater than the beeb (800kbps stream) but it drains the cache in 5 seconds and takes 10-20 to fill it
Please let me know if this shouldn't be here an I'll create a new post.
Edit: I should have done - New Post here.