Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

includeBandwidths?

papalozaroupapalozarou Members, Plex Pass Posts: 96 Plex Pass

I've just gotten around to updating to the latest PMS (1.5.4.x) and it's borked a live streaming plugin.

It throws an error saying that my createChannelObject[] has an unexpected keyword argument of includeBandwidths

Adding it to my createChannelObject[] with value of either 0, 1 or False throws a second error on iOS complaing about no direct playback for HTTP, with container MP4, codec H264, audio codec AC3. The offending code appears to be:

video_codec = "H264", audio_codec = "AAC", container = "MP4", protocols = "HTTPLiveStreaming",

(I'm using an @indirect playback method as I need to generate a URL when play is pressed)

If I remove video_codec, audio_codec and container it will play the stream, but:

  • I have no idea what a value of 0, 1 or False does to includeBandwidths as I don't know what it is
  • iOS complains the server is not fast enough to transcode on iOS

Prior to the updated PMS the plugin worked perfectly.

Best Answer

Answers

  • sander1sander1 Channel Developer/Admin Members, Plex Pass, Plex Ninja Posts: 3,611 Plex Ninja

    Instead of adding the exact "missing" parameters to my functions, I usually have added **kwargs (example) at the end of the function/parameters declaration. That way it'll keep working, even if anything new is (accidentally) added later in time.

    http://stackoverflow.com/questions/36901/what-does-double-star-and-star-do-for-python-parameters

  • papalozaroupapalozarou Members, Plex Pass Posts: 96 Plex Pass

    Thanks @sander1 that helps.

    It does still leave me not knowing what that argument does, and why the properties (video_codec etc.) now cause iOS to choke

  • papalozaroupapalozarou Members, Plex Pass Posts: 96 Plex Pass

    Thanks again @sander1 – will try the above.

Sign In or Register to comment.