Foliovision › Forums › FV Player › Bug Reports › Issue with mobile landscape orientation lock
-
My brother has another question. When Android mobile phone presses full screen, it likes to rotate the screen automatically. Where should I go to set this? or can’t be fixed
-
-
Hello kongasamdx,
we force the landscape orientation for Android on purpose. It’s much better for video playback that way. We wish we could make that work for iPhone too, but it does not support it.
Please let us know why do you prefer the video playback to stay in the portrait mobile orientation.
Thanks,
MartinHello kongasamdx,
FV Player already detects the video aspect ratio and if it’s shot in portrait mode of the phone camera it should not be forcing the landscape orientation of the player when in fullscreen.
Are you sure that the actual video is not with the landscape aspect ratio with black bars on sides or the actual picture?
Please use our Video Checker to submit a report of the video: https://foliovision.com/player/basic-setup/how-to-use-video-checker
Thanks,
MartinHello kongasamdx,
this should already be working well. Please send the video file URL or use our Video Checker to submit a report of the video: https://foliovision.com/player/basic-setup/how-to-use-video-checker
That way we can check why FV Player fails to detect that the video is vertical and why it forces the landscape orientation in fullscreen on Android.
Thanks,
MartinWhere can I send a sample video? I have chosen the topic as you mentioned. but it is not sent to me
Hello Kongsamdx,
based on your settings screen, you have currently disabled the video checker. Make sure your videos have the little “Admin checker:” message in top left corner.
Is sending a sample video necessary? Once you click the message, you will be able to see information about the video. It is best to just send us a screenshot/ copied text or an automatic report via the admin video checker. The information Martin needs should be included there.
Thanks,
MariaIf you want the screen to rotate automatically when zoomed in. Should have made a code to turn off automatic screen rotation as well. thank you very much brother
- This reply was modified 2 years, 4 months ago by Martin.
Hello Kongsamdx,
I see we are not detecting the video resolution for HLS properly, when playing with the HLS.js library.
We are fixing that, then Android will no longer force the landscape orientation.
Unfortunately I was not able to check your videos, I was getting HTTP error 451. Perhaps it was due to some country blocking.
Thanks,
MariaHello Kongsamdx,
Could you please reinstall FV Player from this link? https://github.com/foliovision/fv-wordpress-flowplayer/archive/refs/heads/5095267703-hls-video-width-height.zip To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.
Then when you play a vertical video and enter fullscreen your Android phone will no longer force the landscape orientation.
Thanks,
MartinIn mobile settings, I only have this option.
Hello Kongsamdx,
are you able to run this script on the browser console when the video plays?
flowplayer(0).video.width
That way we should see if the proper video width is detected.
If it’s zero, then Cloudflare might be hanging on to the old version of the FV Player script file. There are setting to ignore the query string versions, so these should be disabled.
If even that won’t help, please provide a link to your video file.
Thanks,
MartinHello Kongsamdx,
we try to get rid of unnecessary settings where possible.
We can detect the video orientation (landscape or portrait) properly, so this should all just work fine.
I provided the troubleshooting steps for you so that we can move forward with this and ensure you get the desired video display – only force landscape orientation for landscape videos.
Could you please go through what I posted in my previous message?
Thanks,
MartinHello Kongsamdx,
here’s how to open your browser developer console: https://kb.mailster.co/how-can-i-open-the-browsers-console/
So please play your video on your desktop computer, open that console, copy-paste the following to it:
flowplayer(0).video.width
…and then once you hit Enter you should get the video width which FV Player has detected.
The older plugin versions can be found on https://foliovision.com/my-licenses -> Show Previous Version, but I wouldn’t recommend that as you wouldn’t be getting the security fixes (and also playback fixes on new mobile devices for instance).
Thanks,
MartinIs this one?
Hello Kongsamdx,
the older version of FV Player does not have any compatibility issues with mobile devices, but in a year it might have. We had such issues with Android 10 or YouTube video in the past.
Thank you for the console output. It seems that our updated code either fails to detect your video dimensions properly or that Cloudflare is not giving you the up-to-date FV Player script file.
Please provide a link for that exact video file so that we can inspect it.
Thanks,
Martin