Questions tagged [android-video-player]

Related to playing videos in Android API

541 questions
56
votes
2 answers

how to create custom UI for android MediaController

I want to customize the controls in the MediaController for my video player. I want to swap out the image for the play button, change the skin, change the color, ect. Is there a known way of doing this? Thanks
user1681001
  • 632
  • 2
  • 7
  • 7
32
votes
9 answers

Is it possible to Generate a thumbnail from a video url in android

I am working on a video app. I am streaming a video from server link , is it possible for me to generate a video thumbnail from the URL without downloading the video.
DKV
  • 1,767
  • 3
  • 28
  • 49
31
votes
10 answers

VideoView onResume loses buffered portion of the video

I am having an Activity in which there is VideoView -- Streams a video from a webserver. Button -- Takes the user to the next activity to be shown. When the application starts, VideoView is made to play the Video from a webserver. Now…
30
votes
4 answers

Android ExoPlayer : Does it solve gapless / seamless playback issue that is broken for the Android Media Player

Has anyone tried using ExoPlayer to achieve this? I tried looking online with no success. When I say gapless playback, I am referring to the problem of using the media player to play local videos back to back. After the first video is done…
28
votes
1 answer

Android Video Player Using NDK, OpenGL ES, and FFmpeg

Ok so here is what I have so far. I have built FFmpeg on android and am able to use it fine. I have been able to load a video into FFmpeg after passing the chosen filename from the java side. To save on performance I am writing video player in the…
DRiFTy
  • 11,269
  • 11
  • 61
  • 77
22
votes
4 answers

VideoView inside fragment causes black screen flicking

We have an Android application running on Android API 4.0. One of the activities has a layout that divides the screen in 2 parts. On the left side we have a static part with some buttons. On the right side we have a FrameLayout that will switch to…
Kenny
  • 5,350
  • 7
  • 29
  • 43
21
votes
4 answers

stream live video to Android

How can I stream live video to Android (2.1 and higher), I have two links: m3u8 and f4m (As I know, f4m is not supported). From what I saw on stackoverflow, there is a way to stream m3u8 with vitamio (but the link is not working ). Is there any…
20
votes
2 answers

How to create a video preview in android?

I have a video file in my sdcard. I would like to show a preview of this video in my ImageView . Please let me know how to do this in Android. Thank you for your help and time.
Vinod
  • 31,933
  • 35
  • 96
  • 119
20
votes
0 answers

Incorrect presentation timestamps when seeking backwards through MP4 video

I'm using MediaCodec and MediaExtractor to play video at variable rates, both forwards and backwards. The code is using something like SpeedControlCallback to establish inter-frame pauses - feeding it the presentationTimeUs field from the output…
moe
  • 452
  • 2
  • 10
19
votes
3 answers

Android - Views overlaid on the last frame of a fullscreen video don't redraw properly when turning the screen on and off

I have a video that plays in portrait mode. At the end of the video, I need to display some views over it. This works fine so far. I am however, having a problem where views that are over the last frame of a video don't redraw properly when coming…
19
votes
3 answers

Resize video to fit the VideoView

I'm positioning a VideoView with AbsoluteLayout (I need to display it on several places into the screen at specific positions). public void showVideo(RectF bounds, final String videoUrl) { AbsoluteLayout.LayoutParams params =…
Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
16
votes
1 answer

Change MediaController position on rotation

I'm trying to change MediaController's anchor dynamically on orientation changes. And after all my attempts this isn't working as needed. Perhaps you could point out my mistake. In a few words: Portrait mode: weightSum = 1. SurfaceView weight:…
AnZ
  • 1,040
  • 24
  • 54
14
votes
3 answers

Android SDK - Media Player Video from URL

I've tried to find a simple tutorial which explains how to load a video from a URL into the android media player but unfortunately I couldn't find any! I have tried several things to try get it working but still no luck. What is the best way to have…
user1417302
  • 411
  • 3
  • 9
  • 22
11
votes
2 answers

How to add video playback and resource to android application

I have got problem with my idea on andriod app. I'd like to play video in it, but I don't want to download it from interenet. In other case, I want to have it on device. So, person is download it from android market and can play video without…
sebap123
  • 2,541
  • 6
  • 45
  • 81
10
votes
1 answer

Android Video Player libraries with cache video

I developed android app which is based on video listing,I face some problems that are, 1.When scroll a listview video need auto play 2.Need pause,stop,resume and full screen mode 3.Every time video is streaming 4.How to make cache videos and play…
Android
  • 141
  • 1
  • 3
  • 8
1
2 3
36 37