videogular / videogular2

The HTML5 video player for Angular 2
https://videogular.github.io/videogular2-showroom/#/
MIT License
672 stars 211 forks source link

Play youtube video in videogular2 #470

Open ravipatel2293 opened 7 years ago

ravipatel2293 commented 7 years ago

Hi Team, When i'm giving local source URL to the sources it's working fine but when use youtube URL it is not working.

I want to play youtube video into current library.So how can i do that? What configuration do i have to make for play youtube video?

Elecash commented 7 years ago

Youtube is not currently supported.

You can create your own plugin if you follow the same guidelines as we have in this demo: https://videogular.github.io/videogular2-showroom/#/custom-media

Code: https://github.com/videogular/videogular2-showroom/tree/master/src/app/custom-media

The solution here is to create something like this TimeViewer component but with the Youtube JavaScript Player API.

ravipatel2293 commented 7 years ago

Is your team going to provide support for Youtube video in future?

Elecash commented 7 years ago

@ravipatel2293 yes, but we don't have a release date yet, that's why we encourage users to contribute to the project.

bofcarbon1 commented 7 years ago

Damn my video is on YouTube. Ugh. That was time burned. I don't understand how just changing the URL to YouTube causes the video not to play. But I don't claim to be an expert at video.

I was able to get an mp4 file to play stored in my application. That's good enough for me. Awesome! .

amitkumarmahajan commented 7 years ago

@Elecash- I would like to take this up. Please provide some basic information. This will be code enhancement in videogular2 or videogular2-showroom component?

bofcarbon1 commented 7 years ago

This issue was closed.

johnking commented 7 years ago

Hi Guys,

First of all, thanks videogular2!

I also need to play youtube videos in my application, I want to know the status of this feature.

Are you working on it? @amitkumarmahajan

or

It is assigned to someone else? @bofcarbon1 @Elecash

Thanks

bofcarbon1 commented 7 years ago

@johnking .... I do not know the progress on youtube capability. My need changed as I deployed my app to a free Heroku dyno. My reality wall was 1. add on storage charges for the video 2. data transfer and bandwidth charges for the video. That forced my hand back to using a link to youtube. Videogular2 works great and I was able to use it on my development server.

Just curious John what is the advantage of having the video run from youtube in the player? Is it for the same reason I mentioned with cloud charges?

johnking commented 7 years ago

@bofcarbon1 I need fine control the playback experience and manipulate the text track and ads ...

thanks for your reply anyway.

Elecash commented 7 years ago

@johnking this is still on hold, we have a lot of stuff to do.

On the other hand, Youtube tracks are handled through the Youtube API, so you can't use the Videogular API to handle tracks and so on.

If you want to start working on this you can take a look to the Youtube API and the Youtube Captions API.

johnking commented 7 years ago

Thanks Raul for the information.

On Tue, May 30, 2017 at 3:58 AM, Raúl Jiménez notifications@github.com wrote:

@johnking https://github.com/johnking this is still on hold, we have a lot of stuff to do.

On the other hand, Youtube tracks are handled through the Youtube API, so you can't use the Videogular API to handle tracks and so on.

If you want to start working on this you can take a look to the Youtube API https://developers.google.com/youtube/v3/docs/ and the Youtube Captions API https://developers.google.com/youtube/v3/docs/captions.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/videogular/videogular2/issues/470#issuecomment-304803592, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtFASerVIG3P7bp3kSqz5EEeNI6fXUrks5r-8wngaJpZM4MxQpU .

-- -John

ergodaveh commented 7 years ago

Any progress with the Youtube-Videogular2-plugin?

anymos commented 6 years ago

Very sad to see that, migrating from angularjs and using the youtube plugin inside videogular v1, I can not use videogular anymore in angular 5.

Hopefully we will see a plugin fro this in videogular 2

thank in advance

Will use this instead : https://www.npmjs.com/package/ngx-youtube-player

Hesesses commented 6 years ago

This would be a killer feature! 👍

Liahus3003 commented 6 years ago

Is this feature available yet ?

BLecha commented 6 years ago

Elecash could you not say that immidiately ? I appreciate your work but I do not appreciate that I wasted my time!

Elecash commented 6 years ago

@BLecha sorry if I've wasted your time but I've said several times in this thread that we encourage community to create the module, because it's very hard (or not possible) to have full support for all videogular features with Youtube.

BLecha commented 6 years ago

@Elecash Ok. How about streaming live cams?

Elecash commented 6 years ago

@BLecha that depends on the stream, we already have support for DASH and HLS, so if your stream is DASH or HLS you should be able to stream a live cam.

davidsennekool commented 5 years ago

No update on the youtube feature yet?

NashIlli commented 5 years ago

Hey! Thanks fot this awesome project!

Is there any update on this issue? It would be awesome!

Thanks for all again!

bofcarbon1 commented 5 years ago

I wonder where things stand with YouTube. Personally I've been learning React and just used a React for YouTube video control. It handles the use of video as a background option. I got a free stock video for my home page, put it up on YouTube and run the React YouTube tool. I'm sure there will be Angular video for YouTube controls out there soon if videogular2 hasn't done it already.

friksa commented 4 years ago

Any updates?

shubham-vunet commented 4 years ago

Hey YouTube??