You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the video tag's stream after capturing it with MediaStream, as follows:
on play function(){
var video = document.querySelector(“#player video”);
var capturedStream = video.mozCaptureStream ? video.mozCaptureStream() : video.captureStream();
var panorama = new PANOLENS.VideoPanorama(capturedStream, {autoplay:true});
…
}
Did this answer help?
No, you understand what I mean wrong. I want to capture the stream for panoramic rendering before creating the video tag. However, I have implemented the functionality I want by modifying your source code. Thank you very much for your reply!
Hello:
I don't want to create a video DomElement, I want to get the video playable stream directly to achieve the panorama.
Below is my demo and code.
The text was updated successfully, but these errors were encountered: