Play video by passing it to another addon
#1
I'm writing a video addon that offers free videos from other websites. Playing these video files directly through the xbmc.player poses no problems but I don't know what to do when these videos are hosted on sites like Vimeo or YouTube.

I have the player links or IDs of the videos but is there a way to launch an other addon (like the Vimeo or YouTube addons) as player? I'm using Kodi on LibreElec/RPi4.

I could only find out how to configure an external player through playercorefactory.xml but not how to pass an url or ID to another addon.
Reply
#2
(2020-09-16, 14:19)pa79 Wrote: I'm writing a video addon that offers free videos from other websites. Playing these video files directly through the xbmc.player poses no problems but I don't know what to do when these videos are hosted on sites like Vimeo or YouTube.

I have the player links or IDs of the videos but is there a way to launch an other addon (like the Vimeo or YouTube addons) as player? I'm using Kodi on LibreElec/RPi4.

I could only find out how to configure an external player through playercorefactory.xml but not how to pass an url or ID to another addon.

For youtube you only need to call the addon with its url and replace the [ID]
Code:
xbmc.executebuiltin(RunPlugin("plugin://plugin.video.youtube/?action=play_video&videoid=[ID]")
Reply



Logout Mark Read Team Forum Stats Members Help
Play video by passing it to another addon0
This forum uses Lukasz Tkacz MyBB addons.