media-player

Dropdown contents not overlapping video player

怎甘沉沦 提交于 2019-12-08 07:45:08
问题 I have an object tag for playing videos on my page: <object id="Player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" data="mms://TAL-BBSR-01/01_Debugging.wmv" width="100%" type="video/x-ms-asf" height="400" wmode="opaque" url="mms://TAL-BBSR-01/01_Debugging.wmv"> <param name="url" value="mms://TAL-BBSR-01/01_Debugging.wmv"> <param name="filename" value="Video"> <param name="autostart" value="1"> <param name="uiMode" value="full"> <param name="autosize" value="1"> <param name=

error -19,0 from using Mediaplayer?

删除回忆录丶 提交于 2019-12-08 07:35:13
问题 E/MediaPlayer(20473): error (-19, 0) I/MyApp (20473): Decoding lala.mp3 I/StagefrightPlayer( 68): setDataSource('mypath') E/AudioFlinger( 68): no more track names available E/AudioTrack( 68): AudioFlinger could not create track, status: -12 E/AudioSink( 68): Unable to create audio track Does any1 know why i'm getting this? This usually happens after playing about 100+ of so audio files using mediaPLayer. I'm playing it like this public RenderResultFormat DoIt() { if(mp!=null){ mp.release();

ffplay / ffmpeg setup table with audio and video filters

[亡魂溺海] 提交于 2019-12-08 07:33:13
问题 Regards , I want to create a table with ffplay, that display the audio and video monitoring, from a signal like this: Unfortunately I can do only the video section: ffplay -i bar.mxf -vf "split=4[a][b][c][d],[d]vectorscope=m=color3:g=color[dd],[a]waveform=m=1:d=0:r=0:c=7[aa],\[b]waveform=m=0:d=0:r=0:c=7[bb],[c][aa]vstack[V],[bb][dd]vstack[V2],[V][V2]hstack" I can't put together an audio filters with video filters, actually I can't even do the audio section, I've audio filters independent but

Audio seekBar Thread Problem?

♀尐吖头ヾ 提交于 2019-12-08 05:45:23
问题 Originally, I had a MediaPlayer mPlayers to play/pause/stop my Audio file. Now, I'm trying to add a seek bar for my media. I tried using Threads and this is what I came up with: In onCreate() : seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { // TODO Auto-generated method stub mPlayer.seekTo(progress); } ////........Omitted Code..........\\\\ //At the very end of the method:

Android: Mediaplayer stop / start playing raw resource

爷,独闯天下 提交于 2019-12-08 05:15:47
问题 It now plays on first press, stops on second press or press of another sound button. If I let a sound play through I can restart it or play another sound on a single press. My goal is for the second press of the same button to stop it, but the press of a new button to just start the new sound instead of first press of new button stopping the old sound, second press starting the new sound. I can see why it does what it does now but am not sure how to make it work the way I want. public void

Processing dynamic MP3 URL

99封情书 提交于 2019-12-08 05:06:36
问题 I am using Yahoo Media Player for playing MP3 songs on my website. I have put some static MP3 links on site. For e.g. <a href='1.mp3'>Song1</a> <a href='2.mp3'>Song2</a> And I have put the YMP JavaScript API code also. Now, I want to load the songs dynamically... For example if user clicks on a button I want to load a complete new play list to the player. //Something like this var clickEventHandler = function(){ YMP.removeAllSongs(); YMP.addSongs(mp3_links); YMP.play(); } 回答1: This may help

MediaPlayer vs SoundPool for only 1 simultaneous stream

扶醉桌前 提交于 2019-12-08 03:47:35
问题 I'm working on a game in which one single sound is played each time the phone is shaked. Does it make sense to use a SoundPool and load sounds in the onCreate of my activity, or is it ok to create a mediaplayer each time, as shown below: private void onShake() { MediaPlayer mp= MediaPlayer.create(this, whipSound[currentWhip][force]); mp.start(); } My guess is that SoundPool is better because the sounds are loaded only once. Am I right? Thanks Julien 回答1: As expected, SoundPool is much faster.

How to mute Microphone when recording from headset

不羁的心 提交于 2019-12-08 02:50:22
I am making a application to record audio from bluetooth headset. After that, the signal sound from headset will be played in to speaker of android phone. However, my problem is that some signal from microphone of android phone is also played. I want to mute microphone of android during playing. Is it possible. I am refering some link but it does not useful. Please give me one solution to turn of my microphone. This is my setting _audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); int maxJitter = AudioTrack.getMinBufferSize(SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,

Buffered level of music showing in seekbar

妖精的绣舞 提交于 2019-12-08 01:59:09
问题 Hi there. As you can see i want to show buffered level of media that stream to user in android music player. The solution i imagine for this issue is that: Should i create a seekbar and a progressbar with transparent background and overlap progressbar to seek bar, whereas progreesbar showing buffered level of music. but im not sure about this strategy. is anyone to help me for best way to reaching the goal at this issue. 回答1: First of all should implements OnBufferingUpdateListener to

android widget and localservice bind

混江龙づ霸主 提交于 2019-12-08 01:32:35
问题 I writing player, it has main activity that runs localservice. I can't find how bind localservice to widget. When i trying to bind it like in activity it fails. Plz help me. Adding #1 How can I contact with background service when? http://www.developer.com/ws/data/article.php/10944_3843561_1/Handling-Lengthy-Operations-with-Android-App-Widgets.htm here i found something, but it doen't work for me. 回答1: You cannot bind to a service from an AppWidgetProvider . 回答2: You can bind to a service