Skip to content
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

How to play youtube or vimeo video using vue-video-player module #97

Closed
santoshshinde2012 opened this issue Sep 22, 2017 · 3 comments
Closed

Comments

@santoshshinde2012
Copy link

Please let me know any sample or way to play youtube or vimeo video using vue-video-player module .

I have tried to include videojs-youtube or videojs-vimeo, but its not work for me.

Thanks.

@viclafouch
Copy link

There is no example... Please give us example with YouTube or vimeo..

@pjconnect
Copy link

Browse 1h to find out, anyways.
how to add any plugin:
https://github.com/surmon-china/vue-video-player/tree/v3.1.4

Basically,

//install via npm
require('videojs-youtube'); // add any plugin first and then
import { videoPlayer } from "vue-video-player";

//for youtube options be like,
playerOptions: {
 fluid: true,
 techOrder: [ 'youtube'],
 sources: [{
        type: "video/youtube",
         src: "https://www.youtube.com/watch?v=sLJwJ-phroc"
         }],
         poster: "/static/img/backgrounds/feature-video.jpg"
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants