videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.95k stars 7.44k forks source link

Support Vue 3 #6888

Open snowdream opened 4 years ago

snowdream commented 4 years ago

Description

Can you support Vue 3?

I can not use video.js with Vue 3.0.

https://github.com/videojs/video.js/issues/6886

Roxas92 commented 3 years ago

Not 100% if it relates to this issue, but since it's called 'Support Vue 3' I think it's somehow connected.

Since I upgraded my project to use Vue 3, video.js is no longer working properly when using an HLS stream. I don't get any error messages, warnings or so, the video just starts playing for like 3 seconds and then just stops in an endless loading loop – again with no (error) messages.

You can find the code here to reproduce it here: https://github.com/Roxas92/vue3-videojs-hls

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ABB65 commented 3 years ago

In Vue 3, captioning methods and player functions do not work with VideoJS yet.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

shanzhd commented 2 years ago

stale

It's 2022 now, when I try to use video.js in vue3 to play an HLS source, it is still endless loading, with no error or warning.

tec21 commented 2 years ago

To get HLS streams working with videojs in Vue3 you need to install videojs with the http-streaming package: npm i @videojs/http-streaming

tec21 commented 2 years ago

Follow the setup instructions on the videojs site for Vue.

however, I think it’s still written for Vue2 because it uses the data() property… I’m still trying to make videojs work with script setup. Any help here would be greatly appreciated!!

gkatsev commented 2 years ago

http-streaming is available by default with Video.js 7, you shouldn't need to install it separately.

dl-ias commented 9 months ago

I have same issue in with nuxt 3 and video.js 8.9.0

jam35L commented 5 months ago

Anyone managed to make video.js 7 work with vue 3?

tec21 commented 5 months ago

I'm using video.js 8 with vue 3. Where you at with implementing it?

jam35L commented 5 months ago

I'm using video.js 8 with vue 3. Where you at with implementing it?

Is it working for you? I'm restricted to video.js 7. Not finding any solution yet. Mught need to use a different library.