Send youtube video to xbmc won't play

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
waarten Offline
Junior Member
Posts: 7
Joined: Feb 2011
Reputation: 0
Question  Send youtube video to xbmc won't play Post: #1
hi all,

When i use the youtube app on my htc desire and choose share and play on xbmc the playlist stops and nothing happens. (I use xbmc remote v0.8.7-beta1)

I've installed the youtube addon and everything else with the remote app works like a charm.

Can anybody tell me how i can get this to work? Thanks.
(This post was last modified: 2011-11-05 13:48 by waarten.)
find quote
TechLife Offline
Member+
Posts: 348
Joined: Aug 2008
Reputation: 13
Location: Aurora, CO
Post: #2
I am having a similar issue on my ThunderBolt. If I find a YouTube link on Google and click it, I am presented with the open with options of YouTube or XBMC. If I choose XBMC, it will play. However, if I am in the YouTube app and click share and choose XBMC, it does not.

It looks to me like a Python script is launched when sent from Google, but not from YouTube when reviewing my logs.

The log is here: http://pastebin.com/3YnGkYaN

I think the ability to do this is a super cool feature. We just really need this part of it to work.

Any help will be greatly appreciated!!

*If I helped, please +rep below*
Main HTPC: Core i5, 8GB RAM, SSD, Win7x64SP1, Frodo 12.1
Extenders: 3-AppleTV (CrystalHD 2.0)
The XBMC team, plug-in devs, skinners, etc. do this for us for FREE in their spare time because they want to. Think about that for a second before you start bitching...
find quote
JabberwockPL Offline
Junior Member
Posts: 46
Joined: Jan 2010
Reputation: 0
Post: #3
It seems that the link does not play if the "feature=youtube_gdata_player" is attached to the URL... If it is stripped to play YouTube link, it works...

I am not sure where I should report it, though? Should it be fixed in the Android app or in the main XBMC?
find quote
JabberwockPL Offline
Junior Member
Posts: 46
Joined: Jan 2010
Reputation: 0
Post: #4
The YouTube addin guys are looking into this, but it seems it is on the XBMC Remote side. For the full log and the discussion see here:

http://forum.xbmc.org/showpost.php?p=964...count=1667
find quote
cancan101 Offline
Member+
Posts: 46
Joined: Sep 2010
Reputation: 0
Post: #5
I fixed this bug here: https://github.com/freezy/android-xbmcremote/pull/15
I am waiting for freezy to accept my merge request.
find quote
JabberwockPL Offline
Junior Member
Posts: 46
Joined: Jan 2010
Reputation: 0
Post: #6
I cannot see from the code if the video link (v=) is actually extracted from the link? I am asking, as it seems that Shazam sometimes does not place this portion as the first part of the URL after the site (i.e. the feature=player portion goes first).

It is not a big problem though, as I can share from Shazam to Android YouTube and then to XBMC.
find quote
cancan101 Offline
Member+
Posts: 46
Joined: Sep 2010
Reputation: 0
Post: #7
The regex I am using SHOULD work in those cases.

In java it's:

"^http(:?s)?:\\/\\/(?:www\\.)?(?:youtube\\.com|youtu\\.be)\\/watch\\?(?=.*v=(\\w+))(?:\\S+)?$"

you will need to unescape that to test it out.
find quote
JabberwockPL Offline
Junior Member
Posts: 46
Joined: Jan 2010
Reputation: 0
Post: #8
Deleted double post
(This post was last modified: 2012-01-04 01:51 by JabberwockPL.)
find quote
JabberwockPL Offline
Junior Member
Posts: 46
Joined: Jan 2010
Reputation: 0
Post: #9
I've tested it with the newest version and it works! ... Almost.

Regular links sent from YouTube app work great (yes!). Also Shazam works fine. The only problem is with playlists - the videos there have different URLs. First of all they are secure (https - does that mean I need to be logged on HTPC to play them?). Besides one of the videos starts with a hyphen (-).

Example link:
https://www.youtube.com/watch?v=-shxKSJ_...ata_player
find quote
JabberwockPL Offline
Junior Member
Posts: 46
Joined: Jan 2010
Reputation: 0
Post: #10
Update:
My testing was too limited - it turns that it is not a matter of playlists at all - it's just the dash that breaks it.
find quote
Post Reply