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


Similar Posts:


ActionScript 3.0 :: Stream AAC Audio File Stored Locally Using NetStream Class?

Jan 25, 2010

I would like use NetStream class to stream AAC audio file stored locally on server (because i can't use Sound class, AAC not compatible) How can i do this ? (without flash media server)
 
I have tried using http protocol, no errors occured, but i receive no audio data.

View 13 Replies

Flex - Disconnect A Subrscribed Stream From The Publisher Of The Netstream?

Oct 20, 2010

I have a publisher who publishes a netstream using stratus p2p. This is then connected to by player who subscribes to the netstream.

I believe one can reject the subscriber when the stream tries to connect by using the onPeerConnect method of the netstream's client. However, I would like to boot the subscriber after they have been connected.

There are potentially other subscribers to that netstream so I cannot just close it. How would I boot a particular subscriber without closing the published netstream?

View 1 Replies

Flex :: Send Video Stream From Script To Netstream?

Jul 9, 2011

How to send a video data stream from one side written by java to another side written by flex and then display it? I just know that on flex one method is to use netstream class get the real-time video stream and bind with a videodisplay to display it. But which class I should use to send this video stream in java and which class I need to use in flex to receive this flow and pass it to the NetStream class?

View 1 Replies

Java :: Flex : Get The Audio Stream On Server Side(tomcat)?

Nov 1, 2011

One of my web applications have developed in java and using tomcat server. Now I want add one more feature in my application that is peer to peer audio streaming. Actually I want that anyone speak (using microphone) on the client side and I will hear his voice on my server speakers and vice versa. Also save our communication in any file and also send the audio stream to IP intercom.

For that I am trying to use Flex Builder. Flex NetStream class is good for the streaming and we can also attached microphone. But the problem is on the server side. How can I get the audio stream on server side?

how can I get stream from server to client and vice versa?

View 1 Replies

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

Flash :: Audio / Video Element Control Volume Programmatically?

Nov 10, 2009

Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements?

View 2 Replies

ActionScript 3.0 :: Netstream.play.stream Not Found

Feb 7, 2009

I am trying to upload my demo reel. I compressed it to an FLV file, and used the import video command with the setting' "Load external video with playback component." After selecting my skin and hitting ok, I got a prompt that said "Netstream.play.stream not found." Why isn't this working?

View 2 Replies

ActionScript 2.0 :: NetStream Doesnt Stream On Web Server

Sep 19, 2011

these codes works perfect on local web server but doesnt on real web server.[code]

View 0 Replies

ActionScript 3.0 :: Get Left-/rightPeak() From A Live Stream (NetStream)

Feb 11, 2009

I have a FMS and it works perfekt. What I try to build is a simple "player" for a website where I can listen to the livestream from my FMS. To connect to my stream works fine. But now i want to build a animated volume amplitude. It works with an mp3 who is on my FMS but not with the livestream. I think I found the problem why it does not work but not the solution.

I have following to connect to my livestream:

Code:
var nc:NetConnection = new NetConnection();
var ns:NetStream;
nc.connect("rtmpe://10.0.0.227/live");

[Code].....

Maybe I must create a new SoundChannel for my NetStream but I don�t know how!?

View 1 Replies

Flash :: Multiple Audio To NetStream?

Sep 9, 2011

I am working on a video conferance projectthere will be a lecturer and an interpreter.interpreter will write the translated text simultaneously.what I am trying to is add vocal translation but I also want to keep the original audio is it possible to attach multiple audio to netStream or do I have to create another netStream for 2nd audio??

View 1 Replies

ActionScript 2.0 :: Audio Delay Without Netstream?

Mar 17, 2011

I have been working on a voice-chat system in AS 2.0 using FMS 3.5 for a while now. I have been experiencing a lot of latency. Usually there's no latency to begin with but it grows over time to several seconds. Up until this point, I have assumed that this latency is due to a slow server/low bandwidth since I have tinkered around with all of the buffer settings (that I know about) already.However, today I decided to see what would happen if I just attached the audio of the microphone to _root. In other words, the script does not connect to FMS and there's no streaming going on at all. All I have is essentially:

myMic = Microphone.get();
_root.attachAudio(myMic);

However, even in this case I get a delay! In fact the same sort of thing happens: there's no delay to begin with, but it grows to approximately 1.5 seconds over time (very quickly in fact). In order to track down where it could be coming from, I decided to add a microphone activity clip that showed the activity of the mic. Perhaps not so surprisingly this activity clip was perfectly in sync with the actual activity of the mic (i.e. no delay). So it seems like there's a delay due to the attachAudio command.

View 4 Replies

ActionScript 3.0 :: Displaying Audio Amplitude For A NetStream?

Sep 5, 2008

instead of the audio coming from an mp3 file via aURLRequest, I want the audio to come from a NetStream originatingfrom a Flash Media Server.The ultimate goal is to have multiple netstreams coming ineach with their own audio amplitude bar being displayed.This is being written in Flex 3 using Actionscript 3."To control the audio associated with a video file, you canuse the DisplayObjectContainer.addChild() method to route the audioto an object on the display list; you can then create a Soundobject to control some aspects of the audio. For more information,see the DisplayObjectContainer.addChild() method."but theDisplayObjectContainer.addChild() method doesn'tprovide any further information and I cannot figure out how to usean AS3 Sound or SoundChannel object with a DisplayObjectContaineror a NetStream.

View 5 Replies

ActionScript 2.0 :: Attach Video And Audio From One Netstream To Another?

Oct 21, 2007

just wondering if it is possible to play an FLV and attach the video from that netstream to another and publish it to FM2.

is there a a way to attach video and audio from one netstream to another?
i have tried everything so far that i know of. when i think its attaching and publish it, i see nothing. publshing my cam and mic work flawlessly.

here's my code:

Quote:

nec = new NetConnection();
nec.connect(null);
nes = new NetStream(nec);
nes.play("http://testbox/transformers.flv");

[Code]....

View 1 Replies

Linux :: Play Youtube Videos And Programmatically Direct Firefox's Audio Out To A Particular Sound Card?

Jan 20, 2012

I want to play youtube videos and programmatically direct firefox's audio out to a particular sound card.

Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1059: Sample format non available
Available formats:[code]....

The command-line suggests that it worked, but audio came out of hw:0,0 (the default).Do I need to make my own plugin? Or do I need to force alsa to take 44100Hz?I refuse to use pulse since the memory leak bug makes it crash often.

View 1 Replies

Media Server :: Publish Live Stream(H.264) To FMS(NetStream.Buffer.Empty)?

Feb 27, 2011

I am developing a C++ program to connect FMS via RTMP, and then publish a live stream I can't use FMLE here because I need collect the H.264 NALU from somewhere and forward them to the FMS.I write a demo app, which parses H.264 encoded FLV file, and send the VideoTag in the FLV as RTMP Message content for publishing.Finally, I make it run and I can see some frames of video!But the problem is: The video does not play smoothly and it just updates some frames.
Then I looked at the NetStream event and found that:Everytime when there is a NetStream.Buffer.Full event, the frame in the video is updated and display correctly But immediately there is another NetStream.Buffer.Empty event followed and the video is frozen.
 
[code]...

View 1 Replies

Media Server :: NetStream.play(streamName, -1);  Plays Recorded Stream?

Sep 16, 2011

NetStream.play(streamName, -1); This seems to be working wrong.if I have recorded an flv on server using FMS and FMLE with  only audio with name "myaudio" and then after if I try to play a live  stream using NetStream.play("myaudio", -1) then it plays the recorded  stream. I believe that documentation says that it should start a live  stream instead of playing recorded stream as the second argument is -1.  Is this a bug in NetStream.play method?

View 3 Replies

ActionScript 3.0 :: Netstream Audio Plays While Video Loading?

Jan 14, 2009

how to get flv's to load up dynamically using xml - it all works well apart from this one problem that i have.

when the thumbnail for the flv is clicked the preloader appears and the flv starts to load - but for some reason the audio begins to play almost immediately - then when the flv actually loads then the audio plays again whilst the initial (unwanted) audio carries on playing!

this is the script for the netstream:

[Code].....

View 1 Replies

ActionScript 3.0 :: Detecting Audio In Netstream Object / Video

Jan 20, 2012

The task seems easy: I am loading a video via a netsream object (could be FLV or an h264 mp4) and I would need to check if this video has audio available (otherwhise sound control objects should be disabled or become hidden).

View 3 Replies

ActionScript 3.0 :: Single Media Player - NetStream With Audio / Video

Mar 27, 2009

I have a project I'm working where I need a single media player to be able to play either audio or video depending on what gets passed (flv or m4a).

PHP Code:
ExternalInterface.addCallback("playMedia", playMedia);
// The way a/v gets changed is from a dropdown menu in the HTMLvar av:String;
/ The param that gets passed to my playMedia function which will determine if its audio or video
var nc:NetConnection = new NetConnection();nc.connect(null);var ns:NetStream = new NetStream(nc);ns.client(this);
[Code] .....

How do I add the audio to the container in such a way that it 'replaces' the video that's in the container? I may want to add a static image as a visual representation.*/ 
ns.play(av);
}}

View 1 Replies

Flash - Modify Sound In Real-time With SampleDataEvent For Audio Within NetStream?

Jan 27, 2011

I'm streaming audio using NetConnection and NetStream. I know that you can modify sample data in real-time with the Sound object, however I cannot find the SampleDataEvent for audio playing with the NetStream object. Is there a way to pass the audio from the NetStream object to a Sound object and modify the sound at that object instead?

View 2 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

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

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







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