If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
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!

i can`t play m3u8 video via channel

<br /> def Play(url, **kwargs):<br /> return IndirectResponse(VideoClipObject, key=HTTPLiveStreamURL(url))<br />

I passed to function m3u8 url, but error is popuped.
<br /> 2017-02-05 13:23:11,845 (-c06e470) : CRITICAL (runtime:970) - Exception when constructing response (most recent call last):<br /> File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 951, in construct_response<br /> el = result._to_xml()<br /> File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py", line 667, in _to_xml<br /> el = Framework.modelling.objects.ModelInterfaceObjectContainer._to_xml(self)<br /> File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 382, in _to_xml<br /> root = Container._to_xml(self)<br /> File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 139, in _to_xml<br /> self._append_children(root, self._objects)<br /> File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 145, in _append_children<br /> el = obj._to_xml()<br /> File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/objectkit.py", line 545, in _to_xml<br /> raise Framework.exceptions.AttributeException('If no URL is provided, the key and rating_key attributes must be set.')<br /> AttributeException: If no URL is provided, the key and rating_key attributes must be set.<br />

so, i do insert rating_key attributes. like that
<br /> def Play(url, **kwargs):<br /> return IndirectResponse(VideoClipObject, key=HTTPLiveStreamURL(url), rating_key=url)<br />

But same error is occured. nothing change.

Best Answer


Sign In or Register to comment.