Resolution Selection In Channel Plugin
I'm attempting to write a channel plugin. It's working except that I have 'hardcoded' my resolution selection.
The site I'm streaming content from has different URLs for each resolution - for instance:
http://whatever/filename_1080p.mp4 <-- so I end up always using this one.
But I would like the choice!
I notice on other channels I've downloaded, a box pops up with resolution options before streaming the content.
I'm wondering how this way done!? Trying to peak at the code I see the following, but because my URLs are different I don't see that working for me.
MediaObject( parts = [ PartObject(key=Callback(PlayVideo, smil_url=smil_url, resolution=resolution)) ], container = Container.MP4, video_codec = VideoCodec.H264, audio_codec = AudioCodec.AAC, audio_channels = 2, video_resolution = resolution ) for resolution in [720, 540, 480]
I really just want to know how to trigger the resolution selection box.
Look at the food network plugin if you need an example!
Thanks for your help!