-
Notifications
You must be signed in to change notification settings - Fork 136
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
Chromecast Support #23
Comments
@isantolin Thanks. I'll check this |
Since I don't have a Chromecast device, what's the expected output for this? |
From @isantolin on February 16, 2017 11:41 When a Chromecast is configured on Browser, a Player with Chromecast support adds a Button to broadcast content to device. If you dont have a Chromecast, you can use Cheapcast app to emulate |
From @jimmywarting on February 21, 2017 21:39 +1 (only feature missing for me to swish to elmementjs) While we are at it. How about adding AirPlay also? |
From @eposjk on February 24, 2017 16:53 By the way: There is a Web Presentation API ( https://developer.mozilla.org/en-US/docs/Web/API/Presentation_API ) which is already supported by Chrome (seems to be for Chromecast) with an experimental Polyfill which should work without Chromecast ( https://mediascape.github.io/presentation-api-polyfill/ ). What about using that? |
From @leocaseiro on February 26, 2017 8:51 How about this example, is with mediaelement.js, isn't? |
From @jimmywarting on February 26, 2017 10:35 Would like something more internal support rather then having some plugin. Casting is something that everyone would want |
From @leocaseiro on February 26, 2017 12:1 Thanks for your reply. I'm sorry, it was only a reference that uses The demo app CastVideos-chrome should help with the code as well. |
From @leocaseiro on February 26, 2017 12:3 The vcast uses a lot from CastVideos.js |
Thanks all for your comments. I'll check the documentation about this and start working on it. I'll try to include AirPlay. This ticket should be logged in |
From @jimmywarting on February 26, 2017 14:55 videojs also have plugin for casting https://github.com/benjipott/video.js-chromecast |
From @jimmywarting on March 14, 2017 17:53 The advantage with presentation api vs chromecast is that you can also cast to some TV's with DIAL (discovery and launch) |
Any movement on this? |
I'm still working on this. I've had some issues on the main player that took precedence. But I'll keep you posted in the course of next week |
@thisanimus, @jimmywarting and @isantolin, I have the |
I'll start testing this afternoon. If you want to test on your own, a chromecast can be had for ~$30, the only other thing you need is a chrome browser on any platform. |
Thanks. Send me screenshots and expected behaviors if you find any issues, please to speed the completion of this plugin |
Wilco |
@jimmywarting Thanks I'll check this issue. I'm not sure where is this happening on my code. If you can help me pointing where I'd appreciate it. In the screenshot I can't see any references to my code |
I know, it's weird no reference to your code. |
@jimmywarting Can you do me a favor and download the project of https://github.com/googlecast/CastVideos-chrome, and install it in your localhost and test it please? This seems to be an issue with the library itself and needs to be reported. If not I'll need the whole trace for this error. |
Also, download the branch again; I removed some code and allowed a console.error call if any errors with media |
This is where it fails: loadPlayer () {
const t = this;
if (!t.media.paused) {
t.media.pause();
} this/t is undefined |
Thanks for the hint. I'll check this |
@jimmywarting I almost have the new work setup for Chromecast. I have a new branch to support AirPlay. Is there a chance you can test it, please? If so, check the |
I have a AirPlay here at work that i might be able to test today, but if not then i can install a AirPlay reciver on my android to test it |
Ok thanks keep me posted |
I installed airpin (lite) on my android to test the airplay there was but one small issue with the spelling but otherwise it did look good 👍 Also |
My apologies I had a typo. I'll review your PR and merge it. Thanks for testing this and helping me with this |
How is the Chromecast coming along? Any progress? |
There has been new attempts but I really need to redesign something on the main player to achieve the proper result. It's more complicated than I thought but I'm on that. I'll let you know when I have the new branch on the other repo ready |
@jimmywarting Just FYI, I almost have Chromecast ready. I need to test it tonight, but the tests I ran today showed that it was working as expected. I'm adding a layer to display poster and the name of the device is being casted. If you wanna go ahead and test it right now I'll push it. I don't have a Chromecast here to validate all the changes I made, but if you can help me with that I'd appreciate it. Let me know so I can push the changes on the |
I can test it when i get home approximately in 2 to 3 hours |
OK sounds good. Keep me posted please. And again, I don't have a Cast device here to check the last changes I made so potentially I could have made a mistake. Just download the latest version of the branch for this please |
Nm. I need to rework one last piece before you test it @jimmywarting I'll send you tomorrow an status of this. Thanks and sorry for the incovenience |
@jimmywarting You can test it now. I have solved all but 2 things here:
If you have any clues or ideas on how to solve these 2 items, let me know. I need to step back some since I'm being so involved that I need a second opinion |
A lot has changed in the plugin from last time. I tested it the demo and were presented with a video without a poster, |
Yeah that's what I still need to figure out how to fix it since it's like basically having 2 players in one, but I tested it connecting to Chromecast and it worked for me |
Yea, it worked for me too. when i connected to it removing:
|
OK I can remove it |
The only issue is that if the plugin doesn't detect a Chromecast device, it won't show up the button |
I fixed some typos. And if you connect and then disconnect, it will work as expected. I just need to figure out what to do when you haven't connected at all properly |
@jimmywarting I fixed the first issue completely. It should now work as expected. Please test the latest changes on the branch and let me know. If you wanna add any PRs you are welcome to do it. One thing I haven't considered here is |
@jimmywarting Once you finish testing Chromecast branch, can you just take a quick look to the AirPlay branch, please? I completed the changes for the button status color and with that I can merge it into the master branch. Let me know how the Chromecast plugin worked for you. I'll be checking the addition of |
Took a quick glance, Looks good |
Great. I just need to finalize the tracks implementation (which is almost done) and more documentation and it will be merged in master. Thanks for testing this |
question: why do you use thumb instead of poster? if (mediaElement.originalNode.getAttribute('data-thumb')) {
mediaInfo.metadata.images = [
{'url': mejs.Utils.absolutizeUrl(mediaElement.originalNode.getAttribute('data-thumb'))}
];
} |
I just saw an example and you could have the poster image for the static player and a thumbnail for the cast. I don't know if that's standard or not. I can always remove the thumbnail and only use the poster of needed. Let me know |
This is only my theory, but I think many will use the same poster as the thumbnail. |
OK, changing that, I think the plugin is ready. On a second iteration I'll integrate tracks but I need to know more details about this. So please test the latest version of the branch one more and let me know so I can merge this in the master branch. Thanks |
@jimmywarting Are you good with merging the branch into master? I did the change to remove the |
Sounds good to me |
Excellent. Thanks a lot for your help. I'll keep you posted when captions are working. Closing this ticket since it has been merged to master |
From @isantolin on February 8, 2017 18:51
@Ron666 A lot of players now includes Chromecast support
Its a good feature, because in the case of Flowplayer is a pay plugin
Copied from original issue: mediaelement/mediaelement#2065
The text was updated successfully, but these errors were encountered: