Win Developing a C# app for playing youtube videos on the xbmc box
#1
Hi.
So I would like to develop a relatively simple app (at least for now).
Functionality for now would just be.

1. Import playlist of YouTube links from file (https://www.youtube.com/watch?v= value; https://www.youtube.com/watch?v= another value; ...)
2. Play the first YouTube link, then the second etc.

So my question is:
When the YouTube app runs on my phone and I run a video.
I can then select "mediacenter" and play it on the xbmc.
Is there any C, C# code for this available? How would I find the media center on my local network and send it the YouTube clip?

Any guidance would be appreciated. The Code will also be public on BitBucket for anyone to use as they like.
Reply
#2
The only network device "discovery" mechanism supported by XBMC that comes to mind is Zeroconf.

For starting playback of a youtube clip you want to look into JSON-RPC and it's Player.Open functionality. There's at least one C# library for JSON-RPC but I'm not sure how up-to-date it is.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
Just for information there's currently a known bug not yet solved with Player.Open and youtube addon Smile
This will crash Xbmc on multiple devices.

You need to add it to video playlist and start the playlist to avoid this bug.

(Be also aware that ZeroConf is not available on Android at all, and not by default on Windows since it needs to install some Apple Bonjour things that most users won't have)
Reply

Logout Mark Read Team Forum Stats Members Help
Developing a C# app for playing youtube videos on the xbmc box0