yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
483 stars 160 forks source link

Iframe problem when the size if lower than 310px #130

Open ogdenxr opened 6 years ago

ogdenxr commented 6 years ago

Description

I am using the code to run videos on several mobile devices, the code works perfect on desktop or laptops.

To run a video, I am using an iframe that calls a pretty simple website. Actually, I am using all the documents dowloaded from GitHub.

In tis point of time I am working on Android devices.

Code Here: Video Player component on Github

Results

Expected

I expected videojs and videojs panorama to play back my video and when I move the device up, the video should move.. up. Instead of that, it's moving to the right. When I look down, it's moving to the left... etc.

Actual

See description

Error output

No errors

Additional Information

This is important! After hundred of examples, I detected that when the size of the iframe is lower than 310 pixels, the move of the video became erratic. If the iframe is higher than 310, the video moves properly.

You can check my code here: http://www.travelsfor.me/test/

yanwsh commented 6 years ago

Hello, i have trouble to access your demo site, could you provide again. I guess this is a issue which happens to someone before.