media-player
VideoView / MediaPlayer Error (1, -18)
I have an application that is built to API level 2.2. This application contains a video that starts playing as soon as it is launched. The video is played inside a VideoView and the actually video fil[详细]
2023-04-09 06:48 分类:问答NullPointerException when trying to play a sound with MediaPlayer
So I have a simple soundboard type application that operates via a ListView. Tap an item, it plays the sound. I have a public static int[] named soundResourceList that has entries such as R.raw.foo, R[详细]
2023-04-09 05:44 分类:问答MOV playback not working using UIImagePickerController with MPMoviePlayerController
I have read similar threads regarding movie playback in a MPMoviePlayerController after selecting a video using UIImagePickerController including:[详细]
2023-04-09 04:50 分类:问答WAV plays from file, does not play directly from URL
I have a URL that returns a 8-bit PCM, mono, 8 kHz WAV sound. When I try to play that URL via Android\'s MediaPlayer class, I get an error and the following in LogCat:[详细]
2023-04-09 04:00 分类:问答How to close the default media player?
I have started the default media player using the following code: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW);[详细]
2023-04-08 23:32 分类:问答Android MediaPlayer Mute and unmute
I am playing a video using MediaPlayer. Now there is a mute/unmute button. This toggle button should set first the video play without sound, on second press it should make its volume to 开发者_高级运维[详细]
2023-04-08 12:01 分类:问答how to get informed of new song info while retrieving metadata from shoutcast stream
Background: I\'m streaming radio using double buffering approach for html shoutcast. I get metadata information from stream using http://www.smackfu.com/stuff/programming/shoutcast.html[详细]
2023-04-08 08:56 分类:问答Why is MediaPlayer OnCompletion fired the first time a media is played?
I have spent lots of hours trying to figure this out: When MediaPlayer is loaded and started the first time, its OnCompletion is called. This is a prob开发者_如何学Golem because I have some code that[详细]
2023-04-08 04:23 分类:问答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.[详细]
2023-04-07 03:26 分类:问答How do I play multiple songs stored in my raw folder using MediaPlayer in android?
How do I play multiple songs that I h开发者_如何学编程ave stored in a raw folder using MediaPlayer using seek and previous? Thanks.To play a file from your Android project\'s raw folder:[详细]
2023-04-06 22:44 分类:问答