integrating third party flash player
#1
Hi,
Is there away to integrate a cloud based player directly into the add on. What I mean by that is the following.

I have a website which contains lots of videos and streams from different sources such as dailymotion, youtube and etc....

I can play these vidoes using an embed code from dailymotion or youtube, example

https://www.youtube.com/embed/ULAWCTw6mdU (this will play the video in fullscreen on the browser). I can also take this same code put in my video player online and play the video through on my website.

But to play this video on xbmc I have to use youtube plugin, which I don't want. What I want is to play this video using my own player integrated into my addon/plugin. Or construct the play link in away that it uses my cloudbase player.

I want to know if it is possible if so how can it be done. I just need few pointer or if someone could point us into the right direction.

Thanks

Rosh
Reply
#2
You can't implement your own "player" - but you also don't have to. XBMC just needs a playable URL (rtmp, flv, mp4 etc.). You can either scrape/find/calculate the playable URLs yourself or you can just return plugin-URLs which then return the playable URLs for you.

Examples: For youtube your add-on has to set the listitem path to "plugin://plugin.video.youtube/?action=play_video&videoid=<VIDEO-ID>".
For your example (https://www.youtube.com/embed/ULAWCTw6mdU): "plugin://plugin.video.youtube/?action=play_video&videoid=ULAWCTw6mdU".

Same with the other video hosters, if there is already an add-on have a quick look how the URL needs to be constructed and use it.
My GitHub. My Add-ons:
Image
Reply
#3
Thanks sphere, I want to stay away from using other add-ons. Can someone please explain me the following concepts

1. What is playpath?
2. What is swfUrl what exactly does it do?

If I construct my play string in a fashion like this could it work playpath=https://www.youtube.com/embed/ULAWCTw6mdU swfURL=http://mydomain/myplayer.swf

I am not a programmer but just trying to understand how everything works, so when I am working with an experienced programmer all this would make sense to him and I.

Thanks
Reply
#4
http://en.wikipedia.org/wiki/Real_Time_M...g_Protocol
http://en.wikipedia.org/wiki/Rtmpdump

happy reading..
Reply

Logout Mark Read Team Forum Stats Members Help
integrating third party flash player1