Questions tagged [android-video-player]

Related to playing videos in Android API

541 questions
5
votes
2 answers

Android: Video Player Like Dailymotion App

I want to develop video player like dailymotion app. The main thing that i want to achieve is it's rotation behaviour and full screen button action. When user rotate device or tap on full screen button the video player goes to full screen and video…
5
votes
1 answer

Strange behaviour with mediaplayer and seekTo

I'm implementing a custom video player because I need custom video controls. I have an app with only one activity, which on startup shall start playing a video right away. Now, the problem I have is: I don't want the video to start from the…
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
5
votes
0 answers

How to start(play) video once buffer reaches 20% in android video view

I have a video view to play video by using url which comes from server. I want video to be played once buffering reaches 20% . So i have added listener for setOnBufferingUpdateListener to mediaplayer like below. Uri video =…
Rakki s
  • 1,426
  • 1
  • 18
  • 42
5
votes
1 answer

How can I play MP4 video through a direct link in Android video player?

I am making an Android application in which i need to play mp4 video in the android default native video player through a direct downloadable link. To open the Android video player I am using the following code Intent intent = new…
Manish Agrawal
  • 551
  • 2
  • 6
  • 22
5
votes
2 answers

Play YouTubePlayer programmatically not working

I am using the YouTube API to play a video in my app. I want to play the video right when the user enters the fragment so I used the command player.play(); in order to play automatically. However this command doesn't seem to work... Here is my…
user1163234
  • 2,407
  • 6
  • 35
  • 63
5
votes
1 answer

how to implemenent android video player in full screen

i have implemented android video player , but i don't need like this how i need mean when opening activity i need to pay video half screen in center when i click button full screen button then i need t pay in full screen , how to implement it help…
user2251658
5
votes
0 answers

How to play rtsp live stream from android? (rtsp://someserver:port/live/001204A006F5.stream)

I have this video url rtsp://someserver:port/live/001204A006F5.stream and wanted to play the same from android media player. I have written following code snippet but android is showing a dialog box with the msg "Can't play this video". public void…
5
votes
1 answer

What is the differnce between accessing file from assets folder or SD card

I am developing an application where I have to use three different size's file (1mb, 5mb, 15mb). I searched, then came to know that we can keep these video in assets folder and can use those video. Secondly, I came to know that we can keep these…
CodingRat
  • 1,934
  • 3
  • 23
  • 43
5
votes
1 answer

Android webview doesn't play video, jwembedder

I have this problem: i'm testing this script in a sample android 2.2 (API 8) project. When i run my app on the device or emulator, the WebView displays the video but if I tap to play, the app doesn't play it: the video become all black. If i put…
Luca Corradi
  • 2,031
  • 1
  • 16
  • 17
5
votes
2 answers

android how to resize video width and height in surface view for media player

Want to resize the video in surface view I am Playing a video in Media Player with using a Surface view and holder for video... // but on implementing MediaPlayerControl on some devices say Micromax, iball, Akash tablet it gives error of abstract…
Arpit Garg
  • 8,476
  • 6
  • 34
  • 59
4
votes
2 answers

How to play video stored on a online file server?

I have to play a video in my android app. The file is stored on a online file server link is : http://view.vzaar.com/923037/video I am unable to play this file using VideoView. I also tried to load this file into WebView but the WebView opens Web…
4
votes
3 answers

HLS streaming on Android

The HLS is supported on Android since version 3.0. Until the Honeycomb the H.264 and AAC was supported, but there was only RTSP streaming protocol. The HLS and MPEG-2 TS not (see here) were not supported. Porting the ffmpeg to the Android platform…
STeN
  • 6,262
  • 22
  • 80
  • 125
4
votes
1 answer

Unable to set minimum duration for video recording in Android

I used the code below to set minimum duration for video recording, but it is not working. I have tested it on Android 2.2 and Android 2.3.3 intent.putExtra("android.intent.extra.durationLimit", 60); What is a correct way to do this?
DevAndroid
  • 99
  • 3
  • 7
4
votes
2 answers

android: video as background view

I want to play video in background of the view.In view i want to some other view like button and textview, can it is possible to do that? i have try using the following code < RelativeLayout…
Sameer Z.
  • 3,265
  • 9
  • 48
  • 72
4
votes
1 answer

exoplayer - Enable subtitle on video

I want to add subtitle on video from srt (or vtt or ttml). What I have made till now - We have an api by which we get youtube video url with the subtitle file link on our own server. I extract video url from the youtube link with the help of a…