-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Google Cast support #706
base: develop
Are you sure you want to change the base?
Conversation
Hey, the Remember to use Prettier and ESLint plugins if you have them |
Done and done. I'll keep working on implementing the remaining functionality |
Thanks. I can assist with any UI parts if there's any left when the time comes. |
Any progress on this wonderful feature? :) |
Is there a way for me to pull this prototype version of chrome cast support ? |
You should be able to merge my branch into |
I’ll need to take another look but it’s showing a load of tasks as incomplete? |
It is incomplete. I need to spend some time and get the captions done and support the streaming options. That said, it does work for simple HTML5 videos loaded via I'll work on hosting a page with the google-cast version of it built-in so that people can use it to get a sense of what works. |
That’d be good. I’m happy to merge to a new branch and then host the demo on a sub folder of plyr.io. Then I can look at any UI tweaks required. |
Alright, in that case it's ready to be merged and put up for a basic demo. |
To have the plugins work, do I have only to build the project with gulp, or do I need to include the plugin file directly in the browser ? Also, taking advantage of this question, if it is only a question of adding the chrome cast button to the video toolbar, what is the name of the button component (such as airplay is for airplay) ? Thanks in advance. You guys are awesome! |
You should just be able to run |
Well, doing some testing, I'm not sure if the following issues are specific to the chromecast build or to plyr itself, but I found some breaking issues After Pressing the Play Button, the video toolbar disappears forever, and the middle screen play "ball" button stay visible (although not clickable) |
Ah crap. This is probably due to the fact that the |
I fixed on my code by doing an early return in the google cast setup if (!window.chrome). And removed chrome cast on non chrome browsers by setting the controls option. Such as: var myControls = ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen']; Cheers |
Yeah, the problem is, I don't know if I should do something like that inside the plyr source. |
cfac675
to
9bdfacb
Compare
Is there already a demo online to see what's working and what not? I have tried to build it myself, but I wasn't able to get it running for some reason. The cast button didn't appear although the Cast extension shows 2 devices. |
Is there any traction on this PR? |
This feature is working. I am on a machine without node now so I just created a repo with the working distribution folder. var myControls = ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen']; const player = new Plyr('#videoplayer', </script>` It was built with the most recent Plyr by Apr 30. |
At this point, I've sort of stopped working on this since there's a couple of directions to go down and I'm not sure which is the right one. One is to write a custom receiver so that the styling of the player on your TV matches Plyr, or, at the very least, is superior to the default one. The other is to leave that to the applications (that make use of Plyr) and just give them a bare-bones implementation that uses the default receiver. There is obviously work required to get live streaming videos to work, but, I'm sort of trying to help test Plyr and come up with bugfixes where I can. |
cfac675
to
3da8eba
Compare
Any update on this or it's a dead end? |
Any updates on this? So keen to get this feature. |
This feature works. You're welcome to merge it and have a working
rudimentary cast support. I just haven't found the time to design it better
and decide whether to support the new CAF player.
…On Tue, Aug 28, 2018 at 10:13 PM, Mitch ***@***.***> wrote:
Any updates on this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#706 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACzB18rP_TZyicKlMRcK2BPNK2paRr_iks5uVfisgaJpZM4QSg7w>
.
|
Is this mergeable ? |
I think the fork needs updating as it's quite far behind now. |
I'll update the PR to be mergeable with the master branch. Last I checked, the PR works for HTML5 videos like mp4 and webm. The biggest outstanding issue with this PR is that I don't know how to get things like HLS/DASH to work. There is also the question of whether attempts to play content from YouTube, etc should use plyr or the YouTube (cast) app. I'll try and spend some time this week to see if I can improve the PR. |
bf803a2
to
a5ccb82
Compare
@gurupras to get it to work with dash / hls best bet is to bundle it with Shaka Player |
@gurupras Any possibilities to make it mergeable? |
b316c7e
to
1ee4a24
Compare
1ee4a24
to
a3cc8e6
Compare
I've force-pushed to make it mergeable with the |
Any updates on this being merged into the main branch? |
@@ -28,6 +29,7 @@ const source = { | |||
// Update source | |||
// Sources are not checked for support so be careful | |||
change(input) { | |||
debugger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking this line needs to be removed, yeah?
Note: This is WIP and currently provides a prototype with rudimentary google cast support
Link to related issue (if applicable)
#112, #412
Sumary of proposed changes
google-cast.js
responsible for containing Google Cast supportthis
object withremotePlayer
andremotePlayerController
objectsKnown Issues
Task list
src
plyr.less
changes make sensescss
sources (?)