Kodi Community Forum
Play video by passing it to another addon - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
--- Thread: Play video by passing it to another addon (/showthread.php?tid=357129)



Play video by passing it to another addon - pa79 - 2020-09-16

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.


RE: Play video by passing it to another addon - Space2Walker - 2020-10-17

(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]")



This forum uses Lukasz Tkacz MyBB addons.