videogular2 icon indicating copy to clipboard operation
videogular2 copied to clipboard

Play youtube video in videogular2

Open ravipatel2293 opened this issue 7 years ago • 24 comments

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?

ravipatel2293 avatar Apr 03 '17 08:04 ravipatel2293

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.

Elecash avatar Apr 03 '17 14:04 Elecash

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

ravipatel2293 avatar Apr 04 '17 04:04 ravipatel2293

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

Elecash avatar Apr 09 '17 07:04 Elecash

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! .

bofcarbon1 avatar Apr 12 '17 23:04 bofcarbon1

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

amitkumarmahajan avatar May 04 '17 16:05 amitkumarmahajan

This issue was closed.

bofcarbon1 avatar May 04 '17 18:05 bofcarbon1

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

johnking avatar May 29 '17 19:05 johnking

@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?

bofcarbon1 avatar May 29 '17 20:05 bofcarbon1

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

thanks for your reply anyway.

johnking avatar May 29 '17 21:05 johnking

@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.

Elecash avatar May 30 '17 07:05 Elecash

Thanks Raul for the information.

On Tue, May 30, 2017 at 3:58 AM, Raúl Jiménez [email protected] 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

johnking avatar May 30 '17 10:05 johnking

Any progress with the Youtube-Videogular2-plugin?

ergodaveh avatar Jul 17 '17 17:07 ergodaveh

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

anymos avatar Nov 11 '17 01:11 anymos

This would be a killer feature! 👍

Hesesses avatar Jan 31 '18 20:01 Hesesses

Is this feature available yet ?

Liahus3003 avatar Jul 11 '18 15:07 Liahus3003

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

BLecha avatar Jul 17 '18 14:07 BLecha

@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.

Elecash avatar Jul 17 '18 14:07 Elecash

@Elecash Ok. How about streaming live cams?

BLecha avatar Jul 17 '18 15:07 BLecha

@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.

Elecash avatar Jul 17 '18 15:07 Elecash

No update on the youtube feature yet?

davidsennekool avatar Sep 20 '18 08:09 davidsennekool

Hey! Thanks fot this awesome project!

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

Thanks for all again!

NashIlli avatar Feb 19 '19 22:02 NashIlli

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.

bofcarbon1 avatar Feb 20 '19 00:02 bofcarbon1

Any updates?

friksa avatar May 16 '20 10:05 friksa

Hey YouTube??

shubham-vunet avatar Aug 15 '20 11:08 shubham-vunet