Separate audio track for video playing from a remote URL
#1
Hi,

My add-on (pcloud-video-streaming) can play videos from a remote source - namely, videos stored somewhere on the cloud storage provider PCloud.

It works well for regular videos. However, I would like the plugin to play audio files which have the same basename as the video file, but with an audio extension.

For example, if the video filename is "mymovie.mp4", and there is another file in the same (cloud storage) directory called "mymovie.m4a", the plugin would play the (possibly silent) mp4 file, using the m4a file as audio track.

I know this works automatically with local library files. How can I make it work when the files are at a remote URL? This is the (simplified) code I'm using to play the video:

item = xbmcgui.ListItem(path=streamingUrl)  # streamingUrl is the file's location on PCloud
xbmcplugin.setResolvedUrl(addon_handle, True, item)  # effectively start playback
Reply

Logout Mark Read Team Forum Stats Members Help
Separate audio track for video playing from a remote URL0