mister-ben / videojs-flvjs

Video.js tech using flv.js for FLV playback
https://mister-ben.github.io/videojs-flvjs/
Other
125 stars 31 forks source link

VIDEOJS: ERROR: The "Flvjs" tech is undefined. Skipped browser support check for that tech. #1

Closed hexray-newbee closed 7 years ago

mister-ben commented 7 years ago

Ensure you'd added both FLV.js and the plugin as the example in the readme. If you still have a problem, please a reduced test case in order to replicate.

hexray-newbee commented 7 years ago

it's because the loading order. i fix it. thank you all the same. but. i wonder if there's an option to pass option of flv.js, like this https://github.com/hxl-dy/videojs-flvjs/commit/132dfcef7b9216f3851d0ba91b5e19d64cc4eb8f

mister-ben commented 7 years ago

It makes sense to pass options, but I probably wouldn't get to it for a while. If you're up for adding that functionality, a PR would be welcome.

hexray-newbee commented 7 years ago

Okay. i will try my best, thankyou.

mister-ben commented 7 years ago

Cool. I guess as well as options passed as tech options, we might need to be able to configure some options per-source, e.g. your hasAudio example.

dragonishare commented 5 years ago

it's because the loading order. i fix it. thank you all the same. but. i wonder if there's an option to pass option of flv.js, like this hxl-dy@132dfce

when I tried to integrate into the react test, I also encountered this problem. The problem of the load order you mentioned is not very understandable.

hexray-newbee commented 5 years ago

@dragonishare the loading order should be video.js, flv.js, videojs-flvjs.

dragonishare commented 5 years ago

@dragonishare the loading order should be video.js, flv.js, videojs-flvjs.

@hxl-dy I did, but the problem is still there. How did you fix this problem? --"VIDEOJS: ERROR: The "Flvjs" tech is undefined"

dragonishare commented 5 years ago

refer to readme, it works when I use it directly through script tag in html, but when used in react with npm. , it doesn't work, throw 'VIDEOJS: ERROR: The "Flvjs" tech is undefined. Skipped browser support check for that tech.'

hexray-newbee commented 5 years ago

Maybe, you forgot assign the flv.js to global window like window.flvjs = require('flv.js/dist/flv');.