Streaming in FlvPlayback

Hi.
Im having big problems with the fact that all my flv files is
stored in the internet temp folders, because i dont want people to
be able to copy my flvs. To prevent this at least to some point, I
want my FlvPlayback to stream the videos instead. Is this possible
whitout FMS?
Thanks Guys!

Maybe im just dumb or something... But isnt netstreaming a
kind of streaming even if its not as good as FMS's RMTP streaming.
Or is it saved in the cache anyway if i use netstream?

Similar Messages

  • AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

    Hi folks,
    Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve:
    1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place
    2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true
    attached is the .zip file (as3_Countdown Timer_ver 1.0.1_by Ronny Depp.zip) with all flash source files containing:
    a) The FLash Source (file: timer_module.fla) - (FLA flash source file - Flash CS3 Professional, Flash Player 9, actionscript 3.0)
    b) com.othenticmedia.utils.dateAndTimeManagement package including 2 .as actionscript 3.0 Class files.
           i) com.othenticmedia.utils.dateAndTimeManagement.DateAndTimeManager Class in the said package. (file: DateAndTimeManager.as)
           ii) com.othenticmedia.utils.dateAndTimeManagement.CountdownTimer Class in the package. (file: CountdownTimer.as)
    c) The compiled SWF file version of this Application's blueprint. (file: timer_module.swf).
    What i need to confirm is: ........................................................ see the next post of mine. (for Problems  need to be Resolved)

    Problems to Resolve:
    Problem#1) - Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place.
    Problem#2) - Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true;
    Problem#1 Description:
    I need to pinpoint the Logical TimeSync Exception, i am still unable to figure out. That is I'm using a webservice in my Application to Synchronize the Time with the actual ET (eastern time) with accomodation of auto-adjustment for EDT GMT-4 (eastern daylight time) & EST GMT-5 (eastern standard time), times. I am using the zipcode: "10012" to pass it to the Web Service in urlRequest object, to retrieve the Current ET eastern time according to EDT & EST time settings for Manhattan/Brooklyn areas or others within  New York, NY 10012.
    Currently the Web Service is returning accurate date/time based on local EDT GMT-4 daylight time.
    Is there some defined set of dates for EDT & EST times for New York region that I can check for to ensure the correct Dates/Times for Eastern Time in New York area ??? I am using NY zipcodes because i am sure to get correct ET values.
    The Major Problem Part: is I need to correct the time by 2 seconds or approx. 2 secs, some millisecs.
    When I retrieve the Time Value from WebService, it lags behind for 2 seconds as compared to DateObj i create using computer's local time, on my Windows XP Service Pack 2 with Automatic Updates turned-on. And I'm sure about my Windows will be having latest updates for Time Management already installed. I also added the 2 secs. to the TimeSync(ed) Date to make correction to this Date obj.
    I call my custom fucntion addSeconds(dateObj:Date, secs:int) to add 2 seconds to the Date by Converting Seconds to Milliseconds.
    Please comb through the as code in files attached and Help Me Out !!!
    Problem#2 Description:
    Secondly I need to Detect the End of Stream state while using FLVPlayback component, an rtmp:// live Stream from FLASH MEDIA SERVER.
    I need to Play a YuMe Post-Roll Ad when Steam Finishes/Ends.
    Live Broadcast Stream Event starts every night on Wednesdays & Saturdays exactly  at 10:59 PM EDT GMT-4.
    Live Events only Streams/Broadcasts the stream for 50secs. exactly. When [playback stopped] it plays a PostRoll Ad and after the CountdownTimer again comes back to life. The Next upcoming Event is calculated & the Countdown begins until Next Event's time/date is reached.
    Here is the  code on the frame 1 on the MainTimeline: (rest of the params like source, volume, skinAutoHide are Set using Property Inspector for FLVPlayback instance on Stage)
    //myStream instance of FLVPlayback is on the Stage
    myStream.isLive = true;// Frame 1 Actions in the FLA
    myStream.addEventListener(VideoEvent.COMPLETE, onEndOfStream);
    myStream.addEventListener(VideoEvent.STATE_CHANGE, onState);
    myStream.addEventListener(String(VideoError.NO_CONNECTION), onStreamError);
    myStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    /*if(myStream.stopped){
         trace("tracy: "+myStream.state);
    } else if(myStream.state == VideoState.STOPPED){
         trace("tracy: "+myStream.state);
    function onStreamError(event:VideoError) {
         trace(event.code + "\n\t" + event);
    function onState(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function onEndOfStream(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   //connectStream();
                   break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: "/* + myStream.source*/);
                   break;

  • Dynamic Playlist for streaming video

    This is my first attempt at building a dynamic playlist for
    streaming flash video and I'm following the tutorial at
    "macromedia.com/devnet/flash/articles/video_player.html". I've
    changed the paths to my FMS and loaded the video files to the
    applications directory of the FMS (flash_applications/videosource).
    The thumbnails load and the player skin loads but the videos do not
    load when I click on the thumbnails.
    I've read the earlier post about this same issue. I followed
    the advice from that post and reloaded the 'main.asc' file from my
    Flash 8 program files but the video still does not play.
    Here is a link to the site so you can see the problem:
    http://media.us.elsevierhealth.com/videosource/VideoSource1.swf
    My FMS is 'media.us.elsevierhealth.com'
    I believe my code is correct and I believe the paths I've
    created are correct. If someone could review my code and check the
    path info I would appreciate it. Here is the code from
    'VideoSource1.as'
    import mx.video.*;
    //Set up the list box, call function VideoThumb to create the
    actual thumbnails
    list.rowHeight = 70;
    list.cellRenderer = "VideoThumb";
    list.selectable = true;
    //create new empty listener object
    listListener = {};
    nc = new NetConnection(); //create a connection
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    //connect to FCS (nav.attributes.url)
    ns = new NetStream(nc); //create a stream
    ns.connect(); //connect the stream
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    var stream_ns:NetStream = new NetStream(nc);
    stream_ns.play("video2.flv");
    // Create function to trace all the status info.
    function traceStatus(info) {
    Message.text+="Level: " + info.level + " Code: " +
    info.code+"\n";
    } // Assign this function to onStatus handlers when you
    create objects.
    //Function to handle what happens when an item in the list is
    selected
    listListener.change = function( evtobj ) {
    var nav = list.dataProvider[list.selectedIndex];
    var reset = true;
    for ( var i = 0; i < nav.childNodes.length; i++ ) {
    var stream = nav.childNodes
    if ( stream.nodeName == "stream" ) {
    attachMovie("FLVPlayback", "my_FLVPlybk", 10, {width:320,
    height:240, x:90, y:100});
    //center the FLVPlayback component when FLV is ready to play
    var listenerObject
    bject = new Object();
    listenerObject.resize = function(eventObject
    bject):Void {
    //center video in playback area
    newx = (460 - my_FLVPlybk.preferredWidth)/2;
    newy = (470 - my_FLVPlybk.preferredHeight)/2;
    my_FLVPlybk._x = newx;
    my_FLVPlybk._y = newy;
    my_FLVPlybk.addEventListener("resize", listenerObject);
    listenerObject.ready = function(eventObject
    bject):Void {
    my_FLVPlybk.setSize(250, 350);
    my_FLVPlybk.skin = "ClearExternalAll.swf";
    my_FLVPlybk.clear();
    my_FLVPlybk.contentPath =
    "rtmp://media.us.elsevierhealth.com/videosource/stream/_definst_/"
    + stream.attributes.name+".flv";
    my_FLVPlybk.autoSize = true;
    trace(my_FLVPlybk.contentPath);
    reset = false;
    //Add an event listener on the list, when it triggers, run
    the listListener function to repopulate the list
    list.addEventListener("change", listListener);
    //Function that loads the XML file, parses it, and builds the
    list of available video clips
    var xmllist = new XML(); //setup a variable to hold the XML
    xmllist.ignoreWhite = true;
    xmllist.load( "playlist-demo-1.xml" ); //load the XML file
    //The following gets called when the XML has been loaded
    xmllist.onLoad = function( status ) {
    if ( !status )
    trace( status );
    var entries = this.childNodes[0];
    var playlists = {};
    var nav = [];
    for ( var i = 0; i < entries.childNodes.length; i++ ) {
    var entry = entries.childNodes;
    if ( entry.nodeName == "listitem" )
    //builds array of video clip names
    playlists[entry.attributes.name] = entry;
    else if ( entry.nodeName == "menu" ) {
    //builds array of available videos
    for ( var j = 0; j < entry.childNodes.length; j++ )
    nav[j] = playlists[entry.childNodes[j].attributes.name];
    } //end else if
    } //end if
    //sends the array of videos to the listbox UI
    list.dataProvider = nav;
    } //end xmllist.onload
    Any advice or troubleshooting will be appreciated. Thanks in
    advance.

    I just used the server on Windows (as opposed to linux) and
    it worked great. So the issue, at least for me and my issue (could
    see the thumbnails, couldn't play the video) was windows vs. Linux.
    I guess the linux version doesn't work with this exact script. Now
    to put together something of my own to test to see if the linux
    version works right.

  • Deliver HTTP ABR HDS+HLS Streams via Player Object to All Devices

    I have been unable to successfully establish a single video player object (similar to when delivering single-bitrate streams via FLVPlayback component with Flash Pro) that will automatically detect the browser type and automatically deliver the appropriate .f4m or .m3u8 manifest when broadcasting using HTTP adaptive bitrate streaming with FMLE3 and AMS5.
    I have both the HDS and HLS streaming working separately--the AMS5 sample videoPlayer.html file will accept and play video content when fed the URL: http://csitsfms.sys.oakland.edu/mbrBlack.f4m; however, I have not had success in getting any .f4m streams initiated in any other fashion.
    Also, HLS streaming is verified to be working on: http://csitsfms.sys.oakland.edu/mbrBlack.m3u8 when using an option such as VLC Player's File -> Open Network Stream command.
    The end desired result is that a user will navigate to  a particular URL and the browser autodetects whether to deliver the .f4m or the m3u8 manifest and initiate the appropriate stream to a single video playback object.
    We've had FMS up and running since v3.5; however, have just recently upgraded to AMS5.0.x and would like to enable adaptive bitrate streaming to all devices; we have no problem with single-bitrate streaming to Flash-enabled devices.
    I have also tried using the sample videoPlayer.html page's auto-generated code, dropping that onto an otherwise empty HTML document; however, Error 2048 was returned instead of a valid stream. Using a similar process with the OSMF generator, the error standard error, "We are having problems with playback. We apologize for the inconvenience."
    It may be noted that we have SWFVerification enabled for our domain, in case this is what may be impeding our efforts.

    take a look at this links
    http://www.adobe.com/devnet/adobe-media-server/articles/beginning-fms45-pt01.html
    i think you are not calling the video properly in the HTTP URL.
    http://csitsfms.sys.oakland.edu/mbrBlack.f4m  willnot work. If you are using the AMS videoplayer.html use the embeded code and paste it in a html file.
    http://domain.com/hds-vod/filename.f4m WILL NOT WORK . This will only display the content of the f4m file.

  • Get video length

    I'm trying to query the total length of an FLV video streaming to FLVPlayback 2.5 component from a Flash Media Server using AS3 but can't find reference to anything that would be able to return that...

    Hi,
    Please use the below code, to know about the total length time of a video.
    ns.client = customClient;
    function metadataHandler(infoObject:Object):void {
    trace(infoObject.duration);
    totalduration_txt.text = infoObject.duration;
    where ns is the netstream object instance name. Please change the ns to your corresponding netstream object instance name.
    Thanks

  • Connecting FLME with DVRCast

    Hi, I am trying to set up DVR streaming using FLME. I'm following this tutorial:
    http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12398/enabling-dvr-s treaming
    I'm up to Step 2,
    I put in the following information into the FLME:
    FMS URL: rtmp://222.222.222.222/dvrcast_origin
    Stream: mp4:sample.f4v
    Then click 'Connect' , but I get an error "Failure to connect to primary server. Please verify that your server URL and application name are valid and that your internet connection is working and retry". My server is a 32-bit windows 2007 VPS , with FMS running.
    I don't know if I set up the DVR Cast application correct. All I did was copy the dvrcast_origin into the installationdirectory/applications, then I started a new instance of dvrcast_origin with _definst_...
    Also, I am running the trial version of FMS, and DVR needs FMIS. Is there a way I can just run FMIS?
    Please

    Ok FLME was doing VP6 publishing the whole time.
    I tried the DVR sample player and it shows the stream!! but only for a few seconds.. Perhaps that is what it's meant to do. Anyway This is the debug output which happened over a period of a few seconds:
    Flash Player Version: WIN 10,2,152,32
    Creating Stream
    Handle DVR Result Called
    RollingWindow (sec): -60
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Stop
    DS onMetaData called...
    NetStream.Buffer.Flush
    NetStream.Buffer.Full
    NetStream.Play.Complete
    NetStream.Buffer.Empty
    What does NetStream.Buffer.Full mean?
    I still don't get why the code wont work.
    This is the instructions to installing DVR:
    1.  Unzip DVRcast 1.2.zip. - Done
    2.  Go to   DVRCast1.2\adobe\fms\samples\applications. Place dvrcast_origin in the origin server's application folder and dvrcast_edge in the edge server's application folder for the 2-tier set up. - Only placed dvrcast_origin
    3.  Install Flash Media Live Encoder(FMLE) 3.0.  - Done on home computer
    4.  Install Flash component FLVPlayback 2.5 (Refer to DVRCast1.2\adobe\fms\samples\FLVPlayback 2.5.0.24\adobe\fms\documentation\flvplayback_2.5_install.pdf) - Not done as I don't have Flash CS4.
    5.  Restart Flash Media Server(FMS) 3.5.3 server. - Done
    6.  Specify FMS URL and Stream name in FMLE, for example
                    FMS URL: rtmp://localhost/dvrcast_origin - Done
                    Stream: live1 - Done
    7.  Hit the "Start" button to start publishing. - Done
    8.  Use the DVRControllerSync.swf from the DVRCast1.2\adobe\fms\samples\DVRControllerSync to record the streams. - What exactly do I do here? This folder just contains a shockwave flash object file..
                    a. Specify the name of the origin server for example  rtmp://localhost/dvrcast_origin. Connect
                    b. Specify the name of the streams to record. The stream name should be the same as the one being published by FMLE or ingest app.
            c. Set the rolling window size (in minutes). (Refer to flashmediaserver_3.5_dvrcast_1.2.pdf to understand its usage)
                    d. Hit 'Start DVR' to record the streams.
    9.  To playback the dvr stream from FLVPlayback component, set these parameter as follows: - I figured this was part of the html code.
                    isDVR = true
                    source = "rtmp://localhost/dvrcast_origin/live1.flv";

  • FLVPlayback issue loading RTMP stream

    Hi, I'm currently having a problem with FLVPlayback refusing to play a stream from a certain site. The flvplayback was playing streams from a different remote site fine, the stream that it is attempting to play work in other AS2 FLVPlayback components on different sites using the same skin, and the stream is pointing to the right file. When tracing the FLVPlayback streams, the streams that work show the states buffering, playing while the stream that doesn't work only hits the state "loading." During the entire process no errors are thrown. When I run the FLVPlayback locally it has no trouble loading from either remote rtmp site.
    Thanks,
    Ed

    Updated the FLVPlayback component with the very latest.
    Updated my project from Flash 9 to Flash 10.
    It's working like a charm !

  • FLVPlayback audio but no video when streaming

    I have a flash program that loads an external flv dynamically. I first create an empty movie clip then I attach an instance of the FLVPlayback component using Moviclip.attachMovie();. Then i control the FLVPlayback component with AS2. I have a play and pause button, a scrubber, and a loading progress bar.  None of these are components. When I publish and preview the file in Flash CS4, Adobe Flash Player 10, and all my internet browsers everything works fine, all the buttons, the multiple functions of the scrubber, and even the loading progress bar. However when I uploaded all the files from my computer to my company's server and tested it from there, I recieved audio but no video. All of the various controls still worked for the audio but I couldn't see anything on the stage. If I waited for the loading progress bar to complete and then reloaded the external flv then I got video, but the purpose of this program is to stream the video and I cannot have the users waiting for a preloader. Please help me to get my video to show and not just my audio.
    If you want to look at my FLVPlayback code here it is:
    _root.createEmptyMovieClip("lesson_mc",-16381);
    lesson_mc.attachMovie("FLVPlayback","lesson_video",0);
    lesson_mc.lesson_video.contentPath = page.attributes.url;
    lesson_mc.lesson_video.autoSize = true;
    lesson_mc.lesson_video.autoRewind = false;
    lesson_mc.lesson_video.autoPlay = true;
    lesson_mc.lesson_video.bufferTime = 20;

    I don't know what cross-domain issues are, but i had double checked my flv's path/file name and since reading your post have checked it again.
    Heres the thing though, I can still get video, so it can't be these problems. I previously wrote this:
    kibbik wrote:
    All of the various controls still worked for the audio but I couldn't see anything on the stage. If I waited for the loading progress bar to complete and then reloaded the external flv then I got video, but the purpose of this program is to stream the video and I cannot have the users waiting for a preloader.
    But I can't get it before it finishes loading. I want to stream it.

  • FLVPlayback and streaming video

    I am reading about the different between progressive and
    streaming video on the web. I want to use FLVPlayback to play
    streaming video. In Flash help, to use streaming video we have to
    create a connection to server right? And the code to connect to
    streaming video on the server (FCS or FMS) is:
    nc = new NetConnection();
    nc.connect( url);
    ns = new NetStream(nc);
    ns.connect();
    Also in the Flash help, in the FLVPlayback section, how to
    play video using FLVPlayback is shown, but I could not see anything
    related to the connection or NetStream variable as the above code.
    So how can the FLVPlayback play streaming video? Could anyone help
    me please?

    Unless the video is completely downloaded to the iMac you can not rule out the Internet connection.
    Since it plays all other video with no problem the downloading stream would seem to be the source of the problem.
    I had cable modem and it is no guarantee of a fast connection. Also even having a fast connection on one end doesn't mean that the source of the video is pushing it all that fast.

  • FLVPlayback and RTMP streaming

    Hello,  I'm streaming a video on my websites Flash page using the FLVPlayback component. I have two questions however: when I unload the containing SWF file the video continues playing. According to the AS3.0 reference for CS4 I can use closeVideoPlayer(0) to remove the video file. I keep getting this error however:  VideoError: 1007: Cannot delete default VideoPlayer      at fl.video::FLVPlayback/closeVideoPlayer()      at Index/closeStreamPlayer()  The other question I have is...I need to have the player resort to a local flv file instead of streaming if the connection is refused by the streaming server or the file can't be found. If I were coding this I'd just create a NetStream and check the status. I'm wondering how I can append a status checker to the player to do the same thing. I can't find anything useful or apparent to me in the reference.  Thanks!  David

    Hello are you loading the webpage on that local machine ?
    theres a security thing in flash that wont let you play the
    video in that way. open the html file on a different computer to
    the streaming server

  • How do you watch and record a live h.264 stream at the same time using fmis and FMLE?

    I've read all the similar post but could not find a solution that actually works, and please no "just use the dvr or record on the FMLE suggestions" as neither will work for me.
    Some posts I've read suggest naming the stream in the FMLE to something like mp4:mystream.mp4 or mp4:mystream.f4v but then you can no longer view the stream, and according my the admin console the stream will not even publish using this syntax.
    I can view the published stream if I name the FMLE stream to something like mystream.mp4 or just mystream, but then it doesn't record at all or records as a FLV file depending on how I code the main.asc file.
    Here's one version of my main.asc, this one correctly publishes the live stream after the client triggers the joinStreams function but will not record it.
    application.onConnect = function (client, userType)
        trace("userType is " + userType);
        this.acceptConnection(client);
        //this.clientCount++;
        client.joinStreams = function (channel)
            trace("joinStreams on channel " + channel);
            liveVid = Stream.get("livevideo/" + channel + ".mp4");
            liveVid.play("hdvideo/" + channel, -1, -1);
            liveVid.record("append");
        client.clearStream = function (channel)
            trace("clearStream on channel " + channel);
            liveVid = Stream.get("livevideo/" + channel + ".mp4");
            liveVid.play(false);
            delete liveVid;
    I've been working on this for 48 hours straight, please advise.

    I think lets keep it simple, will explain what you have for watching live streams and recorded streams
    Live Publish and Play:
         FMLE Settings:
    Video Codec: H.264
    Audio Codec:<any of your choice>
    Server URI : Please put your server uri with application name here , for example i will use "rtmp://myServer/myApp"
    Stream name: livestream
        Subscriber Settings:
              Server URI :  "rtmp://myServer/myApp"          Stream name: livestream
              Mode: "live" ( i.e. ns.play("livestream",-1,-1,true)
    Playing VOD H.264 file:
         Subscriber settings:
              Server URI :  "rtmp://myServer/myApp"
              Stream name: if file name is "sample", use "mp4:sample", if file name is sample.f4v, use "mp4:sample.f4v"
              Mode: "record" ( i.e. ns.play("mp4:sample.f4v",0,-1,true)
    For DVR (Record-in-progress stream)
    If you are using FMLE and want to use "Record" option of FMLE then you need to have to dvrcast_origin application and subscrier needs to FLVPlayback 2.5 component
    If you want to use that option, do let me know i will give details later.
    For now we will use simple server-side code and FMLE as publisher.
    main.asc of "myApp"
    application.onPublish = function(myclient,mystream){
         mystream.record();
    application.onUnpublish = function(myclient,mystream){
         mystream.record(false);
    FMLE Settings:
    Video Codec: H.264
    Audio Codec:<any of your choice>
    Server URI : Please put your server uri with application name here , for example i will use "rtmp://myServer/myApp"
    Stream name: mp4:mydvrstream.f4v
        Subscriber Settings:
              Server URI :  "rtmp://myServer/myApp"          Stream name:  mp4:mydvrstream.f4v
              Mode: "live" ( i.e. ns.play(" mp4:mydvrstream.f4v",0,-1,true)
    Try out above and let me know if that works or does not work for you.

  • How do I start a streaming .flv at a point other than the beginning of the video file?

    I have a 1.5 hour flv video that is streaming from a
    Microsoft 2003 box with Wowza Media Server installed. Using
    Actionscript 3 and the FLVplayback component I would like to start
    the video at a point about 10 seconds from the beginning.
    This code snippet does not work:
    myVideoFile.seek(10);
    myVideoFile.play();
    Though the video seeks to the proper point in the video file,
    the play() call sends it back to the beginning. Thanks for your
    help!

    That's the ticket!
    <totallyRocks>Jamesabth</totallyRocks>

  • Streaming two or more flv videos at the same time

    Hi,
    I am working on a site that is intended to stream two or more flv simultaneously. The slightly different header clip should renew on entry to each page.
    When I publish the fla file it plays as intended. When I upload the swf file to the web only one of the videos are playing back.
    It does not matter if I import the video to a timeline, or stream it progressively from the server. Both clips are uploaded.
    I am using CS3 and AS3.
    http://www.doctorhoover.com/marcia/test7.html
    Anyone??
    ggaarde

    Hi!!! hey dogHouseJim!! Could you please post a sample of your fourMovies.swf code to know how you do it?? It would be necessary for me to know how to do it. I'm working in an application that has got two flvPlayback components working at the same time but the main video pauses too many times because the other one is running too. Please help me!!! I post here my code (The main flv is croma_01intro ---> it doesn't work too far, I'm a beginner.. ) Thanks in advance for your help!!!!
    ---CODE---
    import com.hagane.MHU.Timer;
    var timeKeeper : Timer = new Timer();
    video_tmp="flvs/croma_01intro.flv";
    video_tmp2="flvs/presentacion720.flv";
    var conexion2:NetConnection = new NetConnection();
    var conexion:NetConnection = new NetConnection();
    conexion2.connect(null);
    conexion.connect(null);
    var stream2:NetStream = new NetStream(conexion2);
    var stream:NetStream = new NetStream(conexion);
    mi_video2.attachVideo(stream2);
    mi_video.attachVideo(stream);
    stream.play(video_tmp);
    //aseguramos 10 seg de reproduccion
    stream.setBufferTime(4);
    loadMovie("cargas.swf",cargas);
    var n_veces = 0;
    var prueba = 0;
    this.onEnterFrame = function() {
    //obtengo el porcentaje
    var valor1:Number = Math.round(stream.bytesLoaded/stream.bytesTotal*100);
    conexion1 = new LocalConnection();
    conexion1.send("conectar", "estado_carga", valor1);
    delete conexion1;
    prueba = stream.time;
    if ((valor1>=12)&&(prueba>=2)) {
      delete this.onEnterFrame;
      stream2.play(video_tmp2);
      stream2.setBufferTime(15);
      stream2.pause();
      var intervalID_mc : Number = timeKeeper.intervalCall(2000, 0, lanzaEstadisticos);
      n_veces = n_veces+1;
    //funcion para saber que el flv termino
    stream.onStatus = function(infoObject) {
        if (infoObject.code == "NetStream.Play.Stop") {
           //trace("video terminado");
        gotoAndPlay(25);
    //if((infoObject.code=="NetStream.Play.Start")&&(n_veces==0)){
      //stream2.play(video_tmp2);
      //stream2.setBufferTime(4);
      //stream2.pause();
      //var intervalID_mc : Number = timeKeeper.intervalCall(5000, 0, lanzaEstadisticos);
      //n_veces = n_veces+1;
    function lanzaEstadisticos(Void):Void {
    stream2.play(video_tmp2);
    timeKeeper.clearIntervalCall(intervalID_mc);
    stop();

  • Adobe Flash tried to play a live or recorded stream that does not exist. Source can't be found

    NOTE: This thread was started in the flash pro forum: http://forums.adobe.com/thread/898879?tstart=0 . However, because of adninjastrators recommandation, I open the thread here:
    Hello there,
    I have started a stream from Flash media encoder to flash media server. According to my encoder, it should be located at: "rtmp://localhost/live" and is called livestream.
    In the Flash  software I try and set the source of FLVPlayback component to "rtmp://localhost/live/livestream", and I get this error: "NetStream.Play.StreamNotFound : Adobe Flash tried to play a live or recorded stream that does not exist. Source can't be found.". Both the server and encoder is runnind and I am encoding.
    Too, when I try and open the html with the stream in a browser, nothing appears.
    What should I check?
    Thanks.
    Kind regards,
    Marius

    Thanks for your reply.
    Server, encoder and player are all on the same computer.
    Admin console confirms the existence of "livestream" of type "Live" and a "NetStream" called "ABAF". No idea what the latter is.
    Also, thought I'd mention that I have to start the servers from the Control Panel -> administrative tools -> services. If I try and start the server from the start menu, they dont start.
    Thank you for your time.
    Kind regards,
    Marius

  • Customizing FLVPlayback version 2.5 in Flex

    I am using the new FLVPlayback version 2.5 in a Flex Builder 3 Actionscript project. The application streams flv and mpv from a cdn.
    The FLVPlayback version 2.5 ships with an all inclusive compiled swf skins but this is not usable for custom players.  The individual controls are the only viable path.  There is some issue with using the idividual seek and volume controls.  The handles never show up? In the debug handle_mc is null in UIManager setControl when using individual components but is working with the all inclusive controlls.  There must be something different in the fla file for the version 2.5.  I have tried individual seek bar and volume bar from both CS3 and CS4 without success.  All the button controls seem to be forward compatable though.  Could someone at Adobe please release the fla so we can create custom controls? or at least explain how to modify the current ones to work with FLVPlayback version 2.5. It must be out there somewhere because it was used to compile the working all inclusive skins.

    Discovered the issue.
    For mounted drives you need to use the nativePath property.
    For cross platform applications you can simply replace() the delimiter with the .separator property.
    Also for some reason the skin wouldn't load, despite the fact that I had chosen it in the component selector.
    I ended up setting the myFLVplayback.skin property just before I added the component to the stage.
    On  a related note, does anyone know if there's a difference between publishing an app with included folders, and simply publishing the app and adding the folders to the .app directory after the .app folder has been published?
    Dan

Maybe you are looking for