PetroFrolov / vast-video-js

VAST-Ad plugin for HTML5 by video.js
79 stars 33 forks source link

vast-video-js can play video with link from Youtube #17

Open tuandungcmf opened 11 years ago

tuandungcmf commented 11 years ago

Help me, please !

Vast-Video-js can play video with link from Youtube

PetroFrolov commented 11 years ago

Hi! I`ve missed your message, sorry... You can play youtube files with Video.js. So you don't need to use vast-video-js.

If I've not understand your question. please say what do you mean.

paulvi commented 11 years ago

Usually youtube is iframe like <iframe width="560" height="315" src="http://www.youtube.com/embed/8ACnLALdKT8" frameborder="0" allowfullscreen></iframe> Then youtube loads Flash player.

I think it is not possible for a JavaScript library. Is it?

PetroFrolov commented 11 years ago

Take a look at Video.JS docs, please https://github.com/videojs/video.js/blob/master/docs/tech.md.

To add a youtube source to your video tag, use the following source:

You don't need to use my plugin in this case.

paulvi commented 11 years ago

:+1: https://github.com/videojs/video.js/blob/master/docs/tech.md#youtube-technology