videogular2
videogular2 copied to clipboard
Chromecast support
This player looks really promising, but support for Chromecast would be fantastic.
@ende124 would you like to help on the implementation? I can help and guide you 😄
@Elecash well, I'm a fairly new developer, and started learning Angular a little while ago. Not quite sure if I'm up for the task. But I could always try? :P
@ende124 of course!
You can inspire in videogular-chromecast which was made by a contributor for Videogular 1.X for AngularJS: https://github.com/benjipott/videogular-chromecast/blob/master/src/chromecast.js
If you want to create a PR I'm glad to contribute to it because I know that this is going to be a big task.
Probably I'll do something similar like I did on VgDash and VgHls directives that you can check here: https://github.com/videogular/videogular2/tree/master/src/streaming
This is a good approach because it's independant of VgMedia and you can add it as an attribute to the video tag. For example:
<vg-player>
<video [vgMedia]="media"
vgChromecast
#media
id="singleVideo"
preload="auto"
crossorigin>
<source src="http://static.videogular.com/assets/videos/videogular.mp4" type="video/mp4"> </video>
</vg-player>
I also want to implement Chrome Cast feature in the video. Need Help
I am going to implement this, so I'll create PR after this! :)
Way I'll do this is in public API and then component to trigger that request.
there is any news on this issue?