channel plug in only streams to some devices

Hi I have made a plugin that streams fine to the appleTV but dont seem to work in any other client.
its linking to a html5 video stream that is playing an mp4 video

this link has expired but basically I am linking to video feeds like this
https://redirector.googlevideo.com/videoplayback?requiressl=yes&id=cdb7a0783bbaab40&itag=18&source=webdrive&app=texmex&ip=2607:5300:60:400f::1&ipbits=32&expire=1453294810&sparams=requiressl%2Cid%2Citag%2Csource%2Cip%2Cipbits%2Cexpire&signature=2691895132BDC7BF9B4E2B0EAF548D72E7A2DB5B.6E174A1B5E3694E342FF581BE5357BBAAF6BD497&key=ck2&mm=30&mn=sn-p5qlsnzy&ms=nxu&mt=1453280380&mv=m&nh=IgpwcjAzLmlhZDA3Kg0yNjA3OjUzMDA6OmFl&pl=42,43&cpn=&c=WEB&cver=html5

linking to the video this redirects to don’t make any difference

the video is being added with this code
oc.add(CreateVideoClipObject(
url=vidurl,
title=title,
thumb=url
))

def CreateVideoClipObject(url, title, thumb, container = False):
vco = VideoClipObject(
key = Callback(CreateVideoClipObject, url = url, title = title, thumb = thumb, container = True),
#rating_key = url,
url = url,
title = title,
thumb = GetThumb(thumb),
items = [
MediaObject(
# container = Container.MP4, # MP4, MKV, MOV, AVI
# video_codec = VideoCodec.H264, # H264
# audio_codec = AudioCodec.AAC, # ACC, MP3
# audio_channels = 2, # 2, 6
# parts = [PartObject(key=Callback(PlayVideo, url = url))]
video_codec = VideoCodec.H264,
audio_codec = AudioCodec.MP3,
video_resolution = ‘720’,
audio_channels = 2,
container = ‘mp4’,
parts=[
PartObject(
# key = url
key = HTTPLiveStreamURL(url)
)
],
optimized_for_streaming = True
)
]
)

if container:
    return ObjectContainer(objects = [vco])
else:
    return vco
return vco

ok I seem to be having a few problems I think are to do with plex,

  1. when looking at the web browser console it shows that some of the video link data is trying to link to 127.0.0.1 when this is not hosted on the computer in question
  2. the transcode url is giving a 404 error from the PMS looking at the log files I see that I am getting transcoder crash reports The crash log dont really seem to show anything useful
    it could be that I am not running it over ssl as get an error saying
    symbol not found: _SSLCreateContext

Ok found the problem and now it streams to all devices before I was using HTTPLiveStreamURL and was under the impression from the documentation that it automatically set the protocol, container, video_codec, audio_codec anyway after setting these values manually it allworked

You probably don’t want to use HTTPLiveStreamURL here, because MP4 and HTTPLiveStreamURL are 2 different types of video.

@sander1 said:
You probably don’t want to use HTTPLiveStreamURL here, because MP4 and HTTPLiveStreamURL are 2 different types of video.

In the end I got it working by setting all the correct video codec and using a call back function that returned the url after it looked up the correct url feed

return Redirect(url)