ActionScript 3.0 :: Rtmp Streaming In Flash Builder
Nov 11, 2010
I am trying to connect to an rtmp site using flash builder 4. I have created a class to handle the connection. This code works (traces a connection error) if connection.connect(null); but if i try to put an rtmp site in the connection, it doesn't do anything. I have it scripted that if the connection fails it should trace and error message but it just seems to stop. any thoughts?
ActionScript Code:
package com.streaming.video
{
import flash.display.Sprite;
[Code]....
View 0 Replies
Similar Posts:
Mar 9, 2010
I am building a flash media player for an live audio stream. The server is set up to stream from a url that looks like so: [URL]. The instructions I have found say to first set the directory:
nc.connect("rtmp://ourwowzaserver.net:80/ourfiledirectory");
And then later play it:
nc.play(mp3:thefilename)
This works when we have discrete filenames on the server (thefilename), but the live stream is not a file - rtmp://ourwowzaserver.net:80/shoutcast. How in the heck do I get .play to play it?
View 2 Replies
Oct 8, 2010
We are attempting to transcode some video to a format suitable for our Flash Streaming Server. In the past we have used Adobe Media Encoder (AME) CS4, but we are working with *.VOB files this time, and AME CS4 does not support them. We are attempting to use Handbrake now, as it has great support for h.264 and MP4 files. Unfortunately while the files play wonderfully on our local machines, they do not stream from the Flash streaming server over RTMP. The files come out of Handbrake with a *.m4v extension. Our old files out of AME CS4 are *.MP4's with h.264 and AAC audio. I can see no differences in video or audio codecs which leads me to believe it may be a container format problem. We are attempting to use Handbrake because it does an excellent job of batch encoding files and produces good quality files.
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
Jan 25, 2010
I've created a player for a client in the past using their LimeLight server to stream videos and not had an issue before, however for a new client using different LimeLight server, the videos seem to be ending 3-4 secs too early.
My traces on 3 vastly different videos I tested:
metadata duration = 32 // 32 secs long, ends at 27
Stop [27.350 seconds] = 4.65
metadata duration = 17 // 17 secs long, ends at 12
Stop [12.852 seconds] = 4.148
metadata duration = 258 // 258 secs long, ends at 255
Stop [255.861 seconds]
In the video players I check for NetStream.Play.Stop then put a 'reset' type function in there. This function however triggers too early due to this strange bug. Has anyone have seen this before?
private function netStatusHandler(event:NetStatusEvent):void
{
trace("connected is: " + nc.connected );
[Code].....
The only work-around I see for this is saving the initial number I get from the metadata duration, and running a timer to constantly check for when the current ns.time matches metadata and then run my reset function.
View 1 Replies
Oct 11, 2010
Quick question - I have the following setup:
(1) An ec2 instance with an SWF on it - this SWF plays streaming video - i.e. is a video player like JWPlayer
(2) A streaming video distribution set up via Cloudfront
If I stream the the video via RTMP from Cloudfront to the SWF (which is on ec2) - would I incur charges for data transfer into the server (i.e. for data being read by the SWF) and out of the server (i.e. for data being displayed by the SWF to the user) on account of streaming the video to users (assuming that data transfer into and out for the server is being charged for)?
View 1 Replies
Mar 31, 2011
how to embed rtmp link to be viewed in a browser? I already tried Moeya but it is still not running. Anyone knows other solution to how can I embed this to a browser?
View 1 Replies
Jan 12, 2010
I want users to be able to upload audio files to my server (say, over HTTP.. mechanism doesn't matter much), and then I'd like to assemble those files into a playlist and stream them out over a live RTMP stream to a Flash widget.The catch is: I'd like to begin streaming the audio files before they completely finish uploading. For example, if a user uploads an hour-long mp3, I'd like it to be able to begin playing on the RTMP stream once, say, the first minute has been uploaded.I'd like to support mp3 and AAC, and would hope to avoid re-encoding the files. Is is there a way to make this work with Wowza, Flash Media Server, or some other clever solution?
View 2 Replies
May 31, 2011
I'm building a Flash mp3 player to handle streaming mp3s served by Amazon CloudFront (which uses Flash Media Server). I'm using an FLVPlayback 2.5 component to do most of the heavy lifting (I tried an all AS3 method, but any stream automatically stopped within 5 - 10 seconds of playing). When I trace out the FLVPlayback's totalTime property, I get NaN. This is causing the seek bar to simply not work. This only seems to affect mp3s, as when I load an FLV I get a real value for totalTime. Does anyone know why this is happening
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
Feb 15, 2010
Am using adobe media development server successfully able to make live streaming on RTMP
View 1 Replies
Feb 25, 2012
Currently, we are streaming using RTMP, but I want to switch to HLS to allow iOS devices to stream our video. I do not want to encode two separate streams though because we are operating with limited bandwidth on mobile data cards. If I stream using the livepkgr, the delay to iOS devices is about 12 seconds which is OK. However, on desktop clients, we have live scoring integrated with our video, so we cannot have a delay that long. My question is, if I connect to the same stream in a Flash client for the desktop, will the delay still be that long? Or will it stream in real time to flash clients with the delay only for iOS devices using HLS? Also, am I correct in assuming that I can do this on 1 stream, or do I need to setup a separate stream for RTMP and HLS?
View 1 Replies
Nov 3, 2009
I herd about RED5, but unfortunately I can't find any examples for feeding it with external source. I know RTSP is in development, but I'm thinking about (named) pipes or something like this. There is is also project named xuggle that is as far as I understand ffmpeg wrapper for Java, but I herd they have also problems with live streaming.
View 5 Replies
Aug 15, 2011
I am in a requirement where I need to calculate the bandwidth usage of rtmp streaming. Is there any way I can calculate the number of total bytes I have download during the rtmp streaming?
View 2 Replies
Oct 7, 2010
I am trying to publish a video to an RTMP Server but it doesn't publish. It might be a pre-release bug. I am able to play a NetStream but not able to publish one. Is there a sandbox issue? I'm not sure. Because, the FMS RTMP Server will not let a client connect unless it has been downloaded from the same host as the server (something like a sandbox condition)
View 2 Replies
Aug 15, 2011
How can I calculate the number of bytes download during RTMP streaming? So that I can keep track of bandwidth usage for particular user? I hope the question is simple enough to understand the requirements.
View 1 Replies
Sep 9, 2011
I have some questions regarding 4.5 and deciding which version we must license (FMIS or FMS). Obviously there is a huge price difference and as this is within a local network we don't require encryption or multicast. Here is the scenerio we need to stream live DVR to mac, windows browser AND iPhone/iPad and devices running Android 2.2(Froyo)+. I need someone from Adobe to help us decide.
1. I see DVR is now listed as a feature in Flash media server page. Does that mean its no longer exclusive to Flash Media Interactive server. For both http streaming and RTMP?
2. Previously in order to stream live to Adobe dynamic streaming, Flash media interactive server was required because a live segmenter had to be used. Is this still the case? Or can we just launch adobe live media encoder (FLME) and stream to flash media server.3. Related to #2 can we switch between serving streams via RTMP or dynamic streaming without changing the format of the material on disk?4.I was at a webcast for 4.x and remember being told that the latency for http live dynamic streaming was 20 seconds because of the repackaging that had to take place. Is this still true? What is the latency for iOS playback from ingest to playback?5. For the iOS playback feature do the streams have to be in Adobe dynamic streaming format or can we just stream via FLME RTMP and trust it to do the right thing?6. Does the iOS playback support DVR?7. Does the Android plugin have good support for RTMP live streaming including DVR?
View 8 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
Sep 14, 2010
I am trying to use BitmapData.draw() on a video object, but using the OSMF framework.My hosting service has set up the following so that I can access my rtmp video:
<VideoSampleAccess enabled="true">/</VideoSampleAccess>
Simplified code is as follows:
_videoURL = "my-url-here"
resource = new StreamingURLResource(_videoURL);
videoElement = new VideoElement(resource);
_player.media = videoElement;
[code]....
However, I am getting the following error message:
SecurityError: Error #2135: Security sandbox violation: BitmapData.draw: ...
View 2 Replies
Sep 15, 2011
At a certain point in the app flow, a m4v video is streamed from a remote location via rtmp. This works well, except for two little problems:
1. In very rare cases, the video starts playing, but you see no images and only hear the audio. Seems like this happens more often with Chrome, but that is only a guess.
2. In the first frame or so of the video, you hear a noise in the audio. It really is very short, but still a nuisance. This chirp is not there when viewing the same video with VLC or QuickTime player. It IS there when viewing with the Windows Media Player.
Are there any known problems with codecs and the flash as3 video streaming (via NetStream/NetConnection)? The video is composed by using the ffmpeg library (one mess of a library, I can tell you...) to bring together a live-rendered video (using a 3D Engine) and a pre-created *.wav (which does not have the chirp).
View 3 Replies
May 16, 2010
There is one chat room which you can login through the URL:[URL]. user:lqbl password:790420 Now I am developing one RTMP client for chatroom with Flex builder 3 and my client runs with flash player not IE. When I execute netConnection.connect, the FMS server reject my request. I catched the RTMP connect packet with sniffer. the difference is the swfUrl and pageUrl are setted value when login the chat room through upper URL. But no value for my client. So I guess the FMS reject my client since swfUrl and pageUrl. how to set them in Flex builder 3?
View 0 Replies
Apr 30, 2009
I've freshly installed the FSM demo on a redhat linux box, and have everything working. From that start screen running on Local Host, I click the "Play video (HTTP)" and that video of a train shows up. Cool. But when I click the link above it ("Play Video (RTMP)") I get an error message: "Connection Error. press Play to try again." and no matter how many times I hit play, I get that same message. The Dynamic stream doesn't work either, and the Interactive sucessfully displays webcam feeds, but doesn't show the "Play Live Stream" button thing. Is there anything special you have to do to get the RTMP stuff working? Some special command or server you have to run?
Would firewalls intefere with things (I'm pretty sure there isn't one on the machine, but I'm flailing wildly here) or would permissions mess things up? I'm completely lost ^_^;; I guess I should also add that there doesn't seem to be any log files. I'm looking under the server install directory, and there isn't even a "log" folder. There isn't one under Apache, either. It confuses me. So far all I can find on the internet is instructions to look at the log files...but if they aren't there... Am I just looking in the wrong places, or are they just not being generated yet? I did a tcpdump with wireshark, and the web app IS pinging port 1935 (for RTMP), but the packets are failling the checksum and are refusing to be reassembled because of that. Is this making sense to ANYBODY?
View 18 Replies
Nov 22, 2010
I am developing an application in Flash that runs locally and it uses FMS 4.01, locally. I have been using adobe FMS 4.01 for months with no problem. Today I cannot connect to my server and I cannot even play the sample video on the Flash Media Server Start Screen. The sample video for the http plays after I changed the permissions for flash, but rtmp does not play. I have reinstalled the server; 3.5, 4.0 and 4.01, none of them will connect to rtmp. I receive this error on the flash media server start screen that says "the connection timed out".
View 1 Replies
Sep 1, 2011
i try to play video on Mac OS system using the standard embed code:
<object height="409" width="600"><param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" /><param name="flashvars" value="src=rtmp%3A%2F%2Fmy-server%2Fvod%2Fflv%3Amy-videoposter=http%3A%2F%2Fosmf.org%2Fimages%2Fposter_cathy_fmp.jpg" /><param
[Code].....
on Safari and Firefox but it doesn't work!
Is it a FSM problem or Flash Player problem?
View 1 Replies
Feb 19, 2012
I have some .mov files want to stream to Flash media server by ffmpeg. i have already tried to stream a single .mov by FFMPEG command in terminal and it works, the FMS can display the thing i streaming in live.Now i want to stream multiple files as one source, i tried to use above command one by one, but it seems Flash media server stop the streaming when file1 is finished, then start the stream with file2.It makes the stream player stopped when file1 is finish, and i have to refresh the web page in order to continue on file2.i am calling the FFMPEG command by a C program in linux, i wonder is there any method that i can prevent the FMS stopped when i switch the file source in FFMPEG? or is that possible to let FFMPEG constantly deliver the stream by multiple files source without stopped when a file finish
View 2 Replies
May 7, 2011
I am using progressive streaming with VideoDisplay, the HTTP URL provided gets buffered completely even if I have configured it to start playing the video when the buffering reaches 20%, the trace message shows that the playing started(using mozilla /Flashbug+Firebug), but it doesnot show the video till the buffercounter reaches 100% How can I get the video stream to play at the 20% of stream.Code Segment where the check takes place
var loadedPct:uint = Math.round(100 * (event.bytesLoaded / event.bytesTotal));
trace('waiting...');
mainVideoCanvas.addChild(LoadingImage);
VidLoadingLabel2.text = loadedPct.toString();
[code].....
View 1 Replies
Mar 2, 2012
<?xml version="1.0" encoding="utf-8"?>
import flash.display.Sprite;
import flash.events.Event;
[Code].....
View 1 Replies
Feb 3, 2010
I'm running Flash Media Streaming Server and have only been serving VOD up until now. I had my network administrator open up port 1935 to the outside world during the setup process and now I can't remember if that was actually required for streaming VOD to clients. Most documentation I've read says that this port should be open, but I seem to recall reading something at one point that suggested it wasn't necessary.
I've just started messing around with publishing live streams using Flash Media Live Encoder to the Flash Media Streaming Server. I have that working without issue but was surprised to find that no authentication is required before a client running the live encoder can publish a stream to the Flash Media Streaming Server. An authentication module is available however it only works with Flash Media Interactive Server and Flash Media Development Server.
If I leave port 1935 open to the outside world, there would be nothing to stop anybody anywhere from streaming video via my server. Anyone else running a default install of Flash Media Streaming Server and with port 1935 open to the outside should see that this is true of their setup as well. I'm wondering if I can safely close port 1935 without limiting the functionality of the server or if there's some way I can require authentication prior to publishing a live stream even though I'm not on the four-and-a-half-times-more-expensive edition of the product.
View 30 Replies
Dec 26, 2010
Know how can i get the Adobe RTMP SDK or any other SDK which implement the RTMP protocol.[url]...
View 1 Replies
Jan 14, 2011
We had FMS2 installed before and the paths to all our videos are like rtmp://ServerName/sites/.... (the default path on FMS2) Now we upgrade to FMS4 and we would like to keep these paths the same because we have many HTMLs that reference these videos. However, the default path on FMS4 is rtmp://ServerName/vod/... Is there a way to change "vod" to "sites"?
I tried to change VOD_COMMON_DIR in fms.ini from /install_dir/webroot/vod to /install_dir/webroot/sites, and also changed the document root in httpd.conf, but rtmp://ServerName/sites/ is still not working.
View 5 Replies