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
1
vote
1 answer

get length of wav audio in minutes/seconds

Using DelphiXE, I'm trying to show the length of a wav file on a label. This is a wav file at fixed bit rate of 64kbps that is loaded into a tMediaPlayer. A previous SO post on the task is HERE. But no code is shown and the link to Devhood no…
Bobby
  • 81
  • 2
  • 8
1
vote
1 answer

Failed removeChild when changing state in React

I'm implementing a mixed playlists (with Youtube and uploaded videos (using react-youtube and Azure Media Player). The desired features are: Swap between Youtube (Y) and Y videos. Swap between uploaded (U) and U videos. Swap between Y and U…
AleOtero93
  • 473
  • 12
  • 32
1
vote
4 answers

Unable to create MediaPlayer, error for a soundboard

when debugging i get unable to create MediaPlayer The app loads and then hangs when i click on a button for sound. Here is the logcat errors i can't seem to find what went wrong. 04-03 16:00:17.273: ERROR/gralloc(61): [unregister] handle 0x4456d0…
Kyler Daniel
  • 15
  • 1
  • 1
  • 5
1
vote
1 answer

Android 28 Kotlin play http streaming failed on Pause and Play again

I would like to ask some question about http streaming to my Android audio player. When it comes to the execution, it plays well. When I press pause and play again, the following error occurs: The destination url is…
Jeff Bootsholz
  • 2,971
  • 15
  • 70
  • 141
1
vote
2 answers

How to update the default song metadata?

I wanted to update the song metadata fields of Track, album, genre, artist and song cover image like Musicmatch. I tried to look for the code to update the meta couldn't find any solutions.
1
vote
1 answer

Multiple mediaplayers into one

I'm making a soundboard application and I've added a lot of MediaPlayer instances in my Java file to start whenever I click on a CardView. Is there a way I can make them all into one media player? //Muziekje bingo final MediaPlayer bingoMediaPlayer…
1
vote
1 answer

Is there a Xamarin.Form MediaPlayer that works for both iOS and Android?

I think we can use Android.Media.MediaPlayer Class and MPMoviePlayerController Class (Xamarin.iOS.dll) to play back stream videos on Android and iOS device, but they are all platform specific controls. Is there any platform-independent control we…
solidcomer
  • 419
  • 6
  • 18
1
vote
1 answer

How to maintain aspect-ratio when playing RTSP streaming video in Android?

I have a streaming RTSP video link which I am playing with the help of VideoView. In the portrait mode the Video resolution and aspect ratio is perfect. But when I try switching to the landscape mode the video stretches and looks elongated. This…
Akh
  • 5,961
  • 14
  • 53
  • 82
1
vote
1 answer

Playing an pre-recorded audio file to somebody over a call

I understand that even though the AudioManager.STREAM_VOICE_CALL is available in the SDK for android, it is not actually been used to play a pre-recorded audio file, or atleast that is what i have heard/seen on the internet. My Question is this, if…
VishiousD
  • 13
  • 3
1
vote
1 answer

How to get MediaPlayer to repeatedly play sound?

My MediaPlayer only plays the sound once. When I type audio.play() twice, it still only plays once. How do I get it to play again when I call audio.play()? When I tried looking this up, most of the solutions were for Android. Where they recommended…
John Smith
  • 57
  • 3
  • 9
1
vote
1 answer

How is a media library like WinAmp's implemented?

I wonder because the access times are quite short, even for complex expressions ((playcount = "0" OR lastplay < [1 year ago]) AND rating != "1" AND rating != "2" AND filename NOTHAS "Midis & Modules" AND type = "0") so basically it behaves like a…
Felix Dombek
  • 13,664
  • 17
  • 79
  • 131
1
vote
3 answers

Android Mediaplayer - based on seekbar progress update the elapsed time of audio in textview

Using Mediaplayer to play the audio file. Everything works fine but the elapsed time of audio need to be updated in textview. textview.setText(mediaplayer.getCurrentPosition()/100000.0).toString(); This gives the double value but if the end time is…
Webrsk
  • 1,014
  • 2
  • 15
  • 24
1
vote
1 answer

MediaElementJS Player + Reload HLS stream - Any Solution?

How do I stop showing the Network Error message and just autoreload the player when the player lose the connections with the stream? I am using an HLS stream for this player: MediaElementJS I found this solution in a blog but for me it is not the…
user10368033
1
vote
1 answer

how can i fix my progress and seek slider to work for all media?

so im making a media player in javafx (eclipse) and i used to slider as a progress bar and scrubber but for some reason the sider only shows the progress for the first media , as soon as i press next the progress doesnt show anymore. i can still…
pfn
  • 87
  • 1
  • 9
1
vote
1 answer

Problem streaming video using media source extensions

I seem to have a very strange problem. I am trying to play a video which is being streamed live using a web browser. For this, I am looking at the MediaSource object. I have got it in a way so that the video is taken from a server in chunks to be…
Wolf-Kun
  • 679
  • 6
  • 12