khloke / play-to-xbmc-chrome

A Google Chrome Extension for sending online content to be played on XBMC. Supported websites include YouTube, Vimeo, CollegeHumor, DailyMotion, eBaumsWorld and SoundCloud.
MIT License
186 stars 112 forks source link

Pause current playing #56

Closed Andulien closed 9 years ago

Andulien commented 9 years ago

Feature Reuqest: When hitting "Play to Kodi" the current playing Youtube Video in Chrome should be paused.

Keep up the good work :)

khloke commented 9 years ago

Sound reasonable. Will look into it.

Andulien commented 9 years ago

Sounds great. Looking forward to it :) Might have a look here: https://developers.google.com/youtube/js_api_reference?csw=1

player.pauseVideo():Void

Let me know when you updated it, I'm happy to test.

Andulien commented 9 years ago

When hitting Play now on Youtube the new option doesn't work "Videos on YouTube, Vessel and AnimeLab will auto pause when sent to Kodi."

Also a new Installation didn't help.

khloke commented 9 years ago

Sorry, this only works when using the context menu for YouTube at the moment. Which is why I haven't mark this as compete. My bad I forgot to point this out in the changelog.

On Mon, 15 Jun 2015 1:15 am Andulien notifications@github.com wrote:

When hitting Play now on Youtube the new option doesn't work "Videos on YouTube, Vessel and AnimeLab will auto pause when sent to Kodi."

— Reply to this email directly or view it on GitHub https://github.com/khloke/play-to-xbmc-chrome/issues/56#issuecomment-111840680 .

Andulien commented 9 years ago

Commit: 89a9ae3 Working with the newest Version 1.7.5.1. Just tested it :+1: When hitting PlayNow on the Chrome Icon, it will pause the current playing tab.

Question: Should this also be added for Queued and PlayNext?

khloke commented 9 years ago

I intend to make this work with Queue only when there is nothing playing at the moment and it starts playing but not when adding to a queue. As for play next, I won't make it pause for the same reason as queuing. I think it makes more sense that way.

On Mon, 15 Jun 2015 11:41 pm Andulien notifications@github.com wrote:

Commit: 89a9ae3 https://github.com/khloke/play-to-xbmc-chrome/commit/89a9ae378e989ca7222feca944c7d6a2e771ecd8 Working with the newest Version 1.7.5.1. Just tested it [image: :+1:] When hitting PlayNow on the Chrome Icon, it will pause the current playing tab.

Question: Should this also be added for Queued and PlayNext?

— Reply to this email directly or view it on GitHub https://github.com/khloke/play-to-xbmc-chrome/issues/56#issuecomment-112074390 .