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.
Related
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 making an application in which i need to make the video of the screen of user interaction with app.
I searched a lot and found that some are able to make videos by using javacv and set of images but they are not able to record sound.
can I want example code of how to create a video from a set of images
EDITED :
i want to make a video from a set of images.
is that possible ?
I want to use an android media player to display both pictures and videos, I have it displaying videos but can't find a way to get it to display pictures, is it even possible?
I tried putting in an image view but it didn't work too well with the surface view and kept crashing or not displaying the image.
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
I would like to add one video to the main screen of my application but I want to user to be able to do other things in the app meanwhile. Think about some video animation or flash movie for some website that you can watch the video and look on other things in the website.
lets say I have buttons and more things in the same screen and I want a small video to be playing there too in a loop.
is this possible?
I thought that Flash movie could be good for that, but its only for latest versions of android then I don't want to use it.
Thanks.
You can just use the VideoView.