Android :: Bug Detected VideoView / ImageView

May 23, 2009

I think that I found a problem with Android SDK in a relative form, try to add An ImageView and A VideoView In an activity, retrieve your VideoView and try to retrieve his SurfaceHolder....Your application have to crash with a real big tracelog in LogCat.

Android :: Bug detected VideoView / ImageView


Android :: Imageview Ontop Of Another Imageview

Jun 15, 2010

I have a listlayout with items in it that looks like this:

There is first an ImageView (the light) and then two textViews. All of this inside a TableLayout. (source here: http://code.google.com/p/switchctrl/source/browse/trunk/android/res/layout/device_switch.xml)

I want to have a rotating animation of a loading indicator Ontop of this light when this particular device (light) performs an action or an action is performed on it.

How do I put an animation ontop of this light imageview?

View 1 Replies View Related

Android :: Paint On A VideoView

Sep 14, 2010

I am trying to code an app where you can paint (Finger paint) free hand on a running video in a VideoView.I have the two things running separately but not together.I can draw my paint on a balance screen and i can play my video on my videoView, which is implementer in an xml layout.Is there a way to overlay the xml videoview View with an other View which can be drawable?

View 1 Replies View Related

Android :: VideoView Uri Redirect?

Aug 3, 2010

I have a VideoView and I set a VideoURI that is basically http://foo.com/videoName?authentication=xyz When the url is hit, some authentication is processed, then the url gets redirected to rtsp://foo2.com/videoName.3gp for example.

The VideoView seems to not be able to follow the redirect to play the video. If I use the rtsp directly I can play the video though.

View 3 Replies View Related

Android :: Add An Icon On Top Of VideoView?

Mar 29, 2010

How to add an icon on the top of VideoView, I want my player VideoView window should contain the brand image of my player. How to add it to the VideoView.

View 2 Replies View Related

Android :: How To Use VideoView To Streaming Without Buffering?

Apr 11, 2010

When I use the VideoView to play the RTSP streaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code:
String VideoUri = "rtsp://192.168.5.121:6666/live/h264"; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start();

View 5 Replies View Related

Android :: Any Way To Minimize Buffering Lag With VideoView?

Jun 3, 2010

I am using VideoView to display a video in my app. The problem is that, once the layout gets created there is lag of almost 10-30 seconds before which the video starts to play. I can see in LogCat that the video is buffering during the lag. Is there a way I can minimize this lag, or tell MediaPlayer to play the video sooner?

View 1 Replies View Related

Android :: Videoview Can't Play Mp4 Smoothly / Fix It?

Jul 23, 2009

I have used videoview to play mp4 formate movie, but when start to play it, the videoview can't play smoothly, that means there have a little lag,

but in the: http://developer.android.com/guide/appendix/media-formats.html the android support media formate have mp4..

the code is very simple,just like in the sample code...

View 11 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 :: Using VideoView For Streaming Or Progressive Download

Jan 13, 2010

I'm confused about how VideoView can be used to play video: from a local file, as progressive download and streaming. This example work for me (on 1.5 and 2.0 at least) by downloading the file and playing it locally. But is it necessary to download the video before playing: is it possible to play video as progressive download, or by streaming, simply by using setVideoPath or setVideoURI, as in VideoViewDemo in the API samples?

The VideoViewDemo code suggests using setVideoURI for streaming, but I'm not clear what kind of URL I should be using. Does someone have an example URL for a video that can be streamed to the Android emulator using the VideoViewDemo code? Can progressive download be used with VideoViewDemo? I get a 'sorry, this video cannot be played' message using setVideoPath with URLs that work fine with the blog example linked to above.(Is this a problem in the emulator? I've tried 1.5 and 2.0.)

View 3 Replies View Related

Android :: VideoView Access To Web Server With Cookie?

Sep 12, 2010

Our video server protect video data with cookie authentication. Video player app must authenticate and store session key to cookie strage before access to video server. First, My android video player app access to authentication server using HttpClient class in android library. Next, app access to video server with HttpClient's cookie data. But I think HttpClient can't pass cookie data to VideoView.

View 3 Replies View Related

Android :: VideoView And Sliding Drawer Reappears

Jul 28, 2010

I have a bit of a problem with a SlidingDrawer that I created and that should go over my VideoView. When the activity is opened for the first time you can see the slider above the video and when you tap it, it slides open. However, as soon as you close the slider it seems to disappear underneath the VideoView and is not visible anymore. It is still there and when you tap the location where the handle is located the slidingDrawer reappears, but I would rather prefer if it wasn't hiding all the time ;) If anyone knows what I can do about that and help me out, that would be really fantastic because I have been trying for hours now and I have no idea what I should do. I also haven't found a similar issue or a solution for that.

This here is the xml code for the videoview and the slidingDrawer:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="@drawable/shape_background_gradient" >
<VideoView android:layout_width="240px" android:layout_height="180px"
android:id ="@+id/VideoViewEdit" android:layout_centerHorizontal="true" >
</VideoView> <ScrollView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_below="@id/VideoViewEdit">
<TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="0"> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_videotrack"
android:padding="5px" android:layout_gravity="left"/>
</TableRow> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_audiotrack"
android:padding="5px" android:layout_gravity="left"/>
</TableRow> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_add_media"
android:padding="5px" android:layout_gravity="left" />
</TableRow> </TableLayout> </ScrollView> <SlidingDrawer android:id="@+id/drawer"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:handle="@+id/handle"
android:content="@+id/content"> <ImageView android:id="@id/handle"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/slider_handle" />

<LinearLayout android:id="@id/content" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<ImageButton android:id="@+id/button_exposure" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_properties"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:background="#77000000" android:src="@drawable/ic_slider_properties"
android:padding="5px" android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_special_effects" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_special_effects" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_test" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_test2" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
</LinearLayout> <ViewStub android:id="@+id/stub" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="#77000000">
</ViewStub> </SlidingDrawer> </RelativeLayout>

View 3 Replies View Related

Android :: VideoView Continues To Play / Stop It?

Jun 9, 2010

I have a ListView with information about videos. Once a row is selected, I use a ViewFlipper to show the VideoView. If I go back to the listview (I have a button), the videoview keeps playing. How can I stop the video and hide the videoview when I go back to the listview?

View 3 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 : Way To Play Multiple Videos Using VideoView?

Nov 19, 2010

I have kept a list of videos in vector {http://a/video1.mp4, http://a/video2.mp4, http://a/video3.mp4, http://a/video4.mp4, http://a/video5.mp4, http://a/video6.mp4} I want to play all the videos one after the another using the Android native player VideoView.

View 1 Replies View Related

General :: Android Is Not Being Detected By PC

Apr 26, 2013

I am facing problem in connecting my android with pc. Its is not being detected! I went throught Factory Data Reset, refreshed drivers and even changed the data cable, but still not working.

View 2 Replies View Related

Android :: Buffering In Media Player - VideoView Blank For A While

Jun 2, 2010

I am using MediaPlayer to play a video in my app. The video takes a while to buffer and the videoview is blank for that time. Is there a way to start the buffering when the user is in the previous screen, so that when he comes to the video playing screen, the video is ready to play?

View 2 Replies View Related

Android :: VideoView Causing Error For Playing Videos

Apr 16, 2010

I am attempting to make a VideoView to obviously play videos on. When I use the following code though I get the error "Cannot cast from View to VideoView" on the marked line below.

public class VideoView extends Activity { private String video_link;
private VideoView video_view;
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.youtube_player);
video_view = (VideoView) findViewById(R.id.video_view);
***ERROR "Cannot cast from View to VideoView"
Bundle video_bundle = getIntent().getExtras();
video_link = video_bundle.getString("LINK"); } }

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 :: Can't Capture Click Event On VideoView / Solution For This?

Oct 1, 2010

I want to capture the click event on VideoView. I followed the same steps with Button. However, it does not work. Could you give me a recommendation? This is my code...

View 2 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 : Delay In VideoView To Play An RTSP Stream

Feb 18, 2010

I'm using VideoView to play an RTSP video stream. It works fine, however on my Android phone the audio lags the video by about 3 seconds. If I watch it on my computer with VLC both the audio and video are in sync. Has anyone else experienced this audio delay before and how might I go about correcting it on the phone.

View 4 Replies View Related

Android : Way To Get Absolute Path And Filename From VideoView Object

Jan 10, 2010

Just started writing java / android and I am trying to use android.widget.VideoView.

I set the video by using the setVideoPath('/path/filename') method, but can't seem to figure out how to get the path on an existing object?

I'm using methods such as 'getDuration()', and 'getCurrentPosition()' and they work great.. but where is a getPath method?

View 1 Replies View Related

Android :: Device Not Detected In Eclipse

Jun 1, 2009

i have a very simple but vital problem. the android device is not detected in my eclipse. is there any way to rectify the same. i am usin ubuntu 8.04, Eclipse Platform Version: 3.4.2, adp 1, android sdk 1.5.

View 3 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 :: Play RTSP Stream Using Media Player Or VideoView

Jul 2, 2010

I wanted to stream A/V from my machine to Android over HTTP
(http://lists.mplayerhq.hu/pipermail/libav-user/2010-July/004944.html).
But that does not seem feasible using FFMpeg. I am planning to try FFMpeg streaming over RTSP. But I am not sure whether MediaPlayer or VideoView classes on Android support RTSP playback. Is playing RTSP stream possible in simple application?

View 3 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







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