FLVPlayback component and rtmp

I have the flash media streaming server 3 installed on a
server in our office. It is set up with a few sample flv/mp4 files
and is working great with the vodtest html page that comes with it.
I've now come to making my own flash file using the
FLVPlayback component (at the moment i've just got a black document
with a flvplayback instance in the middle, which i've given the
correct rtmp path in the component inspector). It works fine in
flash when using Test Movie, it buffers up the file and start
playing almost immediately.
Unfortunately, if I publish the flash file and open it in a
web browser, all I get is an endless buffering bar. I'm hoping
theres something simple I've missed out somewhere.

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

Similar Messages

  • New FLVPlayBack component and RTMP protocol

    hi all
    I'm using "FlvPlayBack" component that ships with Flash 8 to
    play a bunch of FLV's from an XML file. According to the
    documentation (given that my component on the stage is called X), I
    can do:
    X.contentPath = "rtmp://server/foo/bar.flv";
    and i should be set. The problem is that the above doesn't
    work
    now the same program works if i feed it an XML with paths to
    local FLV files (instead of over RTMP protocol) -- also I can
    stream the files using Netconnection/Netstream combo
    it's only when i do
    X.contentPath = "rtmp://server/foo/bar.flv";
    that i get into probelm

    Did you configure the FMS properly? Did you put the main.asc
    file in the application folder (check out this link:
    http://livedocs.macromedia.com/flash/8/main/00003495.html).
    Try to debug the issue. Start with FMS administration console
    and check if you get any incomming connection.
    If no, make sure your can access the "server" domain.
    If yes, check you have placed the files in the application
    folder as needed.
    Check the logs from the FMS.
    If still not working post some more details. My bet goes with
    the main.asc which handle the connection with flvplayback
    component.
    //Bomolete

  • Loading a swf with FLVPlayback component, and the flv restarts playing by itself......

    Hi.
    i have an fla file with 5 keyframes. Each keyframe navigates forward to the following keyframe. On the fifth keyframe, a Loader loads an external swf. The external swf has an flv playback component with sound.
    The fifth keyframe, other than having a button to click to load the swf, has a movie clip that navigates you back to the first keyframe.
    The loaded swf, once loaded, may be removed using removeThis function which has removeChild code as well as a  _flv.stop(); which makes the flv stop when the swf is removed. So u're back on keyframe 5, no sound - good!.
    ASo, all is well and the user can navigate back to the first keyframe (from keyframe 5), and from there continue on to the 2nd, 3rd, 4th and 5th keyframes again,  problems start though, when you get to that 5th keyframe again: that keyframe has an FLVPlayback component playing an flv, which at that point becomes very sluggish as all the mc animations on that 5th frame. And worse, i realize, the flv in the external swf that was previously loaded, starts playing by itself, which i know, because i hear its sound track.
    I tried putting a conditional statement to tell the _flv to stop on keyframes 1 and 5, but that causes errors, considering that the flv is an undefined property from the perspective of those keyframes.
    Any help would be very appreciated:)
    thanks.

    var loader:Loader = new Loader();
    loader.load(new URLRequest("_.swf"));
    house.addEventListener(MouseEvent.CLICK, loadswf1);
    function loadswf1(event:MouseEvent):void
        addChild(loader);
    this is how i'm loading the swf. I tried using   Loader.unloadAndStop() inside that loadswf function but get an error -
    Scene 1, Layer 'a', Frame 75, Line 83
    1061: Call to a possibly undefined method unloadAndStop through a reference with static type Class.

  • Issues with flvplayback component and domain names

    I have fms running on linux with an apache webserver on the same machine and I'm have some issues regarding domain-names.
    I have done the Walkthrough 2. Simple FLVPlayback 2.5 component which works nicely on my local machine using linux (and also on virtualized Windows). Locally it doesn't matter if I use my IP-adress or my domain-name, it all works fine. However, when I host the swf (on my local machine) and access it from another computer the video does not play. The player doesn't seem to load the flv. However looking at the fms-access-log it looks like a succesfull atempt, it connects, starts playing and transfers some data. I have a crossdomain-file in my apache root. I have tried using both domain names and IP-adresses accessing the swf and the flv. Also copying the swf to the other computer doesn't seem to help.
    Another issue that might be the same problem(?) is that when I try loading an flv with another player (also hosted on my local machine) I can get it to work from that other computer (and locally), but only when giving the IP-adress. When using the domain-name it will not work and there is no activity in the access-log.
    I have searched quite a bit without finding anything that solves this.
    Any help is appreciated.
    /Erik

    I should add that the two computers are on the same local network. In the swf I access the app: rtmp://computer1.domain/vod/ or give the IP and then state the streams as in the tutorial.
    Also, has anybody had any issues with hostnames vs IPs in rtmp-urls?
    Feeling a bit lost tbh.
    /Erik

  • FLVPlayback component -- NetStatusEvent

    I'm trying to get the status of a RTMP stream that is being
    played in an FLVPlayback component, and it's not working to well.
    Using the ncMgr, you can't really get any pertinent information...
    I'm looking to catch all the events, such as, connecting,
    connected, playing.. etc... Would it be possible to extend the
    FLVPlayback class to accept these events? Is there something I'm
    missing?

    I got it by editing the NCManager class, and recompiling the
    FLVPlayer.

  • Is it possible to import YouTube videos into a flash FLVPlayback component...?

    Hi all,
    I'm now working on a flash website, i need to play a youtube video inside my flash movie.
    In this Flash file i have a FLVPlayback component and i tried to link the youtube video into this but did'nt work.
    Please help me...

    You should find what you need here: http://code.google.com/apis/youtube/flash_api_reference.html

  • FLVplayback component halts everything

    I've been working on getting video into my flash site with
    the "FLVPlayback component " and i've been able to get it to launch
    and play locally, however when it does launch when i'm "testing
    movie", my flash site quits working. I know this is a bit open
    ended and i'm no flash programmer, but I've been working on this
    all weekend. Can someone help me to integrate the FLVPlayback
    component correctly within my flash site? Thanks!
    -Matt

    It would help if you could explain how your "flash site" is
    structured.

  • Switching between FLVPlayback component at their playheadTime

    Hi There,
    I hope someone can save me with this.
    I am currently on a project (AS3), where I have 2 frames, with videos (using the FLVPlayback component).
    and I want to switch from one video to the next video, however the catch is when i switch to the next video I want the new video to play at the previous video time.
    example:
    Video 1 plays,  10 sec later, you click a button to go and see the next video (in another frame) and that new Video starts 10 sec into it.
    This is the codes I been using so far:
    import fl.video.VideoEvent;
    import fl.video.MetadataEvent;
    video1.addEventListener(VideoEvent.PLAYHEAD_UPDATE, timer);
    function timer(e:VideoEvent):void {
        var newTime = video1.playheadTime;
    nextFrame_btn.addEventListener( MouseEvent.MOUSE_UP, nextFrame);
    function nextFrame (MouseEvent):void
                gotoAndStop(2);
          video2.playheadTime = newTime;
    This doesn't work and I do not know what I am doing wrong.
    many thanks if you can help.

    yes there is another layer with codes but that is for the buttons.. that can work throughout the flash (in all frames). Sorry I forgot about that. Those buttons are just basic home, end buttons. In the other layer is the switch code for the button I am trying to make.
    This button/code for some reason does not like being in the main code layer. So I added it in another layer, which seem to make it work. (The part where I want it to gotoAndStop in another frame.)
    var newTime:int;
    switch_btn.addEventListener(MouseEvent.MOUSE_UP, switch1);
    function switch1 (MouseEvent):void // Function to turn on 3D mode
                        newTime = video1.playheadTime;     
                        this.addEventListener(Event.RENDER,renderF);
    trace("stage:",stage);
                        stage.invalidate();     <= that use to be line 15 before the trace was added.
            gotoAndStop(2);  
                        trace (newTime);
    function renderF(e:Event):void{
      video1.seek(newTime);
    the other layer has this code:
    cha1_btn.addEventListener(MouseEvent.MOUSE_UP, cha1);
    chan2_btn.addEventListener(MouseEvent.MOUSE_UP, chan2);
    function cha1 (MouseEvent):void
              gotoAndStop(10);
    function chan2 (MouseEvent):void
              gotoAndStop(11);
    They are on seperate layers because the switch function is used in all the frames, but to gotoAndStop in different frames.
    aka this one: is in frame 10, which goes to frame 2
    and there will be another one in frame 2 to go to frame 10.
    then there is another in frame 11, which goes to frame 3
    and then the same for frame 3 to goto frame 11.
    so thats why there were in seperate layers, to be able to change that. (sorry if this is getting confusing)

  • FlvPlayback component not visually appealing

    Hi,
    Anyone out there know where a guy can put his hands on a good
    book or tutorial on creating video controls; the flvPlayback
    component and controls are not very pretty. I am creating a flv
    video player and want to provide some style while doing so.
    There must be others who would agree, that the flvPlayback
    componets are ugly.
    Kind Regards,
    Boxing Boom

    Actually the flvplayback component is not ugly.. it provides
    you with a pretty good basic layout to deliver your video as
    quickly as possible to the web.
    Regarding the design of a player.. it's upon your design
    skills to create an appealing player, looking at youtube,
    dailymotion and all those flash sites, they all have pretty simple
    playercontrols, but a book specially for that is not available,
    google for design videocontrols.
    I remember now that there was a book a while ago called
    interface design, not mentioned for "how to design my videocontrol
    interface" but more on the functionality and usability.

  • FLVPlayback Component video and skin as one swf

    Is it possible when publishing a Flash CS4 file to have the Video swf and the Skin swf be in one swf file?
    I have a Flash CS4 (AS2) file that has a FLVPlayback Component. When I publish or test movie 2 swfs are output. I need only 1 swf as I am then going to insert this 1 swf into a Captivate 4 project.
    When I insert the video swf by itself into Captivate 4, I do not have a play bar/skin.
    If it is not possible to publish as one swf, can someone please tell me how I can insert the 2 swfs into a Captivate file and get them to work?
    Thanks in advance.

    My project is called JumpVideo.
    The only 2 items in my library are the FLVPlaybackComponent and a Combo box.
    I have imported a video using the FLVPlaybackComponent and have selected the SteelExternalPlaySeekMute skin to go with the playback.
    The video has defined cue points. The combo box has two values. When the first is selected it jumps to the start of the video. When the second is selected it jumps to the cue point.
    When I publish there are two swfs that are produced; the project swf itself (JumpVideo.swf) and the skin (SteelExternalPlaySeekMute.swf).
    I would like there to be only one swf published (i.e. the skin is within the JumpVideo.swf).
    Is this possible?
    The swfs will then need to be inserted into Captivate 4 as animation.
    If 1 swf cannot be published, then can you perhaps help with how I can insert the JumpVideo.swf and the skin swf into Captivate and have it work as it does in Flash CS4?

  • Is Action Script for netStreaming and FLVPlayback component radically different, not interchangeabl?

    Hi.
    I am using NetConnection and NetStream to play back flv in Flash Pro CS5.5, and trying to add cue point to trigger events using Action Script, and to automatically rewind to the start at the end. There is no problem to trigger events via AS when the cue points are embedded, but i am unable to add cue points using AS.
    When i use an FLVPlayback component, there is no problem to add cue points (http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65586-7feb.html) and to loop the playback using autoRewind (and fl.video.VideoEvent.AUTO_REWOUND which i got from Nafem at http://forums.adobe.com/thread/857036).
    However, i am failing to use this same code w/a netConnection and netStream, and would appreciate any help.
    thanks.

    Hello,
    Well, I've got some help from another helpful fellow at macscripter.net and I have a working script - albeit a bit more specific (ie, hardcoded extensions to look for) and a different approach.
    Here's the script:
    on adding folder items to thisFolder after receiving addedItems
    repeat with movieFile in addedItems
    set {Nm, Ex} to getName_andExtension(movieFile)
    set movieFilePath to (thisFolder as text) & Nm & ".avi"
    set subtitleFile to (thisFolder as text) & Nm & ".srt"
    if Ex is ".srt" then
    try
    tell application "iFlicks"
    import (movieFilePath as alias) with gui
    end tell
    end try
    else if Ex is ".avi" then
    if my FinderItemExists(subtitleFile) then
    try
    tell application "iFlicks"
    import (movieFilePath as alias) with gui
    end tell
    end try
    end if
    end if
    end repeat
    end adding folder items to
    on getName_andExtension(F)
    set F to F as Unicode text
    set {name:Nm, name extension:Ex} to info for file F without size
    if Ex is missing value then set Ex to ""
    if Ex is not "" then
    set Nm to text 1 thru ((count Nm) - (count Ex) - 1) of Nm
    set Ex to "." & Ex
    end if
    return {Nm, Ex}
    end getName_andExtension
    on FinderItemExists(thePath)
    try
    set thePath to thePath as alias
    on error
    return false
    end try
    return true
    end FinderItemExists

  • 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

  • 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 !

  • How to play recorded videos using FLVPlayback component?

    Hey Guys,
         I recorded videos using fms and i want to play them using FLVPlayback component. I've done some research but i cant find something
    useful, I tried this code :
         flvplayback.source = "rtmp://localhost/appname/instancename/video";
         this code is not working. Am i doing it wrong or something? Can anyone please point me on the right direction!
        Thanks in advance!
    Randy

    You may like to use this tutorial for your purpose:
    http://en.wikibooks.org/wiki/Beginner's_Guide_to_Adobe_Flash/Video/Using_The_FLVPlayback_C omponent
    Here, in the content path you need to put your URL, also make sure that the instance name exist and provide the FLV extension in the url.
    Hope that will help you.

  • A better way to determine the current state of the FLVPlayback component?

    Below is the AS3 code I have used to display images (MCs) over an instance of the FLVPlayback component.  These images (one for loading, one for the title) are to appear – or disappear – according to the current state of the FLVPlayback component. 
    It “works,” but when testing, I have noticed that it can be rather finicky.  The most common issue that arises is that many times the loadPoster movieclip will still be visible even though the video has entered the playing state.
    Also, I wanted a title placeholder image to appear whenever the user stops the video or if the video completes.  However, I had to add the conditional statement to the “stoppedStateEntered” case to make everything appear when expected.  When the video is first viewed (and has completed buffering), it seems that the FLVPlayback component enters the stopped state before entering the playing state.  Thus, the titlePoster would flash on the screen right before it and the loadPoster “should” disappear when the video begins playing.
    Even in my limited testing, these issues were very easily re-created.  I am definitely looking for a more reliable solution.  Is there a better (or more correct) way to go about all this?  If possible, I would like to stick with the FLVPlayback component, just for the simple fact of not having to code my own.
    Where am I going wrong?
    function updateMoviePoster(event:VideoEvent):void
                    switch (event.type)
                                    case "playingStateEntered":
                                                    loadPoster.visible = false;
                                                    titlePoster.visible = false;
                                    break;
                                    case "stoppedStateEntered":
                                                    if (loadPoster.visible == false)
                                                                    titlePoster.visible = true;
                                    break;
                                    case "complete":
                                                    titlePoster.visible = true;
                                    break;
    myFLVPlayback.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.STOPPED_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.COMPLETE, updateMoviePoster);

    Any suggestions?  I would truly appreciate the help.

Maybe you are looking for