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
3 answers

UWP including mediaplayer transport bar as part of commandbar?

I am trying to create a custom media transport controls for a mediaplayer application where I could add my own buttons and functionality. The only thing I would need from the standard MediaTransportControl is the SeekBar. I've tried fiddling around…
Francois Gagnon
  • 362
  • 4
  • 20
1
vote
1 answer

Respond to Headphone events when using MediaPlayer

I'm using the built in MediaPlayer class in Android 2.1 to play audio & video files. However when I plug my headphones in and press the play pause button on them it fires up the built in music player which then plays as well as my app. Is there a…
rustyshelf
  • 44,963
  • 37
  • 98
  • 104
1
vote
1 answer

MediaPlayer won't play video

I'm implementing a Media player in my iPad app, but the video won't play at all. It shows the video's first frame, but as soon as I press play, it pauses instantly after. Any idea why this is happening? I think it probably has to do with the iPad…
Adam Storr
  • 1,438
  • 2
  • 21
  • 46
1
vote
0 answers

C# windows media player event: when playlist has finished

mp4 video files are in a folder. Files will change from time to time as new ones are added, old ones removed so it’s not a statis list. I’m reading the files in the folder at runtime and loading an array with the filenames to create a playlist. At…
user1062142
  • 119
  • 3
  • 13
1
vote
1 answer

Why does QMediaGaplessPlaybackControl not exist?

I have modified the Qt Media Player Example, trying to get QMediaGaplessPlaybackControl for a crossfade effect. Here is my code: auto service = m_player->service(); auto cc =…
Fred
  • 162
  • 9
1
vote
1 answer

android studio media player null object reference

I ran into trouble when trying to use the media player in Android Studio, it seems like i haven't initialize the media player properly, which caused the app to crash (on phones running on Android 8.0) when SoundFXPlayer.setVolume() function is…
1
vote
1 answer

Using mediaelement.js Flash player standalone

i'm using the brilliant MediaElement.js library to play video. However, i want to try building another interface to the Flash player, but i'm wondering how this works. Most Flash players i know expose their interface using some kind of global…
Husky
  • 5,757
  • 2
  • 46
  • 41
1
vote
2 answers

How to create a Video Player

I'm trying to create a simple video player with 3 buttons: play, stop and pause. My video will be from the raw folder or at a server url that I will upload it to. Do you have any tutorial on this in order to get some ideas? Also, I have created a…
menu_on_top
  • 2,613
  • 14
  • 44
  • 71
1
vote
0 answers

JavaFx MediaPlayer can't play my mp3 and m4a files converted by ffmpeg

I record some .wav files from microphone, and convert it to mp3 and m4a files. These files can be played with my desktop player correctly. Then in my JavaFX program, I play them as: String fileUri = file.toURI().toString(); Media media = new…
Freewind
  • 193,756
  • 157
  • 432
  • 708
1
vote
1 answer

TextView not drawing from within button onClick

I am trying to create a music streaming app. So far it works just fine. I am using the MediaPlayer.create(thisContext, Uri.parse(PATH_TO_STREAM)); convenience method to prepare the infinite stream (24x7 mp3 stream). It hangs for just a few seconds…
Josh P
  • 1,325
  • 14
  • 12
1
vote
1 answer

Exoplayer video Transition from one activity to other without stopping plaback

Does anybody have any suggestions to how to achieve this scenario with exoplayer or somple media player. I have requirements like a video is playing on a list and on click on that video it should be move to New full screen activity with smooth…
1
vote
1 answer

Codenameone MediaPlayer generates 'can't play this video' error on Android how do i intercept the dialog so it fails silently

My codenameone project has a mediaPlayer which plays videos once they are downloaded, in some instances when the network breaks the video is still saved on the device even though it is corrupt and when the player tries to play this video i get the…
1
vote
1 answer

Two SurfaceHolders in one Activity

I want to play one RTSP stream in a surfaceView while I prepare the other in a separate thread. However, the MediaPlayer does give an error when instantiating two SurfaceHolders: Command PLAYER_PREPARE completed with an error or info…
dulys
  • 77
  • 1
  • 9
1
vote
1 answer

(Expected Declaration) error when using MPVolumeView

Im trying to setup MPVolumeView. Even though I declare the view, when putting "volumeView.addSubview(volView)" it gives me the error the error "expected declaration". I don't what I am doing wrong? import UIKit import AudioKitUI import…
1
vote
1 answer

Playing audio files from device internal storage. It keeps throwing IOException on void prepare()

I want to play audio files which are stored on internal storage of my application from a user device: here below are the full code of extracting and showing list of those audio files= //variables of retrieving audio file from internal…
Mugirase Emmanuel
  • 385
  • 1
  • 5
  • 14