Okay its only possible with the Vimeo Pro Subscription: https://vimeo.com/help/faq/managing-your-videos/video-settings#how-do-i-use-a-third-party-player-with-vimeo-pro over the api @ https://api.vimeo.com/videos/VIDEO_ID
Vimeo API
Hey -
this is not directly Laravel related, but maybe someone can help :)
I currently try to embed my Videos hosted on Vimeo with the VideoJS Player. So far it`s working, Laravel catches the Video ID from the Vimeo API and the Video is embed.
But the Video is embed with the Vimeo Player and not with the VideoJS Player, furthermore its embeded with an Iframe. As is see @JeffreyWay dont use any iframe heres.
Do i need a Vimeo Plus / Pro Subscription therefore?
This is my little code
<script>
videojs('vid2', { "techOrder": ["vimeo"], "src": "{ {$video} }" }).ready(function() {
// You can use the video.js events even though we use the vimeo controls
// As you can see here, we change the background to red when the video is paused and set it back when unpaused
this.on('pause', function() {
document.body.style.backgroundColor = 'black';
});
this.on('play', function() {
document.body.style.backgroundColor = '';
});
});
</script>
...
...
...
<video id="vid2" src="" class="video-js vjs-default-skin" style="margin-top: 40px;" controls preload="auto" width="100%" height="600">
<p>Video Playback Not Supported</p>
</video>
And my little php code
$vimeo = Vimeo::request('/me/videos', ['per_page' => 10], 'GET');
$video = $vimeo['body']['data'][0]['link'];
return view('frontend.screencasts.video', compact('video'));
On the VideoJS Package for Vimeo ( https://github.com/eXon/videojs-vimeo ) is written We cannot hide the Vimeo controls bar, they do not allow it.. But as far as i know @JeffreyWay is also using VideoJS with Vimeo.
Please or to participate in this conversation.