media-player Questions

4

I am trying to add a Windows Media Player object to my Windows form but it pops out an error: Failed to create compopnent 'AxHost'. The error message follows: 'System.Reflection.ReflectionTypeLoad...
Spahi asked 29/3, 2016 at 3:52

2

Solved

I would like my app to respond to the F7, F8 and F9 keyboard media control buttons. I am aware of this lovely library but it is not working in combination with Swift: https://github.com/nevyn/SPM...
Snips asked 10/9, 2015 at 10:42

6

Solved

I have a mp3 file in my android mobile, lets it's a xyz.mp3 somewhere in my sdcard. How to play it through my application?
Casarez asked 3/9, 2011 at 7:18

6

Solved

On THIS page a have made a custom HTML 5 audio player "handler": <div class="default-player"> <audio controls="" autoplay="" name="media" id="audio_player"> <source src="http://st...
Continental asked 22/2, 2017 at 16:13

7

Solved

I have music playlist for 5 songs. I just want that play and stop buttons work as long as im in app. And that i can stop music when i want to and start another. How this works now...The music play...
Antoninus asked 14/4, 2013 at 16:49

8

I have a video file and I want to get width and height of video. I don't want to play it, just to get size. I've tried to use MediaPlayer: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(uriS...
Asparagus asked 31/1, 2012 at 9:52

2

I have the following working code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.player); videoView = (Video...
Expectation asked 8/12, 2009 at 19:20

3

I'm currently developing a simple game and now it's time to add music and sound effect. I tried using MediaPlayer, just like described here: Android media player bug However I have another problem...
Gregor asked 5/6, 2011 at 8:9

3

Solved

I'm building video player with android media player object. i'm able to hear the audio but the video does not appear on surfaceView. here is my code public class PlayerActivity extends Activity i...
Paramagnet asked 22/5, 2013 at 20:0

4

Solved

I have a soundboard like app. I don't want the sound to stop even if the user clicks another sound. But, after a while, like 30 clicks (sound players), it stops. I think it runs out of memory or An...
Knavish asked 3/3, 2013 at 18:13

6

Solved

I'm creating Android application contains 2 buttons, on click on each button play a mp3 file. The problem is when I play button1 it plays sound1, when I click button2 it plays sound2. I check on e...
Lanner asked 4/9, 2012 at 15:15

5

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 !
Instrument asked 4/3, 2014 at 9:25

3

Using addSpeech() in android TTS, you can link a certain text to a sound file. Then, the TTS engine plays the file instead of synthesizing the sound of the text (also in question at Android TTS(Tex...

9

Solved

In my project, I am playing music file in android media player by using the following code MediaPlayer mPlayer = MediaPlayer.create(MyActivity.this, R.raw.myfile); mPlayer.start(); the above is ...
Regality asked 27/2, 2012 at 6:45

5

Solved

This is the code am using to fetch a file name(.mp3) dynamically from some other class as am having many mp3 files in my assets folder: playAudioButton.setOnClickListener(new OnClickListener() { ...

2

Solved

I am building media style notification for a radio app in android. Here's my code for notification : NotificationCompat.Action action = new android.support.v4.app.NotificationCompat.Action.Builder...

6

As i understood, Android 3.0 and above are able for play radio streaming m3u8 - http://developer.android.com/guide/appendix/media-formats.html I put this link - http://content.mobile-tv.sky.com/co...
Schutzstaffel asked 1/6, 2011 at 9:27

3

I'm trying to play DASH video on android devices with the ExoPlayer from Google (http://developer.android.com/guide/topics/media/exoplayer.html). The documentation is very, very poor and I cannot f...
Calmative asked 7/2, 2015 at 19:46

7

I want to use MediaRecorder to record voice, my code is: public void record(View v) { Log.d(TAG, "record"); this.mediaRecorder.setAudioChannels(1); this.mediaRecorder.setAudioSamplingRate(441...
Bolen asked 1/2, 2013 at 6:8

4

How do open a remote Video file URL from a button click to play in the internal MediaPlayer without having to open a browser window? The video plays fine, but it always opens a browser window 1st ...
Pernell asked 6/1, 2011 at 20:24

5

App I'm developing contains many short (1-2 sec) videos. The videos are displayed in one activity. User can either replay video (possibly while video is beeing played) or change actual video. Pa...
Gravimetric asked 20/12, 2012 at 15:11

6

Solved

How to I create mediaplayer instance with inputstream? I see only 4 function for setDataSource. And there is no function getting inputstream ? is it a must to use FileDescriptor to mediaplayer ?...
Tetrafluoroethylene asked 11/3, 2011 at 12:3

8

Solved

I have multiple audio files in res/raw folder. I showing ListView that contains audio files name. I want to play the corresponding audio file when user select into the ListView. I have used setData...
Bold asked 21/9, 2011 at 12:17

5

I try to play a sound from R.raw. inside a Thread/Runnable But I can't get this to work. new Runnable(){ public void run() { //this is giving me a NullPointerException, because getBaseContex...

3

Solved

I m using the MediaPlayer to play one of the internal alarm ringtone. i m using the setVolume(1.0f, 1.0f) to maximize the volume when the ringtone is played. but the ringtone doesn't play full volu...
Delsiedelsman asked 26/11, 2011 at 14:7

© 2022 - 2025 — McMap. All rights reserved.