ActionScript 3.0 :: Stream Audio With Flash And PHP?

Nov 21, 2009

I'm interested in setting up a site where I can put MP3 files on my server (outside the web root) and stream them to a flash application. I'm not talking about progressive download here. The basic idea is to let visitors hear a band's music without actually downloading or caching an mp3 or SWF which could be located as a file and saved or ripped. I have seen this awesome tutorial on streaming an flv and was wondering if anyone can recommend a PHP/AS3 solution which would let me do the same for audio.

View 9 Replies


Similar Posts:


Media Server :: Write Access Denied For Stream Error When Recording Audio Stream

Jul 26, 2010

I've had FMS running on my local machine for a while and have had a little experience writing FMS apps, but I've just tried recording audio for the first time using the standard vod application and I keep getting a "Write access denied for stream" error. My AS3 code is copied and pasted for various examples and am confident that it works.
 
I'm running Windows XP service pack 3 & FMIS 3.5.
 
I've had a look at the vod/media directory and under windows->properties the read-only attribute is ticked. Every time I un-tick this it reverts back to being ticked. I've googled this and MS say that most programs ignore the read-only attribute and that it only really applied to files. I've also tried the MS fix for setting the read-only attribute via cmd and still no joy (doesn't fix read-only attribute or FMS recording the audio after setting via cmd).
 
I've also tried our dev server install of FMS (running under linux) and am getting the same results.
 
Here's my AS3 code...
 
private function initApp(event:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE,initApp);

[Code].....

View 1 Replies

ActionScript 3.0 :: Getting Audio Stream Meta Data From An Akamai FMS Stream

Jul 21, 2009

I am having trouble getting audio stream meta data from an Akamai FMS stream. Everything is undefined and I'm not sure why. I am hoping maybe someone will notice something that I am overlooking. The stream is connecting and playing without a problem I just can't seem to figure out why all the meta data is undefined.

[Code]...

View 6 Replies

ActionScript 3.0 :: Audio Synchronization - If The Audio Were On The Timeline You Could Set Sync Params To Stream?

Mar 11, 2010

Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..

View 1 Replies

Php :: Recording Audio On Website: Red5 Stream Or Posting The Audio Data?

Sep 6, 2011

Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:

1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.

2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.

View 1 Replies

Media Server :: Stream And Audio Line Level Feed Rather Than The Audio From A Computer's Microphone?

Apr 1, 2012

Is there a way to stream and audio line level feed rather than the audio from a computer's microphone?

View 1 Replies

ActionScript 3.0 :: Stream Asx Audio In Flash?

Jan 9, 2009

I would like to stream asx audio in flash, is this possible?

View 2 Replies

Javascript :: IE Not Letting Flash Stream Audio

Dec 10, 2009

This problem is happening is both IE8 and IE7. I have a small swf compiled with flex. It's basically just a wrapper around audio streaming functionality. All the controls and such are in html with javascript. I load the swf using swfobject's "static" method. This works great in Firefox and Chrome. In IE, the swf loads correctly, but as soon as I try to stream any audio with it, I get an error. EDIT: I've reduced the code quite a bit to try and find the problem. You can see the new version running here. Here is the error, html and flex files for my reduced version:

[Code]...

View 2 Replies

Flash :: Web Development - Stream The Audio Of Video Only

Oct 22, 2010

Is it possible to have a Flash player that only plays the AAC audio of Flash video (FLV file)? In other words, we need the video muted and only play the audio.

View 1 Replies

ActionScript 2.0 :: Can Flash Stream Audio From Different Domain?

Jul 11, 2007

can Flash stream audio from a different domain? Like, if I have my .swf on www.a.com and then my .mp3 on Url..., will trying to stream it work?Also, is there a way to have music saved on the person's harddrive or cached so that if they load the song, they dont have to load it each time when you stream audio or load it from another source?

View 2 Replies

Flash :: Capture Audio Stream In Browser Via Js/silverlight?

Mar 17, 2010

Im working on a project where we need to capture a 5 sec clip of whatever is being played through the users line-out (audio).

Is it possible to do this reliably through a browser (using flash/silvelight/js..) ?

View 1 Replies

Force Flash Player To Play Audio Stream Of A Video File?

Apr 20, 2011

I'm trying to force the Flash player to play video files without showing screens. I did try to set vidDisplay.visible to false. But it seemed not working at all.I was doing was try to build a generic media player. Whatever the source is(audio or video), the control panel always the same, namely, a mp3 player panel is always displayed:However, when I stream in a video file, it would end up overriding mp3 panel with a partial video screen. I don't have enough reputation to upload images...

View 1 Replies

Actionscript 3 :: Stream Playback From Wowza Has Audio Crackling On Flash Player

Feb 2, 2012

I have a custom Flash video player that uses the NetConnection and NetStream classes to stream mp4 files from a Wowza server. Lately the playback has been having audio problems. The sound is crackled and in some cases may cause the Flash player to crash. This is not consistent between files. Meaning that a file that was played once with bad audio could be fine 5 minutes later when played again from a new instance of the player , but 5 minutes later have the same problem.

My thought direct me to thinking this was an encoding problem, but that wouldn't explain how one second the playback is fine, and once refreshed messes up again.

I should note that the Wowza server does not stream the entire file but only a portion of it based on various parameters it gets.

View 1 Replies

C# :: Develop A Silverlight Or A Flash Player Capable Of Reproducing The Stream Audio And Video?

Feb 20, 2011

I have a VLC player streaming my webcam video through RTSP on 5544 port, the video is encapsulated with MPEG-TS and compressed with MPEG-4 for both audio and video (as is VLC's default I suppose)You can access the streaming video with the following URL:[URL] All is working till here. I could also change transport protocol/incapsulation, that's not a problem since VLC allows me to do it.I want to develop a silverlight player (preferred) or a flash player capable of reproducing the stream (audio and video).I don't know how to do this.The question is: I could not find a link on the internet on how reproducing a VLC stream with a silverlight(preferred) or flash applet in a web pageSince I'm not a Silverlight/Flash developer.

View 1 Replies

Possible To Stream Only Audio?

Jun 8, 2011

Does anybody knows if it it possible to stream only audio?

I'd like to stream video+audio (different qualities : ~1000 kbps and ~400 kbps) and audio only for low-bandwidth (~128 kbps).

Adobe Flash Media Encoder Live allows me to stream different qualities. And what about audio-only stream?

And of course I don't want just to hide video on client-side.

View 2 Replies

ActionScript 3.0 :: How To Stream Audio Using Php

Nov 21, 2009

I'm interested in setting up a site where I can put MP3 files on my server (outside the web root) and stream them to a flash application. I'm not talking about progressive download here. The basic idea is to let visitors hear a band's music without actually downloading or caching an mp3 or SWF which could be located as a file and saved or ripped.I have seen this awesome tutorial on streaming an flv and was wondering

View 2 Replies

Media Server :: HLS VOD Audio-only MP3 Stream?

Apr 7, 2012

I'm trying to setup an audio-only, on-demand HLS stream in FMS 3.5. I have no problems streaming the sample f4v files via HLS, nor do I have any issues streaming the mp3 files via RTMP to a Flash client. However, when I try to stream a sample mp3 via HLS (the mp3 file is located in the same directory as the sample f4v's), I get a 404 error. I can't find anything in the documentation about streaming audio via HLS on-demand.

View 1 Replies

Flex3 :: Stream Video And Audio

Mar 1, 2012

i am new to flex. I have this task. My boss wants an application that will enable his secretary in another room listen and view and probably take minutes of his meeting in the conference room. There is a webcam attached to one of the computers in the conference room.

View 1 Replies

ActionScript 2.0 :: How To Stream Audio Clip Through RTMP

Aug 20, 2009

I'm trying to stream an audio clip via rtmp in as2. I'm not particularly attached to the method, but this is the starting point I am at below:

Code:
var s:Sound = new Sound();
var req:String = "rtmp://path/filename"; //doesn't work
var req:String = "[URL]"; //This works
s.loadSound(req, true);

I need to get an RTMP audio stream working, does anyone have any experience with this? (Also not sure if this goes in the actionscript folder or the sounds folder.

View 3 Replies

ActionScript 3.0 :: Prevent Multiple Audio Stream?

Dec 20, 2008

I used source code I found for a sound stream visualization (By Peter Dehaan). I added a play and stop button, but when a user clicks on play more then once it loads the stream multiple times. I don't quite know what I should do to prevent this.

View 3 Replies

Media Server :: Publish An Audio-only Stream (HLS)?

Apr 5, 2012

"To serve streams over a cellular network, one of the streams must be audio-only. For more information, see HTTP Live Streaming Overview.To publish an audio-only stream, enter the following in the Flash Media Encoder Stream field:livestream%i?adbe-live-event=liveevent&adbe-audio-stream-name=livestream1_audio_only&adbe-audio-stream-src=livestream1If the encoder specifies individual query strings for each stream, use individual stream names instead of the variable %i:livestream1?adbe-live-event=liveevent&adbe-audio-stream-name=livestream1_audio_onlylivestream2?adbe-live-event=liveevent&adbe-audio-stream-name=livestream2_audio_onlyTo generate a set-level variant playlist when using an audio-only stream, specify the audio codec of the audio-nly stream. Specify the audio and the video codec of the streams that contain audio and video.For more information about using the Set-level F4M/M3U8 File Generator, see Publish and play live multi-bitrate streams over HTTP.

View 7 Replies

Flex :: Programmatically Stream Audio With NetStream?

Dec 31, 2009

In Flex you can stream microphone audio to an FMS/Red5 server using NetStream.attachAudio, which requires a Microphone object. Is it possible to stream audio through the NetStream from somewhere other than a Microphone? For example, from a file/embedded resource?

The reason I'm asking is that I'd like to be able to run automated tests that don't require using an actual microphone.

View 1 Replies

C# :: Publish An Audio Stream From A Client With FluorineFx?

Aug 20, 2010

I can't figure out how to publish an audio stream from a client to the server using FluorineFx on the client. We want to stream recorded audio data from the client to the stream via the already established NetConnection. There is a NetStream class in FluorineFx but it has no publish method. The NetStream class in FluorineFx only has the play method. But as far as I understand this plays a stream from the server on the client. Is publish not implemented in FluorineFx or do I miss something?

View 2 Replies

ActionScript 3.0 :: Stream Audio From Microphone To Server?

Jan 14, 2010

I am trying to stream audio from flash app directly to server. We strongly prefer not using Flash Media Server.

I have very little AS3 knowledge. I managed to connect to Mic, speak and hear my voice back. However, I am not sure how to stream this to PHP or rails server side.

View 2 Replies

ActionScript 3.0 :: Stream Audio Source From Output?

May 27, 2010

I'm writing an application with AS3 and Flex 4 for Adobe Air 2.0RC and I seem to have run into an interesting predicament.

I am aware of the microphone class and the method to capture recording from them to a byte-array, I am wondering, however, if there is a way to capture another source of audio, say, from an output on an external sound card.

Is anyone aware of an AS3 method of capturing sound from an output?

View 0 Replies

Media Server :: Strip Audio From Video And Stream

Nov 20, 2009

We have the Flash Media Interactive Serve 3.5. Is there an automated way to strip the audio from video files and stream on FMIS? .

View 2 Replies

Media Server :: How To Stream Live Audio And Metadata

Aug 13, 2010

i'm trying to build some kind of online radio. Therefore i'll be streaming audio (mp3) in real time. i have a play-list on my server and the idea is  for this play-list to play all day long, but on the client side  the user can only do play and stop the music.
 
The problem is  when one music stops and the next one starts i need the server to send  not only the new audio but also all the info about this file: duration,  author and music name, this way my player can show a play /stop and all  the info about the current music playing.Until now i've only come across with video live streaming, but very  little information on how to do a live transmission of audio.
  
ps: the only info on streaming audio that i've found so far is about  audio on demand, but the way i want things to happen the client can't  chose the music.

View 1 Replies

ActionScript 3.0 :: Capture Audio From RTMFP Subscribed Stream

Sep 17, 2010

I'd like to capture the audio data from an RTMFP stream to which the client is subscribed (so I get a bytearray of audio samples).The presence of the audioSampleAccess propery on the NetStream class certainly makes that sounds possibe:For RTMFP connections, specifies whether peer-to-peer subscribers on this NetStream are allowed to capture the audio stream. When FALSE, subscriber attempts to capture the audio stream show permission errors.url...But I dont see how I would do it. In the case of video, I see I could use BitmapData.draw(), and discucced url...But in the case of audio, I dont know how to address the audio data to get it into a bytearray.My instinct said this wasnt possible, but the presence of the 'audioSampleAccess' property makes me think it might be..

View 6 Replies

ActionScript 3.0 :: Audio Stream Player : Getting Informations From The Source

Sep 11, 2011

I'm trying to create a webRadio player, wich different sources. On a click on a button, the player plays the corresponding flow. I would like to display some informations, like : current music, url, description, I think it's possible to have all those informations, because when I play my. files in my audio player (winamp), I've got them. Here is my code corresponding to this part :

[Code]...

View 4 Replies

Media Server :: Choppy Audio Stream While Streaming Through FMS 3.5

Feb 1, 2012

While streaming the audio through FMS 3.5, audio starts breaking at the receiver's end after some time. can anyone please provide a suitable solution?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved