2020-09-24, 21:10
Hello.
I wrote myself a small addon to solve a problem that is specific to my needs. the addon simply receives a video URL (from my HTTP server) and then plays it using the xbmc.Player class like this:
what I want to do is to pass the name of a video file to this addon using .STRM files currently my file looks like this:
this does in fact work and the playback starts but there is an error before the video starts playing which says "can't find a next item to play" which I want to get rid of.
lastly and before anyone says it no, I can't place the URL directly into the .STRM file since the server requires authentication and an API request in order to give the URL to the requested video file
debug log link
I wrote myself a small addon to solve a problem that is specific to my needs. the addon simply receives a video URL (from my HTTP server) and then plays it using the xbmc.Player class like this:
python:
url = getVideoPath(videoName) # http://my_server_address/video.mp4
player = MyPlayer()
player.play(url)
while self.isPlaying():
xbmc.sleep(100)
what I want to do is to pass the name of a video file to this addon using .STRM files currently my file looks like this:
python:
plugin://plugin.video.myAddonName/?action=play&filename=video.mp4
this does in fact work and the playback starts but there is an error before the video starts playing which says "can't find a next item to play" which I want to get rid of.
lastly and before anyone says it no, I can't place the URL directly into the .STRM file since the server requires authentication and an API request in order to give the URL to the requested video file
debug log link