So I have a plex channel plugin partially working.
I can do a MCWS Search for video files, parse the returned MPL playlist and generate the selections in plex. I then create Plex's VideoClipObject for each movie (title, cover, description), which has a callback to start playing when it is selected. Plex has players for tons of devices (including my smart tv), and it looks like the most appropriate format is this (in Plex terms):
protocol = 'hls', # protocol = 'HTTPLiveStreaming'
container = 'mpegts',
video_codec = VideoCodec.H264,
video_resolution = HEIGHT,
audio_codec = AudioCodec.AAC,
They have a convenience type "HTTPLiveStreamURL" for with this type of media.
If I give this a url like the following:
MCWS/v1/File/GetFile.m3u8?File=<id>&Conversion=Android&Quality=High&Playback=2&Resolution=1920x1080&AndroidVersion=6.0&HLS=1&Start=0.0&Token=<token>
my channel will start playback on my Android phone. However, this doesn't work on the Smart TV or in Chrome browser (via Plex web app) on PC or Mac.
I can change the url based on the client, but I'd really appreciate some hints/suggestions for things to try.
Thanks again