I am just developing one Android app, in which we have to capture the video. Now user will capture the video in portrait view but while it will play, it will automatically play in landscape.
i.e. video is capture in portrait view, though it will play in landscape view. when i will check in memory card, video is still captured in portrait view and also while playing video from memory card, it will play in portrait view.
I have checked, manifest file and seems all files are fine.
Please let me know if any one have any idea.
Regards,
Keyur Satyadev
Related
I have created an app using Ionic 3, and it's forced to be portrait only.
In the app there are lots of videos, some which play inline, others which play fullscreen. I'm using Videogular (http://www.videogular.com/).
My question is, on Android, is it possible to force landscape when playing a fullscreen video, whilst keeping the rest of the app portrait? On iOS when the video plays fullscreen with the native player, the user's free to rotate their device as they want, but on Android it's locked to playing in portrait.
I'm very new to app development, so I apologise in advance if this is a stupid question!
Thanks in advance
I've settled with manually switching the orientation lock to landscape when a video is played, and switching it back upon leaving the fullscreen video.
this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE);
&
this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT);
I have a website with lots of video. Currently I am struggling to develop an app version of my website. I am developing the app in android studio and using webview to show the website in the app.
Currently I have two issues related to video playing.
First one is, if I am holding mobile phone in portrait mode, and I play a video. Video plays smooth. But if I tilt the phone to landscape mode, the audio still plays but a new website loads where video is not playing.
Second issue is, I want to achieve when a user tilts the phone from portrait to landscape mode, if a video is playing then it should occupy entire screen of phone. Similar to youtube. If a video is playing in portrait mode and if you tilt the phone then the video occupies entire screen, I want such result.
Sorry for my bad english. Please guide me. Thanks in advance.
Fast googling, it gives you anything you need to know.
http://tekeye.uk/android/examples/ui/android-portrait-landscape-screens
So you must just define two layouts, one for landscape, and one for portrait orientation.
Then just handle how it should look in both of them.
I am working as a android developer and while testing my app in Samsung I found something.
When I am capturing any video in my Samsung device with portrait mode, and then playing it in a video view, it will display with the wrong orientation. Portrait video will play with landscape orientation. I think it is rotating the video 90 degree left. Please guide us to solve this problem.
Video is played in the correct orientation in devices from other manufactures like Google Nexus or Micromax. It is played in the correct orientation but in Samsung the portrait video orientation is not proper.
Im using a YouTubeStandAlonePlayer to play a youtube video in my app
When I use YouTubeStandAlonePlayer in LightBox Mode the video rotates whenever the device orientation changes and does not restart the activity
However when I use YouTubeStandAlonePlayer in fullscreen mode it only plays in landscape mode
My app only operates in portrait mode, but when I play a video via. YouTubeStandAlonePlayer I want it to enter full screen and be able to change to both portrait and landscape mode as the orientation changes. When the user exits the video I want the app to go back to portrait mode regardless of what orientation the full screen video was being played in.
I've seen this functionality in Flipboard when YouTube Videos are played
I've been stumbling around this for weeks can someone please help me!!
im new one for android. im developing one application that
application getting videos from sd card and display thumbnail view.
after user click any one video it will be play its working fine to me.
but if that video file is taken from landscape means it will be play
landscape, or that video file taken from portrait means it will play
portrait view.so i search this long time but i could not find
anything. so any one knows any idea share with me.
You can use different layout files for different orientations, place in /layout and /layout-land.