JeremyHeleine / Photo-Sphere-Viewer

A JavaScript library to display Photo Sphere panoramas.
857 stars 961 forks source link

Feature: support for video files #61

Open djiamnot opened 7 years ago

djiamnot commented 7 years ago

I would like to be able to play video files as well. I have not looked at the code and I have never used Three.js so I am actually quite clueless about the feasibility of this but I am guessing it should be possible. Are there any plans for that? I would be willing to tackle this but would probably need some pointers/guidance. Any thoughts?

JeremyHeleine commented 7 years ago

Hi,

It's a feature I think about regularly. Interpreting videos with PSV is not a thing I already did but, for another project, I had to crop videos, and I believe the same path could be followed: we read the video and, regularly, we retrieve the image, copy it in a canvas or something like that, and give that image to PSV.

The problem is that I also believe this will be too slow (maybe I'm wrong) so a longer reflexion is needed...

djiamnot commented 7 years ago

Good points... Actually, for the immediate need, I was looking at loading a short video loop (say 20 seconds). However, I need the video to be sufficiently high resolution and let the user zoom into some parts to examine some details (the original video is a spherical (fisheye) 4K but the part of interest could be re-rendered equirectangular). I did not have time to move further but if you could hook me up with your solution that you mention or point me to essential entry points for this direction, I would appreciate as it would save me some time...