How to play streaming background audio in Windows Phone 7.5 - audio

I've seen a tutorial about how to play local files using a background agent in WP7 Mango but it specifically states that the tutorial is related to local files:
http://msdn.microsoft.com/en-us/library/hh202978(v=VS.92).aspx
Does a similar tutorial exist for streaming files from the web?

I've used the same tutorial, and it works fine if you want to play something like a podcast that is stored as an mp3 file on a webserver. You just set an absolute Uri in the audiotrack.
I don't think you need to use the specific Streaming project unless you are doing live streaming.

Related

Embed and play sound (via audio element) in electron app

The actual task is to play mp3 file that should be embedded with the electron app.
I placed the mp3 file near my electron app "main.js".
I wanted to play it using some "sound-play" (https://github.com/nomadhoc/sound-play) package using bridge api, but it didn't worked out, sound is not playing.
So I want to just play it using an audio element (which seems to be more universal), but I don't get what src url I should supply to it. And then I wonder how to correctly add an additional asset to the built version (I'm using electron-builder).
Working with extra/local resources in election apps is kind of obscure topic for me. Advice would be appreciated.

How to play the audiobook .m4b file in julia?

I want to play a audio book file xxx.m4b in a web app, but I can't find a package to handle the m4b file. I find a possible package called ffmpeg but I have no idea how to implement it. How can I play a audio book file in a web app or just natively in my desktop?

nginx rtmp to hls streaming

My scenario is to pull data from a RTSP source via ffmpeg, send it to nginx-rtmp, and use nginx to provide hls playback. There are quite a lot of tutorials and q&a's on the internet. I followed this one:
https://docs.peer5.com/guides/setting-up-hls-live-streaming-server-using-nginx/
However, it miserably failed. To make things simpler to understand, I would like to ask the core question:
Who is responsible to create the m3u8 playlist file?
I tried to experiment in two steps: first, try to push a local mp4 file and play it back via HLS:
Following the above tutorial, I try to use ffmpeg to push a local mp4 file to nginx-rtmp, and use videojs to play it. The browser reported error:
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media.
Secondly, I have successfully saved the video file pushed to nginx-rtmp as a series of FLV file, and I know that I can use exec_push to call ffmpeg to convert flv to a format that is compatible with HLS. Again, here the core question is, howto create and UPDATE the m3u8 file as new video data is coming in endlessly.
For now, I would like experts to help me tackle the first question -- playback static mp4 file through HLS. Any tutorials on m3u8 playlist and mpeg-ts files are also much appreciated!
The nginx-rtmp module by itself creates and updates the playlist as new segments arrive.
To troubleshoot check if the .m3u8 files are created under the folder specified in hls_path of your nginx conf. Rest is just nginx serving a file using http.
If that works try the HLS url directly in safari (safari got inbuilt HLS player) or in Chrome (Play HLS M3u8) extension enabled.
If that works the problem must be with your player.html

NoDriver calling acmFormatSuggest on Azure

I am Using NAudio for getting MP3 file information as well merging 2 or more MP3 files. It works fine on localhost but when I publish the site on AZURE it throws error "NoDriver calling acmFormatSuggest"
I assume that you are trying to use something that is not installed on the machine in Azure - in your case it is ACM MP3 decoder. On a client Windows it can be pre-installed, but i do not think that server Windows can have it.
Also i suspect that something like that will not be allowed to run on Azure Web Apps (it looks like you are trying to use that).
So, i would suggest you to use Virtual Machine for that and install needed components here or use something software-based. I have found:
new Mp3FileReader(stream,wave=> new DmoMp3FrameDecompressor(wave))
It looks like it can be used in your case. Could you please try?
As Alex has said, it is because the MP3 codecs (both ACM and DMO) are not present on the server. Your options are to find a way to install them, or to use a fully managed MP3 decoder such as NLayer instead.

Playing audio using red5 media server

I have installed red5 media server via windows OS. Demo application are running perfectly. My question is, i want to stream audio from red5 media server. So please help how to store audio in red5 and play from red5 to my custom player(Jplayer) using php
JPlayer doesn't require Red5. You can just put your media in a folder that's accessible via the web and stream from there. If you feel you must use Red5 then follow their examples for the demo app - you can even use the sample folder they stream those from since it doesn't sound like you need any server-side code.

Resources