audio-player

Disable Android's VideoView requestAudioFocus when playing a video?

断了今生、忘了曾经 提交于 2019-12-21 03:36:07
问题 I'm building an app that records and plays back video. I would like to do so without affecting background music playback, i.e. if I begin playing a video, I do not want to pause other apps' audio. However, on Lollipop, Android's VideoView class automatically requests audio focus when the private method VideoView.openVideo() is called: AudioManager am = (AudioManager) super.getSystemService(name); am.requestAudioFocus(null, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); Any

iPhone progressive download audio player [closed]

老子叫甜甜 提交于 2019-12-20 10:57:52
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago . I'm trying to implement a progressive download audio player for the iPhone, using http and fixed size mp3-files. I found the AudioStreamer project but it seems very complicated and works best with endless streams. I need to be able to find out the total length of audio files and

VideoView with Gesture(Swipe function) in android

自古美人都是妖i 提交于 2019-12-20 09:07:33
问题 I want to combine default VideoView and gesture listener , I want to implement likewise on VideoView if user swipe left then song plays backward or swipe right then song plays forward. open default media player via following code : Intent intent = new Intent("android.intent.action.MUSIC_PLAYER"); startActivity(intent); then how to add gesture listener ..?? 回答1: i got that how to combine VideoView and GestureListener : layout file activity_main.xml : <LinearLayout xmlns:android="http://schemas

Android 2.1+ Pause for incoming/outgoing call, resume when done

女生的网名这么多〃 提交于 2019-12-20 05:38:29
问题 Is there a reliable way in Android to detect the beginning and end of incoming and outgoing calls, in order to do things like pause and play audio. I have done the following: telephonyManager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); callEventListener = new PhoneStateListener(){ @Override public void onCallStateChanged(int state, String incomingNumber) { super.onCallStateChanged(state, incomingNumber); if (state == TelephonyManager.CALL_STATE_IDLE){ //.... }

Alexa Skill AudioPlayer: Console test Support poor support/bugs

空扰寡人 提交于 2019-12-20 02:52:05
问题 I'm developing a skill to play my own music. I have troubles with AudioPlayer with the developer console test environment ( https://developer.amazon.com/alexa/console/ask/test/ ). Two questions: 1. AudioPlayer Built-in Intents doesn't run as expected (test simulator bug?) Alexa, play mymusicsSkill playing Wanderer track 1: Antelao Adrift Alexa, next What would you like to play next? Ask mymusicSkill next intent: next See also screenshot: BTW, my code: 'AMAZON.NextIntent': function () { this

Showing a common music player in all activities

柔情痞子 提交于 2019-12-19 04:14:20
问题 I'm working on an app for a band, which consists of several different activities such as an agenda, news section, album section et cetera. Since it's for a band, I would like to play the band's songs in the background. This isn't such a problem, but I would like to show a small music player on the bottom of all activities so users can always stop, skip, or replay a song if they want to. An example of this can be found in the apps of Mobile Roadie, for instance. However I have no idea how to

Lock screen player's seek bar issue in iOS 7

北城以北 提交于 2019-12-19 02:43:41
问题 If I play music through iPhone's native music player in iOS 7 and access it on lock screen then I can drag the player's seek bar i.e user can interact with it. Screenshot : But if I play music from my app which supports background audio play then the player's seek bar user interaction is disabled on lock screen. I am unable to move it. Screenshot : I searched apple's documentation but didn't find anything related to this. My question is, does iOS allow 3rd party apps to interact with player's

Notification for android music player

橙三吉。 提交于 2019-12-18 16:52:41
问题 How to control a music player from buttons in notification, and how to listen button action from the notification 回答1: You should use setOnClickPendingIntent() of RemoteViews to listen button action from the notification. The method setOnClickPendingIntent() will bind a PendingIntent to response the button click event. The sample code is like this: private void showControllerInNotification() { PendingIntent pendingIntent = null; Intent intent = null; //Inflate a remote view with a layout

Tumblr Audio Player not loading with Infinite Scroll

南楼画角 提交于 2019-12-18 13:42:07
问题 I implemented infinite scroll along with masonry on this tumblr: [check revision for link] The audio player does not appear in posts loaded through infinite scroll, instead it displays the text "[Flash 9 is required to listen to audio.]" The Inspire Well tumblr theme (I can't post another hyperlink but you can easily google it) seems to have solved this problem through this code: if(InspireWell.infiniteScrolling && InspireWell.indexPage){ $masonedColumn.infinitescroll({ navSelector : 'ul.page

How do I make an intent-filter for playing an MP3 file?

你。 提交于 2019-12-18 09:26:44
问题 I have created a music player application in Android. Now, when selecting a music file in the phone's file manager, I want my application to appear as one of the options in the "Complete action using" popup. My idea is to do this using intent filter but I have no idea what action, category, or data I need to supply to it. How do I create an intent filter for this? I've also seen a related question here: How do I make an intent-filter for streaming an MP3 file? but mine is not streaming, i am