Playlist2XBMC – Chrome Extension

  Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tojnk Offline
Junior Member
Posts: 11
Joined: Jun 2008
Reputation: 1
Post: #11
(2012-05-06 12:52)tojnk Wrote:  The only problem I have, is that when you click play while a video is already playing, the new video start to play in the background, with the menus still present in the foreground. Does anyone else have this problem as well?

I think this problem is caused by sending a "Player.Open" command while the previous command ("Playlist.Clear") is still running. A workaround is to make jquery calls synchronous by using:
Code:
$.ajaxSetup({async:false});
or to make use of the jquery callback functions.
find quote
vdloo Offline
Junior Member
Posts: 5
Joined: May 2012
Reputation: 1
Post: #12
(2012-06-09 21:13)tojnk Wrote:  I think this problem is caused by sending a "Player.Open" command while the previous command ("Playlist.Clear") is still running. A workaround is to make jquery calls synchronous by using:
Code:
$.ajaxSetup({async:false});
or to make use of the jquery callback functions.

Making the calls synchronous didn't stop it from happening, however your advice did point me in the right direction. The fix turned out to be changing the 'Player.Open' command to 'Player.GoTo' for when the a video is already playing.
find quote
Outbreak Monkey Offline
Junior Member
Posts: 2
Joined: Jul 2009
Reputation: 0
Post: #13
Hey, nice work.. BUT - Just a heads up for you (in case you want to head this off early):

The XBMC Nightly builds recently changed to require the content-type set to "application/json" in your ajax request..
Without the content-type set, you get a 415 "Unsupported Media Type"

Cheers!
ObM.
find quote
vdloo Offline
Junior Member
Posts: 5
Joined: May 2012
Reputation: 1
Post: #14
(2012-07-05 08:16)Outbreak Monkey Wrote:  The XBMC Nightly builds recently changed to require the content-type set to "application/json" in your ajax request..
Without the content-type set, you get a 415 "Unsupported Media Type"

Thanks for the heads up, I changed the content-type so it should work now.
find quote
Outbreak Monkey Offline
Junior Member
Posts: 2
Joined: Jul 2009
Reputation: 0
Post: #15
Cool, quick response! Smile

The guys in our office made their own plugin a while back. We started using yours because they never got around to building support for playlists and queueing videos (they just used player.open).. THOUGH we do have support for Vimeo and College Humour.

Just another thought for you (I think I saw you said you wanted to support other video sites) - to give you some feedback on our experience:
Your UI stuff for YouTube is nice.. BUT to make support easier, have you thought about moving your UI to an extension button beside the URL/Omni bar?
This will save you rewriting your UI for each of the video sites and make for a consistent experience across all video sites.
[Image: 4qayrqqr.png]
(This is just a quick hacked up UI we're using)
Again, just thoughts - there's definite merit in integrating with the Youtube UI..
BUT it makes support a biatch for multiple sites. Also if they decide to screw with IDs you're forever updating your code! Smile

Anyway, keep up the good work!
Cheers,
ObM.
find quote
Kibje Offline
Team-XBMC Member
Posts: 888
Joined: Jan 2010
Reputation: 27
Location: Netherlands
Post: #16
The new youtube layout broke it Sad

When your issue is solved, please edit your original post and select Solved Issue from the pulldown menu. Thanks!
find quote
Canadaka Offline
Junior Member
Posts: 17
Joined: Jan 2012
Reputation: 0
Post: #17
either this extension doesn't work with the new Youtube layout or with XBMC Frodo
find quote
Post Reply