Android :: VideoView Video Scaling - Different Screen Orientations And Devices

Aug 4, 2010

How does Android handle scaling of a video being played within a VideoView?

So for example if I have a video that is say 480 X 270 (width and height), aspect ratio 16:9. And, say the VideoView is added to a LinearLayout with LayoutParams of (480, 270). What will be width and height of the rendered video in portrait orientation in a device that is 320 X 480? In landscape? In another device that is 320 X 550?

Android :: VideoView video scaling - different screen orientations and devices


Android :: Android Videoview - Screen Blank No Video Seen

Dec 6, 2009

I am using Videoview to playback mp4 file from local machine using android emulator. I hear the audio, but the screen is blank and no video is seen. Android SDK 2.0.1

What is missing here:

CODE:............

Main.xml

CODE:.....................

View 2 Replies View Related

Android : Does Phone Set - Support Scaling Video

Jan 14, 2010

Using a VideoView is it possible to set a scale factor for Android? By Default the video view resizes itself to fit the encoded resolution of the Video. Can I force Android to render a video into a smaller or larger rect?

View 3 Replies View Related

Android :: Cannot Play Video - VideoView Broken?

Feb 11, 2009

VideoView video_view = new VideoView(context); video_view.setVideoPath("res/raw/movie.mp4"); video_view.setMediaController(new MediaController(context)); video_view.requestFocus(); video_view.start();

Seems simple, but even with video files that I've seen work in other video players on the phone, I keep getting the "Sorry, this video cannot be played" message. And this associated debug info: INFO/MediaPlayer-JNI(234): prepareAsync: surface=0x1a3ff0 (id=1) ERROR/MediaPlayer(234): Error (-4,0) DEBUG/VideoView(234): Error: -4,0

what those errors mean or how I can fix this? If this is not how I should be using VideoView please let me know. I'd appreciate being sent in the right direction for how to get a local video file playing within a view.

View 4 Replies View Related

Android : How To Play A Video In VideoView In Droid?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK?

View 2 Replies View Related

Android : Can't Play Video In VideoView In Droid / How To Fix?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK? Please comment.

View 3 Replies View Related

Android :: VideoView Cannot Play Long Path Video

May 28, 2010

VideoView cannot play long path video issue: Bug#8699

enviroment: Platform 2.0 simulator and G2 H/W.

If setVideoPath("/data/data/com.abc.android.abcd/Transformers.mp4");

It can play well.

While, If setVideoPath("/data/data/com.abc.android.abcd/content/ Transformers.mp4");

It cannot play.

Btw: familiar things occured when I display the jpeg file

bit = BitmapFactory.decodeFile(fileName); mImgView.setImageBitmap(bit);

If the fileName is /data/data/com.abc.android.abcd/content/2.jpeg It cannot display

While, If the fileName is /data/data/com.abc.android.abcd/2.jpeg It display well.

View 3 Replies View Related

Android :: Load Video Into VideoView Without Instantly Playing?

Jul 23, 2010

I got a question is it possible in Android to load the video data into a VideoView without it instantly starting to play?? If so, how could I do that?

View 1 Replies View Related

Android :: VideoView - Detect Point Of Time In Video

May 10, 2010

I am using a VideoView to display a video. I am using setOnPreparedListener and setOnCompletionListener to do stuff before and after the video starts and ends.

I was wondering how I could go about detecting some point of time in the video. For eg, say I want to write log to a file when the video has played for 10s. How can I detect the 10s mark?

View 1 Replies View Related

Android :: VideoView In ViewFlipper Is Transparent When Video Is Playing

Sep 10, 2010

I've got an Activity with two views set up in a ViewFlipper. One of the views is a layout with a GLSurfaceView and a few other widgets, the other just has a layout with a TextView and a VideoView. When I click on something in the GLSurfaceView, the ViewFlipper swaps so the video can play. In this screenshot, you can see the plain GLSurfaceView rendering a map on the left. On the right is what it looks like after the ViewFlipper has flipped and the video starts playing. The empty transparent area where the GLSurfaceView shows through is where the video is supposed to be. I can hear it playing through the speaker and the timeline is moving forward, so I know it's playing.

View 1 Replies View Related

Android :: Streaming And Playing Video Using Videoview On Motorola Milestone

Sep 27, 2010

I have a problem in playing video file in android using VideoView. When I keep the .3gp video file locally in res/raw folder, the video file plays successfully. But when I keep this same file on live web server and stream it, it runs on Android G1, Nexus one and Tatoo which I have for testing. But It fails to stream and play on Motorola milestone. I got the error on device as: 'This video is not valid for streaming'. What problem it should be, I am really seek of finding it. Is it the issue of programming or file format?

View 2 Replies View Related

Android :: Video Playback On VideoView Disappears After Going Back From Another Activity / Why Is So?

Jun 8, 2010

I have two Activities: one with VideoView attached to MediaPlayer and the second one.
I start watching a video in the first Activity, then during playback I start second Activity.
After going back to first Activity I can hear sound but see no picture.

My Video Layout...

Do you have any ideas why video doesn't appear?

View 2 Replies View Related

Android :: VideoView Does Not Display On Entire Display Of Android Devices

Sep 29, 2010

I have an issue with displaying videos on android devices.When any video is displayed it does not take the entire screen size of device even though i have given android:layout_width="fill_parent".There will being some blank space on either sides.for eg.if i have a video of 480 by 320 it will work on 480 by 320 device fine but on a device like say Nexus one it wont take the entire display of device ,there will be some blanl spaces on two sides. Is this a default feature of android devices or is there a solution to resolve this ?Why does not the "fill_parent" attribute work?

View 4 Replies View Related

General :: Stream Video Between Android Devices (wirelessly)?

Jul 22, 2013

What's the best way to stream video between Android devices? (wirelessly)

A bonus would be if I could choose where the video decoding happened (on the source or destination)...

View 2 Replies View Related

General :: Live Video Between Android Devices Over WiFi / 3G

Apr 13, 2012

Best software for streaming audio/video from android to android, this question is 2 fold.

1 I would like to use my old POS zte racer android device with a restive screen and 3.2 mpxl camera as a video monitor in my babies room, over WiFi.

2 I would like to duct tape an old android device to the front of my RC monster truck and drive it through an apple store on fire. Over 3G or perhaps WiFi hotspot from my good phone, shared with the duct taped bumper droid.

View 4 Replies View Related

Android :: Different Keyboards For Different Orientations

Jul 16, 2010

Was wondering if it were possible to have it set so that Swype would be the default keyboard for portrait & whenever you switched to landscape, the default Android keyboard would pop up as the default?

I did read this post here & was wondering if the info still stands. Figured I'd start a thread here since my question's not Incredible-specific.

View 5 Replies View Related

Android :: Activities With Different Orientations

Apr 7, 2009

Let's assume i got two activities "Main" and "Sub" Activity "Main" is forced into portrait orientation using setRequestedOrientation At some later point "Main" runs "Sub" using startActivityForResult.Somehow "Sub" also starts in portrait orientation while i would expect the call to setRequestedOrientation only to affect the calling activity.How do i get "Sub" to respect the system orientation while keeping "Main" locked in Portrait?

View 8 Replies View Related

Android :: Save State Between Orientations?

Sep 4, 2010

In a previous question I asked how I could display two different layouts for portrait and landscape orientations:

Problem switching to landscape orientation

Now I would like to know how I can save the state of my application before it goes into another orientation? I seem to lose this data any time orientation changes.

View 1 Replies View Related

Android :: Specify Different Layouts For Portrait And Landscape Orientations?

Jan 23, 2010

I've seen references to being able to specify two separate layout xml files for an activity, one for Portrait and one for Landscape. I've not been to find any information on how to do that though. How do I specify for each activity which xml file is it's portrait layout and which is the Landscape layout? Is it also possible to specify different layouts for different screen sizes? If so, how is this done?

View 2 Replies View Related

KitKat 4.4 :: Breaks HD Video Playback On Majority Of Devices

Dec 12, 2013

Majority of devices will not be able to render 720p or 1080p video in 60 fps using Kitkat 4.4. I believe this has to do with downclocking the boost clock in order to get better battery life.

My Phone: Moto X 4.4 - Both Dalvik and ART are broken

[URL]

View 2 Replies View Related

Android :: Get Rotation Of Device In Four Main Orientations / Disable This For App?

Nov 22, 2010

How can i get the rotation of the device in the four main orientations? and is there a corresponding event that i can capture?

also, is it possible to disable this rotation for my app?

View 1 Replies View Related

Android :: Design A Layout In Portrait And Landscape Orientations?

Aug 29, 2010

I am finding that my layouts tend to look great in one orientation but if I change the phone's orientation, things are a mess. For example on one screen I have 6 large buttons that look great in portrait orientation but if the user changes phone orientation, those buttons get cut off in portrait.

Do I need to code two layouts for every screen - one for portrait and one for landscape? That would be such a waste of time.

View 1 Replies View Related

General :: Sluggish / Slow HD Video Playback On Devices With Kitkat?

Dec 12, 2013

is there a fix for the Sluggish / Slow HD Video playback on devices with Kitkat ?

first I though that it was my Gnex since it doesn't have official kitkat support and etc

but then my brothers Nexus5 is experiencing the same problem

playing 1080p videos is slow , sluggish , dropping frames and etc...

already tried different players , MX Player , Dice Player , Bsplayer and etc..

View 1 Replies View Related

General :: Allshare Video Playback From Other Devices Over WiFi Just Stopped Working

May 28, 2013

Note 10.1 (N8020).

Allshare video playback from other devices over wifi just stopped working. It was totally fine and I have absolutely no idea what happened. It still plays music and shows photos and all the files stored on external devices. The only problem is that it won't play video. It plays video stored locally or on sd card just fine, but when I want to play anything from my note 2 (n7105) or my pc's allshare app, video player shows error message: "Cannot play video. This video cannot be played".

It plays the same files just fine, when I copy them to the device, so I think it might be the case of some transcoding error. It is not a case of network settings - I've checked on 4 different wifi networks and it's the same everywhere. My note 2 works just fine on any wifi and plays all video from tablet or pc. Here is what I tried so far, with no results:

1. Restoring to factory defaults,
2. Wiping cache and dalvik cache,
3. Flashing fresh stock rom,
4. Erasing all allshare apps and video player data

N8020 & N7105 (JB 4.1.2 rooted + stock)

View 1 Replies View Related

HTC EVO 4G :: Enable Both Landscape Orientations?

Jun 14, 2010

From what I've tried, the EVO only has portrait and left-oriented (aka turn the phone on its left side) landscape viewing. Is there any way to enable right-oriented landscape viewing (aka turn the phone on it's right side)? It is very difficult to hold the phone in left-landscape when it's charging and nearly impossible to type with two hands.

View 5 Replies View Related

Android :: Porting SDK For Large Screen Devices

Sep 23, 2009

I am not sure, if this is the correct platform to talk about it, however I would like to know something about 'How Android supports the large screen display'. I mean here that suppose I want to port the Android SDK to a large portable device having a large display as compared to HTC G1 mobile screen, what all the OS modules (e.g surface manager, kernel: display driver etc) I need to look upon/modify.I guess what I am asking here is not a new subject as I can already see by below links that the Android OS is ported for large screen devices.

1. http://www.icpdas-usa.com/vp_23a1.html Specifications & Additional Information Models VP-23A1 VP-25A1 System Software OS Android 1.5 SDK Provided Standard ViewPAC SDK for Windows and Linux by GNU C language CPU Module CPU PXA270 or compatible (32-bit and 520 MHz) SRAM 128 MB

2. ARCHOS 5 Internet tablet shown on http://www.marketwatch.com/story/archos-brings-the-android platform-t... and on http://www.archos.com/products/imt/index.html?country=in〈=en as.
Let me know your opinion about it, any kind of clue will be appreciated.

View 2 Replies View Related

Android :: Detect Touch Screen Devices With Javascript?

Oct 20, 2010

In Javascript/jQuery, how can I detect if the client device has a mouse?

I've got a site that slides up a little info panel when the user hovers their mouse over an item. I'm using jQuery.hoverIntent to detect the hover, but this obviously doesn't work on touchscreen devices like iPhone/iPad/Android. So on those devices I'd like to revert to tap to show the info panel.

View 4 Replies View Related

General :: How To Control Android Devices From PC Without Streaming Screen

Jan 16, 2013

I am looking for an app that can remote control my phone from my pc without streaming the screen.

I have an Xperia that connects to my TV via HDMI & I don't have any wireless mouse/keyboard. So I need a way to control it from my PC with a decent speed. I just need basic nagivation buttons, home/menu/back or mouse support if possible...

View 1 Replies View Related

Android :: How To Fix Hit Area After Scaling?

May 11, 2010

I am scaling the canvas of a linear layout on draw, but this throws off all the hit areas of my views inside of this layout. They respond as if there was no scaling taking place. What do I have to do to get themselves to re-register their hit areas?

View 4 Replies View Related

Android :: Default Screen Width Of Devices - Image Size

Nov 20, 2009

Whats the default screen width of android devices? I took a 320 x 460 image for my splash screen, it did not cover the entire screen!

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved