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

[question] Can this be used to record augmented reality experiences? #621

Closed marcusx2 closed 2 years ago

marcusx2 commented 2 years ago

I know it works to capture just the webcam feed, but what about other stuff on the screen?

Please take a look at ARjs. CTRL+F "Image Tracking Example". Try this codepen on your phone, point the camera at this picture.

I am wondering if videojs-record can capture the whole screen, including the webcamfeed and the augmented reality content as they show up to the user. And also if it works on mobile Safari. So in the example, can it capture the screen with the dinosaur? Thank you for your time.

thijstriemstra commented 2 years ago

It's possible to record a browser window using screen capture option: https://github.com/collab-project/videojs-record/blob/master/examples/screen-only.html Not sure if that works on mobile safari, it likely doesn't.

marcusx2 commented 2 years ago

@thijstriemstra no, the api used in that example, Screen Capture API, isn't available on mobile.

It really needs to be something like this example. But instead of recording just webcam feed, it needs to record everything that is actually seen by the user. I take it it's not possible then? videojs can't record everything that's going on on the screen without using the Screen Capture API?

I was hoping for a solution similar to html2canvas, but video oriented.

thijstriemstra commented 2 years ago

I think you're looking for #288

marcusx2 commented 2 years ago

@thijstriemstra Thanks! This may be a viable solution. How can I do this with videojs-record? I don't want to use record-rtc directly or videojs-overlay. Can it be done with your library?

thijstriemstra commented 2 years ago

It's an enhancement request. But shouldn't be hard to implement.. Pull requests welcome, I'm available to review something.

marcusx2 commented 2 years ago

Should I create a request for this? I don't know how to word it.

thijstriemstra commented 2 years ago

No, basically this ticket is a duplicate of #288

marcusx2 commented 2 years ago

Ah ok. Are there any plans to have this feature anytime soon?