video come first image only

Hi I create a broadcaster in as3.

Video is OK.

NetConnection.Connect.Success is OK

NetStream.Publish.Start is OK.


But video coming first image only in the player, don't play does not in total video player

var server = "rtmp://xxxxxx.rtmphost.com/foldername";
var streamName:String = "testname";

var nc:NetConnection;
var ns:NetStream;

nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, ayncErrorHandler);
nc.client = this;
nc.connect(server);

function netStatusHandler(event:NetStatusEvent):void
{
          switch (event.info.code)
          {
                    case "NetConnection.Connect.Success" :
                              connectStream();
                    case "NetConnection.Connect.Closed" :
                    default :
          }
}

function connectStream():void
{
          ns = new NetStream(nConnection);
          ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
          ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, ayncErrorHandler);
          ns.client = this;
          ns.attachCamera(webcamera);
}

function securityErrorHandler(event:SecurityErrorEvent):void
{
          trace("securityErrorHandler: " + event);
}

function ayncErrorHandler(event: AsyncErrorEvent):void
{
          trace("AsyncErrorEvent: " + event);
}

var webCamera:Camera = Camera.getCamera();
var video:Video = new Video();
video.attachCamera(webCamera);
addChild(video);

Startbtn.addEventListener(MouseEvent.CLICK, startClick);

function startClick(event:MouseEvent):void
{
          if (Startbtn.label == "Start Broadcast")
          {
               Startbtn.label = "Stop Broadcast";
               ns.publish(streamName, "test");
          }
          else
          {
               Startbtn.label = "Start Broadcast";
               ns.close();
          }
}

I had the problem

Tags: Adobe Animate

Similar Questions

  • Movie maker, xp (sp3), makes part only audio video (but not images) for mpeg files.

    With my computer, XP Sp3, I converted the files MOD ofJVC Everio HDD camera to MPG or MPEG using the software, SDcopy.

    Media Player accepts these files to play movies very well, but Movie maker shows not all images, only the audio...

    My other computer with the same operating system has no problem - but this Movie maker is a slightly older version.

    I suspect that there are some differences of codec in both computers?

    Hello
     
    1. what happens when you transfer these convert to another computer? Play?
    2. converted the file has been correctly?
    3. do you get an error during the file playback?
    4. which media player you use to play the files?
     
    Method 1.
    First check if you are able to read these files on another computer. If the problem occurs on a different computer too so I wouold recommend you to download the latest version of movie maker.
     
     
    Method 2.
    If you think that it is a problem of codecs refer:
    Package of Installation of codec
    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=06fcaab7-DCC9-466B-b0c4-04db144bb601
    Player Windows Media for Windows XP supported Codecs
    http://support.Microsoft.com/kb/291948
     
     
    I hope this helps.
  • I use iphone videos and still images in a project.  When I drag the videos in the timeline, they work fine, but when I drag still images, I have only a small part of the original photo.  No idea how to solve this problem?

    I use iphone videos and still images in a project of first Pro CC.  When I drag the videos in the timeline, they work fine, but when I drag still images, I have only a small part of the original photo.  No idea how to solve this problem?

    Right click on the photo in sequence and "ladder to the chassis '. Can also be set in the preferences and affect imports after the change

    Thank you

    Jeff

  • Before that I only had to type "IMDb" and press enter and put me to the site immediately, but now all these links come first. What can I do to make it like it was before? And my Norton safe password does not appear in firefox.

    Before that I only had to type "IMDb" and press enter and put me to the site immediately, but now all these links come first.

    Or I used to type 'youtube' and after knocking entered, I was took directly to the homepage of youtube.

    What can I do to make it like it was before, so it takes me directly to the site? Second, my Norton passwords and user names for all sites that have been stored in my 'Norton safe"does not appear in the browser. This will be available soon?

    Try to define your topic: config entries for:

    • Keyword.Enabled - > true
    • Browser.Fixup.Alternate.Enabled-> true
    • Browser.Fixup.Alternate.prefix-> www.
    • Browser.Fixup.Alternate.suffix-> .com

    and then restart your browser and try again supernatural imdb.

    You must use 'supernatural imdb' rather than "supernatural imdb" because you want the domain before the page for research work best.

  • Helpppp! my flash table will play only the first image

    my flash table will play only the first image

    This is the code

    stop(); 
    var t:Timer=new Timer(100,0);
    t.addEventListener(TimerEvent.TIMER,preloadF);
    t.start();    
    var rdmFrame:Array = ["15","150","420","589","712","807","1135"]; 
    
    stage.addEventListener(MouseEvent.CLICK, fnClick) 
    
    function fnClick(e:MouseEvent):void 
    {          
    trace(rdmFrame[numberRange(0, rdmFrame.length)]); 
    } 
    
    function preloadF(e:TimerEvent)
    {
        if(this.framesLoaded>7)    
        {
            t.stop();        
            t.removeEventListener(TimerEvent.TIMER,preloadF);        
            t=null;         
            this.gotoAndPlay(numberRange(0, rdmFrame.length - 1));     
        } 
    } 
            
    function numberRange(minNum:Number, maxNum:Number):Number 
    {          
            return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum); 
    }
    

    Ned Murphy wrote:

    Back through ALL the suggestions that I offered and use them.

    HA! I'm sucha dooofus!  Yes it works! YAY!

    Stop();

    var t:Timer = new Timer (100.0);

    t.addEventListener (TimerEvent.TIMER, preloadF);

    t.Start ();

    var rdmFrame:Array = [15,150,420,589,712,807,1135];

    function preloadF(e:TimerEvent)

    {

    if(this.framesLoaded>7)

    {

    t.Stop ();

    t.removeEventListener (TimerEvent.TIMER, preloadF);

    t = null;

    this.gotoAndPlay (rdmFrame [numberRange (0, rdmFrame.length)]);

    }

    }

    function numberRange(minNum:Number,_maxNum:Number):Number

    {

    return (Math.floor (Math.random () * maxNum));

    }

  • Why when I discovered video set the first image is passed?

    How can I solve this problem? An image is missing.

    Or how to make video repeating without such problems?

    I have Windows AAE 2013 (v. 12)

    This looks like a loop created by time remapping. If your workflow is a bit broad. Activate the time-remapping, move the CTI to the last keyframe, backward image, set a new keyframe, remove the last keyframe, and then add the expression loopOut() and you're done. You have to work this way because when you apply the time remapping effect and you move the CTI to the last keyframe, it will be placed after the last frame of the video to an image.

  • How do I loop back to the first image of the last frame?

    Hello

    I am currently working on the framework for a product Viewer.

    I have:

    a clip called "viewer_mc", which contains the images taken from different angles of the product. The actionscript code generates a script on the last frame of which returns to frame 1.

    a button instance called "autoplay_btn", which plays in the music video of whatever the current image is and stops on image 1.

    a left and right button are used to move the clip from the film frame, to give the appearance that the product is running.

    I managed to make him:

    having the clip play through both, return to section 1 and stop.

    have functions return button when held down, move the image in the clip using nextFrame and prevFrame commands. Right-click successfully continues a loop round the frame 1 and continues operation to give the impression of rotation.

    The last problem I do experience becomes the left button to act accordingly, ranging from the first frame to the last and continues to operate.

    Here are my actionscript so far:

    import flash.events.MouseEvent;

    var lastFrame:Number = viewer_mc.totalFrames;

    var thisFrame:Number = viewer_mc.currentFrame;

    var backFrame:Number = viewer_mc.currentFrame - 1;

    1. This is the part that gets to play through once before returning to the first image. I think that maybe the problem which I am facing is because of the part "viewer_mc.addFrameScript (lastFrame-1, initially)", that is even if I am now the left button, returning to this script and therefor have bounced back immediately to the first frame. However, there is no flickering on the screen that you would expect if that were the case

    Note: as this is a viewer of generic product that I can use as a template I use lastFrame etc. as opposed to the entry of the value in

    function initially () {}

    viewer_mc.gotoAndStop (1);

    }

    viewer_mc.addFrameScript (lastFrame-1, initially);

    2. it is the functionality for the autoplay_btn that will play through a rotation / return the Viewer to the initial view (front) of the product (fig. 1).

    autoplay_btn.addEventListener (MouseEvent.MOUSE_DOWN, autoplay);

    function autoplay (ev:MouseEvent): void {}

    var startFrame:Number = viewer_mc.currentFrame;

    viewer_mc.gotoAndPlay (startFrame);

    };

    3. it is the right key functionality, which once held, moves the clip to the next section via the function "rotateRight" based on the order "nextFrame. It loops back rounded up to the first image due to the 'viewer_mc.addFrameScript (lastFrame-1, initially)"script generated on the last frame of the clip you want.

    right_btn.addEventListener (MouseEvent.MOUSE_DOWN, rightDown);

    function rightDown(e:Event) {}

    stage.addEventListener (MouseEvent.MOUSE_UP, stoprightDown); Wait for the mouse upward on the stage, in the case where the finger/mouse moved out of the button accidentally when they release.

    addEventListener (Event.ENTER_FRAME, rotateRight); While the mouse is down, run the function check once each image according to the frame rate of project

    }

    function stoprightDown(e:Event):void {}

    removeEventListener (Event.ENTER_FRAME, rotateRight);  stop the execution of the function check each image now that the mouse is in place

    stage.removeEventListener (MouseEvent.MOUSE_UP, stoprightDown); remove the mouse listener to the top

    }

    function rotateRight(e:Event):void {}

    viewer_mc.nextFrame ();

    }

    4. This is the feature of the left button, which once held, moves the clip on the framework of prev function «rotateRight' based on the «prevFrame» order And that's where the rub, because while it works to get the movieclip to frame 1, it loops round to the last image and continue to operate, as you want.

    left_btn.addEventListener (MouseEvent.MOUSE_DOWN, leftDown);

    function leftDown(e:Event) {}

    stage.addEventListener (MouseEvent.MOUSE_UP, stopleftDown); Wait for the mouse upward on the stage, in the case where the finger/mouse moved out of the button accidentally when they release.

    addEventListener (Event.ENTER_FRAME, rotateLeft); While the mouse is down, run the function check once each image according to the frame rate of project

    }

    function stopleftDown(e:Event):void {}

    removeEventListener (Event.ENTER_FRAME, rotateLeft);  stop the execution of the function check each image now that the mouse is in place

    stage.removeEventListener (MouseEvent.MOUSE_UP, stopleftDown); remove the mouse listener to the top

    }

    I guess that's probably my logic for this part that's really let me down - I can make a similar function in actionscript 2, but am trying to learn actionscript 3 just to evolve with the times in some way and a little hard. Again, this is only a few days!

    function rotateLeft(e:Event):void {}

    {if(thisFrame==1)}

    gotoAndStop(viewer_mc.totalFrames-1);

    } else {}

    viewer_mc.prevFrame ();

    }

    }

    Any help you can give me would be welcome. For an example of the effect I'm trying to achieve with the auto play button etc. I recommend:

    http://www.fender.com/basses/precision-bass/American-standard-precision-bass

    Here is a link to the file that I made using your code with the change, I have indicated to play the opposite.  See if it works as expected.  If so, try to see what is different in your.  If not, tell me what to do, it does not reach.

    http://www.nedwebs.com/Flash/AS3_loop_play.fla

  • 3 related issues: slow movement; the photos are all from the first image; and no sound from the soundtrack to the DVD downloaded.

    I put a DVD in my computer. It plays fine in Windows Media Player. When I transfer to Windows Movie Maker Live, three things happen: 1) the thumbnails are all the same - the first image. (2) the movement is slow. I tried it accelerates, but it is simply not the movement in real time - either too slow or too fast. (3) the soundtrack plays for a fraction of a second.

    What is the problem and how to fix it?

    I converted DVD to WMV format. This fixes the movement of the image and I can hear the music (not quite synchronized), however the thumbnails are still just the first image. In addition, every single feature that I blow (editing, effects, forwards, etc.) the picture freezes and yet the soundtrack plays again.

    ===================================
    It is normal that video to be the first image thumbs.

    Since it was a DVD... I guess it's a big project
    and the gel could be due to a lack of system resources.
    If you wait it can dissipate.

    Some video converters are better than others... Freemake
    maybe worth a try.

    It is also possible that your video driver may need an update.

    Verify that the video driver is problematic is to
    reduce the graphics hardware acceleration:

    Windows 7 - reduce graphics acceleration
    (see following article)

    More low hardware acceleration
    http://help.AOL.com/help/microsites/microsite.do?cmd=displayKC&docType=kc&externalId=15391
    (Windows 7 / Vista / XP / 98 / ME / 2000)

    Good luck...

  • As you drag the video in the Timeline, only audio files will show, not video.  Why

    Hello world!

    So I had to update to PPCC 2015 after 2014 CEP kept crashing on me while I just changed.  After having reopened the project and the program telling me to convert everything on the new 2015 PPCC, I didn't think it was a big deal.

    Well now, the old version of my project can still play all the videos, and the editing I've done, but when I try to drag in a new video to continue editing, only audio files will come in the timeline. The video will play in the window of the fine source drive, but try to get the actual image of the video in the timeline, will not be displayed.

    It makes me crazy!

    What should I do?

    It was activated at the same time. I closed my projects and rebooted my computer to see if that would do anything and now it works as usual. Thanks for your help anyway!

  • * Flash animation loop but going back to the first image {want to hold on to the last image}

    I came across this article in loop animations = http://www.quip.net/blog/2006/flash/how-to-loop-three-times

    I am a novice with flash and just try to connect to some place ads and make it work for the first time.

    Everything worked for me in the article... the only thing I wanted to do, but you have not found that the answer to how do to stop the animation on the last frame after a loop is completed, instead of automatically return to the first image is?

    What is the most easy/most effective way for this?

    The shutdown script does not work... still goes back to the first image.

    For all my flash ads, imported FLV video... so I don't know if this is a feature for flv / video that auto-rewinds to first frame...

    Thank you very much, really appreciate any idea on it.

    The sooner you can take a minute to return best

    you add your video in the timeline.

    Add a stop() in the correct location works for me: create a new layer, insert a keyframe in this layer to the last video image and add a stop() in Control Panel actions.

  • Thumbnail slideshow jQuery accordion begins with the first image, regadless of relaxation

    I created my lightbox on a separate page and it works fine.  I placed this lightbox even inside an accordion panel.  Now (only on the first click), it doesn't matter what thumbnail I click on, the first image appears.  If I close this image and click on a thumbnail, the image on the right is in place.  I need to get rid of this problem.  Any suggestions?

    You're my hero! I'll give it a try. And thanks for the video for reference as well.

  • First image or scene empty preview

    Hello! First of all, sorry for my English, but nobody was able to help me on the forums the. I have problem with my first project in Flash. I did nine different frames with jpeg images (on three layers, which are suitable for different intervals of the day), and then I added actionscript. He gets system, service time clock - date chooses timespan (morning or evening, afternoon or evening) and one of the three executives will appear during this time (randomly). But when I test the project in preview (ctrl + enter) I always first image or scene empty without images. It works well when you click Play on the shortcut menu. I don't know what the problem is. Maybe Flash Player cause this situation. Here's my .fla project: http://www.sendspace.com/file/bhiwut

    Thanks in advance!

    The code that show you should work except for the conditional, what I said is incorrect.  You can never have a number that is two > 21 AND< 5="" at="" the="" same="" time. ="" you="" probably="" really="" intend="" that="" to="">

    If (godzina > = 21 | godzina)<>

    In other parts of your code...

    You should not switch the data types of variable such as what you do with godzina, change a number to a string value.

    When you use Math.ceil and Math.random you take the chance of not getting the values you intend.  Math.Random will return a value > = 0 and< 1,="" so="" when="" you="" multiply="" that="" times="" three,="" and="" apply="" the="" ceiling,="" you="" can="" end="" up="" with="" values="" of="" 0,1,2,3,="" while="" i="" believe="" you="" only="" want="" 1,2,3. ="" it="" is="" safer="" to="" use="" math.floor="" so="" that="" you="" end="" up="" 0,1,2="" and="" then="" add="" the="" 1="" to="" it="" to="" align="" with="" frame="">

    For what you show in the screenshot, I don't see how you could end up with any stage empty unless you have found a mistake in the same time.

  • What comes first, email address ID Apple or iCloud?

    It is such a fundamental issue, I'm embarrassed to even ask, but...

    My wife finally got to need its own Apple ID. There is no share mine, she not only needs one before. She has always had its own user account on Mac.

    When I put in place one Apple ID for her, the first field claims his email / ID, which should be new-to-be-set email address @iCloud.com.

    When I go to Internet accounts, however, he asks his Apple ID and password when I try to configure the email account @iCloud.com.

    Which comes first, or am I missing something completely obvious?

    Like his Apple ID, you will need to use their current email address.

    Subsequently, she can get a username to iCloud.

  • I do not see any video like youtube, vimeo, facebook even site. My flash player is installed and it is a job because I still can see the video in Internet Explorer only on Firefox it audio only not working, the video is blank (black) all, someone can help

    I don't update or download anything, so today, I can't see any video like youtube, vimeo, facebook even site. My flash player is installed and it is a job because I still can see the video in Internet Explorer only on Firefox it audio only not work, the video is all blank (black).
    When I restart my PC again the video can work just first video, then when I see another video site it's all black... (but its still working)
    can someone help me?

    Hi splingun,

    We have a section of fixing Facebook and YouTube. The black screen seems expressly included in the list of the articles I linked to you.

    Hope this helps!

  • flat sequence stops after the first image

    Hello

    I use USB-6218 to drive a current source and read the voltage at the terminals of shunt resistance in my circuit. In order to safely run things, I wanted to make sure that when I stop my blood 'on demand' vi, I updated the current 0. To do this, I tried to use the sequence of dish (find in annex vi), but my program never leaves the first image, even after it hit the stop on my front button.

    Can someone help me with this?

    Thank you
    Katarina

    Does not change the value of Stop inside the Subvi and the loop runs continually.

    -Suggest to check this example: http://www.ni.com/example/28769/en/

Maybe you are looking for

  • niDMM_IsOverRange

    The ' niDMM is off "function does not return a true value when the Signal is Over Range Basically, how the document reads the behavior is inconsistent or unpredictable. The doc does not what instruments/scales/measures, the IsOverrange function will

  • Question about exporting data from Virtualbench.

    Hello I am new to the forums and VirtualBench and hoped that someone might be able to help. When I export data from the VirtualBench, I get 4 columns of data for the 2 channels. They are "1 Min", "1Max", "2 Min", "2Max. Example: Timestamps (ns) 1 min

  • Compaq presario cq5500f: Cpu - amd phenom x 4 quad core 9950

    Hello I recently bought the quadruple-heart phenom x 4 125w 9950 and wanted to update my one heart amd sempron 140. I bought with the intention to upgrade my compaq presario cq5500f so that I can use it as a gaming pc. However, when I put the cpu in

  • taskbar in the vertical position back horizontal

    my taskbar is upright, how can I change to the horizontal position?

  • Jet Office HP 8600 pro: cannot turn on printer HP 8600 office pro jet

    The printer worked fine two days ago.  Don't ask me why I turned off the power, but I did.  Now I can't get it to power.  The plugs are all well sitting, I tried it in different outlets where I know I can exist.  I have tried holding down the power b