Questions tagged [media-player]

Software or hardware device designed to play audio/video files.

Media player is a term typically used to describe computer software for playing back multimedia files. While many media players can play both audio and video, others focus only on one media type or the other. Such players are known as either audio players or video players and often have a user interface tailored for the specific media type.

Used in two main senses:

  1. A program that enables your computer to record, store and play back audio and video recordings.
  2. A device such as the portable iPod media player that is also used to record, store and play back recordings.
3940 questions
21
votes
2 answers

How to Play Streaming Audio/Video from a url?

I am new in Android. I am using android os 2.2. I am trying to play streaming audio and video from url. I don't know what to do for that. after 3 days og googling i come to know that I have to use mediaPlayer and MediaController classes. I had use…
Kapil Choubisa
  • 5,152
  • 9
  • 65
  • 100
21
votes
4 answers

How to play a WPF Sound File resource

I am trying to play a sound file in my WPF application. Currently I have the following call: private void PlaySound(string uriPath) { Uri uri = new Uri(@"pack://application:,,,/Media/movepoint.wav"); var player = new MediaPlayer(); …
xximjasonxx
  • 1,192
  • 2
  • 11
  • 27
20
votes
5 answers

Android MediaPlayer - Sometimes No Video is Played Even Though Audio Plays

I am developing an Android App and I'm using the Android SDK's MediaPlayer to play some videos in my app. When I play the video in my app, about one out of five times, the audio plays without video. It's not a simple coding error because most of the…
speedplane
  • 15,673
  • 16
  • 86
  • 138
20
votes
3 answers

Android: Mediaplayer: How to use SurfaceView or mediaplayer to play video in correct size

I am playing local video file using MediaPlayer and SurfaceView. SurfaceView is the only control in activity, while my video files are QVGA or other. Problem is that video is getting stretched, How can i play video in its original size e.g. qvga…
JRC
  • 808
  • 1
  • 11
  • 26
20
votes
3 answers

Android MediaPlayer error codes?

I am struggling with getting a live radio stream to work on android. I am using the MediaPlayer class and just setting the URL and playing it. It works great for the most part, but after 5-30 minutes it inevitably dies. On 2.1 phones (more…
Nathan Schwermann
  • 31,285
  • 16
  • 80
  • 91
20
votes
4 answers

Detect if audio is playing in browser Javascript

Is there a global way to detect when audio is playing or starts playing in the browser. something like along the idea of if(window.mediaPlaying()){... without having the code tied to a specific element? EDIT: What's important here is to be able to…
Chris
  • 2,166
  • 1
  • 24
  • 37
20
votes
10 answers

Android Media Player Plays In The Background, But Doesn't Stop When App Killed

I'm new to Android, so I have a problem. In Android I want to play background music as soon as my music player starts and have it continue even if the activity changes from one to another. I've tried this code: MediaPlayer music =…
Shahbaz Pothiawala
  • 1,175
  • 5
  • 20
  • 38
19
votes
3 answers

Media player libraries in Java

I am evaluating libraries for playing audio/video in Java. It does not need to be 100% Java; Java bindings to native libraries are perfectly OK. An external application that can be controlled from Java is also fine, as long as it can render video on…
Grodriguez
  • 21,501
  • 10
  • 63
  • 107
19
votes
6 answers

Mediaplayer progress update to seekbar not smooth?

I am working on an app with recorder and player. I am using mediaplayer to play the recorded .wav file and meantime I want to update to a seekbar. Everything is working fine But my problem is mediaplayer progress updation to seekbar is not happening…
Sreedev
  • 6,563
  • 5
  • 43
  • 66
18
votes
4 answers

How to get current playing song details from MediaPlayer

Is there any way to get the details of current song played by MediaPlayer?
Eby
  • 2,769
  • 4
  • 23
  • 30
18
votes
5 answers

Android : how to know if MediaPlayer is paused?

MediaPlayer.isPlaying() does not allow to know if the MediaPlayer is stopped or paused. How to know if it is paused and not stopped? Thanks !
toto_tata
  • 14,526
  • 27
  • 108
  • 198
18
votes
3 answers

How to play Audio file Mp3 from the server

I want to play audio from the live server. I don't want to download these audio files. Format of these files are mp3.working on android java.
M.ArslanKhan
  • 3,640
  • 8
  • 34
  • 56
18
votes
1 answer

Android MediaPlayer get volume

I'm interested in retrieving the current volume of a MediaPlayer, but don't see any method like 'getVolume()' on it. There is a setVolume(), so I'm a little confused as to why they don't also provide a way to read this property. I saw some other…
Richard Lovejoy
  • 663
  • 10
  • 18
18
votes
4 answers

How to support MOV(quick time) in android?

I want to play in .mov file in android. But videoview or mediaplayer doesn't support this meida format. How can i add the support to it?
Aaron
  • 1,274
  • 3
  • 14
  • 18
17
votes
2 answers

JavaFX MediaPlayer: MP4 Won't Loop on Windows 7

I've created a basic JavaFX Media Player. On my Windows 10 OS, everything works fine, and it functions exactly as it's supposed to. private MediaPlayer initializeMediaPlayer(){ Media media = new…
JJavaScript
  • 182
  • 6