Kodi Community Forum

Full Version: Play video by passing it to another addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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]")