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
Similar Posts:
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
Dec 23, 2010
I have 4 different RTMP stream URLS, and I need group them on one Server, to re-stream them to mobiles. Can I do this with FMS , or I shall to hard code it?Can I do thi with SMIL?
View 5 Replies
Feb 7, 2012
Is it possible to live stream both RTMP and HLS with FMS 4.5?
I want flash users to have the least latency possible using RTMP, and iOS users use HLS.
View 1 Replies
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
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
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
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
Jul 23, 2009
How do I stop an rtmp stream? I tried this code but I get the following error.[code]...
View 1 Replies
Jan 13, 2011
i re-stream one rtmp from server1 to 5 or more FMS servers, and make sure they are always connected if they lose connection for some reason it should keep trying to connect back.Please note i'm not a coder. I need simple example of how i can do this without hiring someone to do so.
View 3 Replies
Aug 18, 2011
I can stream video RTMP just fine in JW Player by LongTail Media. The Pause seems to work, however using Windows 7's Resource Monitor I can see that the player continues to download data when the video is paused, it downloads for about 60 seconds (and does not seem to be longer for longer videos). I have found the same using the examples on longtailmedia's website, so I know it is not something I have done.
I want a way to pause the video and have it stop downloading, this will save us lots of bandwidth. But also have it continue where it left off if play is pressed again.
I checked the logs on our wowza media server, which indicates that the player actually waits 60s before it sends the pause command to the server.
LongTail's support say that the pause functionality uses the built in NetStream class and its behaviour is out of their control.
I have tested flowplayer online examples, and a couple of Adobe / OSMF examples and they all continue to download for 60 seconds after the video is paused.
A way to get this working in JW player would be best, but Are there any flash players that will stop downloading while paused?
If this is not possible with RTMP are there any technologies that will do this with a flash player?
View 2 Replies
Sep 21, 2011
Can I stream/publish all methods at the same time?I really want most users to play my live streams via RTMP, however, fail over to HLS for Apple iOS.
View 6 Replies
Nov 14, 2011
When FMLE stopped,Remote RTMP stream to FMS 4.5 with rtmfp?
edit "applications/multicast/main.asc" ?
/**
* File: main.asc
* --------------
* The server-side portion of the multicast sample application.
* This app accepts publish and unpublish requests from FMLE, and republishes
* the live stream from FMLE into a target Flash Group.[code]..............
View 1 Replies
Jan 27, 2010
Live streaming and a buffer on a NetStream do not mix. Why? The docs don't say you can't do this.The playback gets hosed. Buffer is supposed to fill to what you set it to before playing. Instead though, about half the time, the player starts playing right away and disregards the buffer time you've set. Then you get caught in short buffering and rebuffering cycles that degrades the playback experience.
Give it a shot yourself. Here is the simplest of live streaming video players. No frills. Just connect it to your live stream by changing the defaultURL string and stream name in the ns.play() statement.
Run it in Flex debug mode. It will check and print the ns.bufferLength property every second. The buffer is set to 20 secs currently. Last time I ran it, I never made it above 2 seconds in the buffer. Player started playing right away instead of buffering the full 20 secs first. Sometimes you get to the full 20 and sometimes not.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="init()">
<mx:Script>
[code]....
View 2 Replies
Oct 26, 2010
What's the best way to check whether there is video data (or not) in a live RTMP stream? For example, if a broadcast terminates, can I auto-detect that condition, to perform some sort of "thank you for watching" behavior?Also, how can I know if a visitor somehow gets disconnected from the Internet during the broadcast? (So I can notify the visitor of the problem, and give instruction.)
View 1 Replies
Jan 26, 2011
I immediately fired firebug in firefox but surprisingly the video source is not in the requests.tp://hwcdn.net/m7n9i8d5/fms/videos/5_Standard_Zipper/B_Overview_of_Zipper_Types.flv.smil is the last request that is being made. response being:
<smil>
<head>
<meta base="rtmp://fms006.lo1.hwcdn.net/m7n9i8d5/_definst_">
[code].....
View 2 Replies
Jul 16, 2009
My question is regarding the use of RTMP files (delivered via a Flash Media Server) and Papervision; specifically using an RTMP stream as a texture on a Papervision object. I've already developed a number of successful methods for applying progressive flv/f4v files to Papervision objects. The RTMP streams, however, have presented a number of obstacles.
I will bypass the myriad of research I've done looking into this issue and say that others have inquired about this as well - but from what I can tell, no solid answer or solution has been found - especially under Flash Player 10. So, here's what we have so far:
1. A Flash Media Server running on a University server.
2. A Papervision project
[Code]...
View 1 Replies
Jan 4, 2010
Usually, flash streaming is done by capturing webcam video/audio and streaming using NetConnection and other objects to servers like FMS,Red5,Wowza etc.I haven't found any example on how to create your own stream of images and stream as a video to the server.I know it would be possible to convert the image to bytes and send via SharedObjects. Then decode on server and create a video file on the server (e.g. using ffmpeg), but I would rather do it in realtime on the client side if possible.
View 3 Replies
Nov 21, 2009
I'm trying to stream live video for the first time. I've installed FMIS 3.5 without Apache 2.2. I'm confused on the RTMP/HTTP protocol usage,I can only have port 80 opened on our FMIS 3.5 box.
[Code]...
View 1 Replies
Apr 18, 2011
Are there any way that Flash Media Server isn't able to pass metadata of F4V file into the stream (RTMP) if F4V file was encrypted with Flash Access?
View 1 Replies
Jan 27, 2010
Our client has encountered a bizarre problem where they hear an audio feedback or some sort of "duality" when playing an F4V file through FMS. When I tested this myself, I did not encounter this issue. I'm wondering if anyone here can provide some insight as to some of the potential causes of this issue and how we can fix it. We are using
1) FLVPlayback 2.5.0.15
2) Application targets the Flash 10.0 runtime
3) We are using a standard FMS 3.5 install, videos located in the vod folder
4) Trying to playback F4V files. The samples provided by FMS also exhibit the same issue.
On another note, I built a bare-bones Flex application (SDK version 3.5.0.12683 and 3.4.0.9271) using the VideoDisplay component and it always has the duality problem. It even gets worse as I refresh the page, the echoing / multiple audio playbacks seem to compound.
View 5 Replies
Sep 20, 2011
Am developing an application with Flex 4.5 & Flash Media Server. I need a visualization curresponding to the plaing track . It is possible with SoundMixer.computeSpectrum(bytes, true, 0) in case of progressive downloading. But not working with rtmp streaming. And also need audio wave curresponding to the track which is also working with progressive ownloading usinf Sound object.
View 1 Replies
Jan 23, 2011
I have a layout with narration and a nav bar. When I click a nav button for section 2, the audio from section 1 (set to stream) continues to play over the audio for section 2. This cumulates so if I click buttons for sections 3, 4 and 5, I get five audio files playing on top of each other. Sections are individual movie clips with embedded audio streaming on a Sounds layer in each movie clip.
View 3 Replies
Jan 24, 2011
I have a narration and a nav bar. When I click the button for Section 2, the audio for Section 1 continues to play on top of the audio for Section 2.
View 1 Replies
Mar 4, 2011
Somebody I know can't watch because they have a proxy server.The nc.connect() call to get the live stream fails because it goes direct from AS3 to FMS and doesn't go through the proxy server.
View 1 Replies
Oct 8, 2010
Writing RTMP Streaming Server for streaming AVC+AAC video. And it works fine with rtmpdump. But I can't force it to work in flowplayer and other flash video players.The message sequence after handshake is similar to FMS / RED5 / erlyvideo / haxevideo servers: I've tried a lot of variations.
From Chrome debug console I can see, what all negotiating messages passed to the flowplayer. The last one is onMetaData. And after this the working sample (rtmp://flash.tvwmedia.net/LiveVideo//Live300) gets NetStream.Buffer.Full. And streaming from my server don't get it.
I'm starting with AVC Header message, containing sps/pps. After it first AVC picture passed. After - AAC header and AAC sample. And then AVC/AAC samples. This dumped OK by rtmpdump - I have working flv on exit. But flowplayer and others does not work.
[Code]...
View 2 Replies
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
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
Apr 26, 2010
I am in the process of building a rails/flex application which requires audio to be recorded and then stored in our amazon s3 account. I have found no alternative to using some form of RTMP server for recording audio through flash, but our hosting environment will not allow us to install anything like FMS, Red5, etc.
Is there any existing Ruby/Rails RTMP solution that will allow audio recording? If not, is it possible for Rails to at least intercept the RTMP stream and then I can hope to reference red5's source or something for parsing the data (long shot, I know)?The other alternative I can think of is hosting a red5 server on another host and communicating with our rails app once the saving/uploading is done, which is not preferred.
View 2 Replies
Jan 9, 2009
I would like to stream asx audio in flash, is this possible?
View 2 Replies