collab-project / videojs-record

video.js plugin for recording audio/video/image files
https://collab-project.github.io/videojs-record
MIT License
1.4k stars 315 forks source link

need to execute code before `deviceReady` event #658

Closed straycoders closed 9 months ago

straycoders commented 2 years ago

How can I execute codes just before deviceReady event is fired? If any, what other events triggered before it?

thijstriemstra commented 2 years ago

There are no other events fired besides ready I think.

straycoders commented 2 years ago

@thijstriemstra, thanks for your response. If there are no other events, what about adding a new one? Say, an event that is fired right after the browser-requirement (dialog) check is done but, before deviceReady is fired.

For example: player.on('permissionState',fn(state){ })

I think its presence would be nice and very helpful.

thijstriemstra commented 2 years ago

an event that is fired right after the browser-requirement (dialog) check is done

Sounds good but last time I checked there is not such a cross-browser event, but please investigate.

straycoders commented 2 years ago

I've done that with videojs.record.js during my free time a while ago. Even until video.js . But I prefer to start from your side. Unfortunately currently I'm running on deadline and that needs special time to focus. I'll be back with new findings, hopefully. Thank you for your time and attention.