audio-player

Android MediaPlayer is preparing too long

倖福魔咒の 提交于 2019-12-01 17:53:43
Hey, I'm using MediaPlayer to play a regular ShoutCast stream. The code is straightforward with prepareAsync() and a handler to start the playback. While it works flawlessly with some streams like DI.FM or ETN.FM (http://u10.di.fm:80/di_progressive), with others (http://mp3.wpsu.org:8000/) it won't go past the prepare state. No other listeners are called either. //Uri streamUri = Uri.parse("http://u10.di.fm:80/di_progressive"); /* works */ Uri streamUri = Uri.parse("http://mp3.wpsu.org:8000/"); /* stuck on prepare state */ MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer

Android MediaPlayer is preparing too long

纵饮孤独 提交于 2019-12-01 17:43:14
问题 Hey, I'm using MediaPlayer to play a regular ShoutCast stream. The code is straightforward with prepareAsync() and a handler to start the playback. While it works flawlessly with some streams like DI.FM or ETN.FM (http://u10.di.fm:80/di_progressive), with others (http://mp3.wpsu.org:8000/) it won't go past the prepare state. No other listeners are called either. //Uri streamUri = Uri.parse("http://u10.di.fm:80/di_progressive"); /* works */ Uri streamUri = Uri.parse("http://mp3.wpsu.org:8000/"

How do I style the default Wordpress audio player with CSS?

泪湿孤枕 提交于 2019-12-01 05:10:43
问题 I frequently use the Wordpress audio shortcode to embed my podcast episodes in my posts: [audio src="http://podcastsourcefile"] Unfortunately, the default audio player looks terrible. I would like to have it restyled with CSS. I have a mockup I can send to show you what it should look like, but here's the basic gist: background color: #B27D47 replace play button image (I can provide the .png file) make the player 75 pixels tall, 100% width round the corners of the player Here's what I would

How to play a sound in NETCore?

左心房为你撑大大i 提交于 2019-12-01 03:09:57
I'm trying to play a sound inside a .Net Core console application and I can't figure this out. I am looking for something managed inside the .Net Core environment, maybe like regular .Net : // Not working on .Net Core System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav"); player.Play(); Found an issue on dotnet core Github where they talk about it. https://github.com/dotnet/core/issues/74 They say there is no high-level API for audio playback but the issue is 9 months old, so I hope there is something new ? There is now a way to do it with NAudio library (since 1

Showing a common music player in all activities

瘦欲@ 提交于 2019-12-01 00:22:49
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 do this. My best guess is creating a music player class with its own layout, and including this at the

Lock screen player's seek bar issue in iOS 7

蹲街弑〆低调 提交于 2019-11-30 20:15:16
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 seek bar on lock screen like native music app or do I have to add some setting for it in my code ? I

Create a binary file extension reader for mobile

ⅰ亾dé卋堺 提交于 2019-11-30 18:00:43
问题 It is an ancient binary file extension, actually a video file created by Inter-Tel Web Conference software. It contains a screen recording video and voice audio, and also can capture the keyboard chat log, attendees and the document manager window during a conference. It can be played with Inter-Tel Collaboration Player, a standalone application included with the Web Conference software package. What I am trying to do now is finding a way to play these files on mobile, although Inter-Tel

how to play audio file from url in android

心已入冬 提交于 2019-11-30 15:37:29
问题 I need to play audio file from remote server in my app. I could play when I tested with localhost server (using WAMP). When the same file supplied from the server it is not working.. The file has no extension and the content is MP3 String fileUrl = "http://192.168.1.131/myproject/songs/xyz"; String url = "http://myserver/songs/xyz"; //(myserver -> A remote server) mVideoView.setVideoURI(Uri.parse(fileUrl)); mVideoView.requestFocus(); Also I need to have a better control over player. Please

how to play audio file from url in android

夙愿已清 提交于 2019-11-30 14:56:39
I need to play audio file from remote server in my app. I could play when I tested with localhost server (using WAMP). When the same file supplied from the server it is not working.. The file has no extension and the content is MP3 String fileUrl = "http://192.168.1.131/myproject/songs/xyz"; String url = "http://myserver/songs/xyz"; //(myserver -> A remote server) mVideoView.setVideoURI(Uri.parse(fileUrl)); mVideoView.requestFocus(); Also I need to have a better control over player. Please help... public void onRadioClick(View v) { if (!isPLAYING) { isPLAYING = true; MediaPlayer mp = new

Prevent my audio app using NuPlayer on Android Lollipop 5.x?

僤鯓⒐⒋嵵緔 提交于 2019-11-30 07:39:42
I have an audio app that plays multiple tracks at the same time, each with their own mediaPlayer . Each track is reasonably long, upwards of two minutes. So long as the tracks are encoded as ogg files, everything works great on Android 4.x. I've yet to encounter a device running stock 4.x that has any audio problems with this setup. But on Lollipop 5.x there are a wide variety of audio problems - stuttering, tracks cutting out, and bluetooth audio almost never seems to work. I've discovered that going into Developer options in 5.x and unchecking "use Nuplayer (experimental)" instantly solves