Questions tagged [android-video-player]

Related to playing videos in Android API

541 questions
4
votes
1 answer

Android SDK: Media Player - Load video stream from HTTP url

I have a MediaPlayerActivity with the following code: This code basically tries to get a video stream from a http url and load it but for some reason it keeps crashing. public class MediaPlayerActivity extends Activity { @Override public…
user1417302
  • 411
  • 3
  • 9
  • 22
4
votes
2 answers

How I can play rtsp video from wowza server?

I have a rtsp url from Wowza Media Server 2 Perpetual 2.2.4.07 How can I play it in app?
4
votes
2 answers

How to play Live Streaming video in Android

In my project I have a requirement to play live streaming video. I have seen many comments that "live streaming is supported only from 3.0" so that I have to use emulator 3.0. But it does not play. Can anybody help for me.. This is my code: String…
Gopi
  • 171
  • 3
  • 8
3
votes
1 answer

Google TV App to display MPEG2 streams from HDHomeRun Prime

I have been working on an app to allow me to get rid of my cable boxes and use a HDHomeRun Prime and GoogleTV boxes (Sony blu ray player current) with the newest 3.1 honeycomb update. In preperation for the GTV Honeycomb update I converted…
user1026233
  • 41
  • 3
  • 6
3
votes
0 answers

Android Camera: rotating output videos

I have a problem with output video for MediaRecorder - it rotates videos at 180 degrees after front face camera recording, but playback rotation during recording is normal. You see, native camcorder for my device (Samsung Vibrant) has the same…
3
votes
2 answers

MissingPluginException(No implementation found for method on init channel better_player_channel)

I am getting the following error even though I copied the example from better_player documentation. I made sure my target on android is 31, kotlin is 1.5+, and internet permission is enabled. Here is my flutter version: ➜ drm_player git:(main) ✗…
3
votes
1 answer

How to stop a video when the page is not visible in ViewPager2

I have a app where I make a API call and get a arraylist of videos, which I play in a viewpager using a adapter. When I scroll the viewpager, the video playing before still keeps playing and even after I scroll again. I want it so that the video…
3
votes
2 answers

Flutter video_player cannot load multiple videos in one page

I want to create a page in Flutter with multiple looping videos. On my phone (which is a Samsung Galaxy Note 10 Plus) all the videos are loading perfectly, but when I run the same app on other phones (I tried on a Samsung Galaxy S6 and Galaxy A71) 2…
3
votes
1 answer

Android: How to start video activity on portrait mode

I am trying to play video from url using the following code: Intent intent= new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(movieurl), "video/*"); startActivity(intent); When I intent started it show the video player in landscape…
zohar
  • 2,298
  • 13
  • 45
  • 75
3
votes
4 answers

Exoplayer error in Recyclerview, Source error None of the available extractors

I am using ExoPlayer to stream videos in a RecyclerView. I am implementing the ExoPlayer inside my RecyclerView Adapter's bind method inside my ViewHolder. The video format I am using is m3u8 and the URL I am using works in a browser. So I know…
3
votes
1 answer

Problem with audio while recording video

I am able to record video but I am not getting audio for that video. Can any one help me to record video&audio at same time. my code is as follows: mr = new…
Shekhar
  • 1,767
  • 3
  • 16
  • 19
3
votes
0 answers

How to play video from MediaRecorder in Android

I want develop one screen recorder application I develop this and i can record from screen, but after stop recording when i want play this video, show me this message : Cannot play video. Unsupported file type For record screen i used…
3
votes
1 answer

How to use custom video player in a webview?

I want to make a simple browser app in android webview. Whenever I enter a website, if there's a video in that url, the video would be played into my custom video player automatically. Can anyone help me with this?
Inan Mahmud
  • 226
  • 3
  • 14
3
votes
1 answer

Loading video from gallery to VideoView through a button

I am trying to load video from gallery to VideoView using a button. When I run my app, click on Load video button, it loads the video BUT plays only audio of that video file. I've also added the READ_EXTERNAL_STORAGE permission in the manifest…
3
votes
2 answers

Android video Player for video streaming (currently using ExoPlayer )

In android application I am showing videos using ExoPlayer , I am facing memory issues and slow video rendering, if there is any alternative android native video player please suggest. Thanks in advance
user3395433
  • 123
  • 2
  • 10