Class vs FLV video Playback using NetStream

I am trying to load the video using NetStream.

I am able to do using the Video class, but is - it possible with FLV playback? I would like to add a search bar so people can scroll the video if they want to.

I know that the FLV Playback component has this built-in so I would use it BUT I can not load a stream for playback of the FLV, I put only its source. It works fine, but it does not allow me to discharge, the sound continues to play, that's why I ended up using the NetStream rather.

So I have 2 questions.
(1) is it possible to load the NetStream to the FLV Playback component?
(2) otherwise, how to add search to my video class?

Help, please! :(

Thank you for your response.

I tried to use FLV playback again and I realized that what I have to do before I closeVideoPlayer() and removeChild() is to make a call to the stop() FLV Playback function. This works! Problem solved!

Tags: Adobe Animate

Similar Questions

  • TCS recorded video playback using video endpoint

    Hello

    I've deployed a Telepresence from Cisco Content Server (TCS 5.3) and met with problem regarding on how to play videos recorded by video endpoint.

    Under modify records, I don't see an option or the option 'Make check-in available for play on the endpoints '.

    Referring on the Administrator's guide TCS it is said that "If this box is not on the page of registration of amendment, a site Content Server Manager has not configured the prefixes necessary to an alias of reading E.164 and H.323 reading ID to communicate with a site manager for more information. What does that mean?

    And where I can configure the reading reading alias/H323 ID?

    The TCS is registered as SIP and H323 (E.164) on the control of VCS.

    Recorded content have been updated with the recording of "publish".

    Thank you very much for the help.

    Best regards

    Acevirgil

    You must do the following:

    Key 'Premium résolution' option must be installed.

    Record configuration, see the Site settings, such as 'Bridge', not 'Terminal '.

    Enter the prefixes to use for recording, and also for playback, it may not be the same.

    Note that prefix of reading options will be unavailable unless the resolution option key Premium is installed.

    Also note the playback using the SIP is not supported at this stage.

    /Jens

    Please rate the answers and question 'Answered' mark as appropriate.

  • Problems mirroring the iMac on television during video playback using VLC Player

    At the end of 2015, I bought a 4th generation (32 GB) Apple TV and an iMac with OS X El Capitan 10.11.6

    When I try to reflect my screen FRO my iMac to the TV using Apple TV video (playing through VLC) is nervous and rambling. I talked to Apple Support and they conclude that video game through VLC was the problem and VLC should perform updates to the new Apple TV. I was told that Quicktime was the only guarantee program to watch the video through, but a lot of file formats I have are not compatible with Quicktime. I know that Quicktime converts the files now, but sometimes they take forever and some files won't convert. Apple Support guy told me to another way to convert the files, but I don't remember what he says now! I did the latest VLC and am finding it's really frustrating because it was the reason why I bought the Apple TV in the first place. Any suggestions on a faster way to work around this problem? Thank you!

    If you mirror your mac then the app vlc on the appletv no impact, it would even not be used or must be installed on the appletv

    It works ok if you use vlc on the appletv?

    mirror airplay works ok with another video to steam?

    When air time and performance is compromised it is usually an interference of the network rather than a software problem, a

  • Keeping the backlight on during video playback with alarm does not not with OS 4.7 round

    I am developing an app that plays the video using the alarm, like this:

    player_ = Manager.createPlayer(url);
    player_.realize();     
    
    VideoControl_ = (VideoControl) player_.getControl("VideoControl");
                    videoControl_.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,                 "net.rim.device.api.ui.Field");
    videoControl_.setVisible(true);
    player_.start();
    

    The duration of the video is longer than 2 minutes. On OS 4.6 device such as the curve, the video plays without the screen goes black.

    However, on the circuit of 4.7 OS, screen goes black even if I try to activate the backlight on regularly, like this:

            final Timer t = new Timer();
            TimerTask tt = new TimerTask()
            {
                public void run(){
                    Backlight.enable(true, 240);
                }
            };
    
            t.scheduleAtFixedRate(  tt, 0, 240000 );
    

    The integrated application of Media Player can play the video even without the screen going dark.

    How can I avoid the screen of goes black on device OS 4.7 during video playback using VideoControl?

    Thank you.

    Now works with this change:

    t.scheduleAtFixedRate(  tt, 0, 24 * 1000 );
    
  • .Flv VIDEOS don't play do not smooth

    A heavy project of Captivate generated video was created in heading 4:

    * 18 snow all this, with the total size coming to 90.7 MB .flv videos

    * Using Captivate, as looking for interactivity - there is also a menu, so users can access to whatever section they would watch/use

    When you access the project online:

    (1) the charger will quickly up to 100%

    (2) shows the preloader image I inserted

    (3) the user clicks play and the first slide with video games...

    The first video is freezing / move quickly along the timeline. Also, you can't access the other sections in the menu. While I'm not too worried about it, my priority is for comfortable vision for the first video. I'm assuming that freezes in the first video, etc. because all of the project has yet to fully charge. How a work towards this solution? I tested the time of loading, change of 10%, 20%, 100%, but the video is still sometimes freezing / moving quickly along the timeline.

    What rate do you use when you re - encode the video? Also, make sure that you use the ON2 VP6 codec.

    Try and play with the bitrate. Set it to 400 and then see if you are satisfied with the result. If it isn't put at 500, 600, 700 etc until you find a good compromise of size and quality.

    / Michael

    Click here to visit the blog of www.captivate4.com

  • Custom using netStream video player not working not

    I have problems playing movies using the flash in a way that is not sinking tons of memory (http://forums.adobe.com/thread/851908). So, I tried to build my own, but I can't allow him to play anything... What don't I get on the netStream working with the VideoDisplay?

    customComponents package < code >
    {
    import flash.events.Event;
    import flash.events.NetStatusEvent;
    import flash.events.TimerEvent;
    import flash.media.SoundTransform;
    import flash.media.Video;
    import flash.net.NetConnection;
    to import flash.net.NetStream;
    import flash.utils.Timer;

    Import mx.core.UIComponent;
    Import mx.events.FlexEvent;

    / * Explanation of the component: VideoDislplayCustom is a replacement for s:VideoDisplay, because our load method in video memory leaks in the order of several hundred megabytes every time a new video has been loaded. It provides a video object that attaches to a netStream, which allows us to broadcast the video files on the hard drive to play rather than load them into the player. By preventing the caching of all kinds, overcome us the leaks memory of this magnitude and are a tool that can last throughout the day switching between videos often. */

    SerializableAttribute public class VideoDisplayCustom extends UIComponent
    {
    / * Constructor * /.
    public void VideoDisplayCustom()
    {
    Super();



    videoPlayer = new VideoDisplay();
    this.addChild (videoPlayer);
    this.addEventListener (FlexEvent.CREATION_COMPLETE, init)


    netConnection = new NetConnection();
    netConnection.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
    NetConnection.connect() (null);

    netStream = new NetStream (netConnection);
    netStream.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
    netStream.client = this;
    netStream.bufferTime = BUFFER_TIME;

    setVolume (defaultVolume);
    }

    / * Necessary, because we need allow all this time to initialize before you start trying to create certain things or parts of some components addressing.
    * Called from: this. Creation_Complete event that is raised after this component is all assembled. */
    private void init(event:Event):void
    {
    this.removeEventListener (FlexEvent.CREATION_COMPLETE, init);
    videoPlayer.visible = true;
    videoPlayer.source = "";
    videoPlayer.videoObject.attachNetStream (netStream);
    }

    / * Global variables * /.
    Define our constants.

    Time to buffer, in seconds. Subsequently assigned to the netstream object
    protected const BUFFER_TIME:Number = 8;

    Public variables.

    We must be able to define a source for our video player.
    public var source: String = "";
    Maintains the boot volume when the player starts, defined in terms of percentage of the total volume of the system.
    public var defaultVolume:Number =. 60;
    Because when we turn it off to save the previous volume. This wil enable us to check with our drop-down list component or other components to make sure that
    We have the right to 'lastVolume '.
    public var lastVolume:Number = defaultVolume;
    When we turn off our video, we know that she is mute. Checking to see if the volume 0 is accurate, not enough, so we have a variable for it. In addition,
    the s:VideoDisplay uses a variable 'muted', if we want to keep the same looking for outside like this component.
    public var muted: Boolean = false;
    When we want the video loop, you have to know that, so here is our Boolean loop. In fact, when we reached the end of playback, either deliver us
    a "complete" event, or we start playing again from the beginning. This value determines what.
    public var loop: Boolean = false;
    We need to know if we can soften the video or not (to improve the quality of reading).
    public var smoothing: Boolean = true;

    Private and protected variables.

    We need a video object to attach the netStream to. So, here it is.
    protected var videoPlayer:VideoDisplay;
    We must be able to access netConnection and NetStream objects from outside this component (to set the source and check on things), so here is our
    objects.
    protected var netConnection:NetConnection;
    protected var netStream:NetStream;
    We need to know if the stream is loaded or not before we can read.
    protected var loaded: Boolean = false;
    We need store metadata for the video that load us up, so here's our storage object metadata.
    protected var vidInfo:Object;

    / * Meathods of this component (aka public functions), visible to the whole program. */
    public void play (): void
    {
    Words of the var: String = «»
    If (!) Loaded)
    {
    netStream.play (source);
    load = true;
    } else {}
    netStream.resume ();
    }
    }

    public void pause (): void
    {
    netStream.pause ();
    }

    public void stop (): void
    {
    netStream.pause ();
    netStream.seek (0);
    }

    public void seek(timeToSeekTo:Number):void
    {

    }

    public void setVolume(volumeToSet:Number):void
    {
    var soundTransform:SoundTransform = new SoundTransform (volumeToSet);
    netStream.soundTransform = soundTransform;
    }

    public function mute (): void
    {
    if(!muted)
    {
    lastVolume = videoPlayer.volume;
    setVolume (0);
    Mute = true;
    } else {}
    setVolume (lastVolume);
    Mute = false;
    }
    }

    / * We store the metadata collected by the NetStream object, information so that we can him later in this program. This isn't really a meathod, but it
    * should be made public so that the NetStream could find it.
    * Called from: NetStream object, as soon as he gets the metadata and information loaded file. */
    public void onMetaData(info:Object):void
    {
    vidInfo = info;
    }

    / * Functions private and protected this component, closed to the rest of the program. */
    protected function netStatusHandler(event:NetStatusEvent):void
    {
    Switch (event.info.code)
    {
    case "NetStream.Play.StreamNotFound":
    trace ("Error. Stream not found: "+ source);
    break;
    case "NetStream.Play.Stop":
    Stop();
    break;
    }
    }

    < code >

    Any help?

    Here is the code for the component. I hope there is nothing odd about that. I have included my contact information at the top. Please send me an email me or Adobe PM if you have questions or comments about this code. Hope this helps someone. It took me a good while to tinker until I found this.

    You can also find this useful if you do not need to completely rebuild the component. http://bryanheisey.com/blog/?p=21

    [CODE]

    /* Contact info: Jordan: [email protected] between 2010 and 2015. */
    
    /* The built-in video display object would not work for our purposes, because it would leak enormous amounts of memory (in the order of 200-300MB) every time a new
     * video was loaded in and played. It was almost as though it retained all previous videos played in memory, rather than replacing the video it had loaded.
     * After farther investigation, I believe it had to do with the fact that s:VideoDisplay discards the source and videoGateway, and creates a new one, meaning that
     * garbage collection has to get in there and fix it. However it doesn't unless RAM is also being lost in enough little chunks, so...it never cleaned up.
     * This is the first attempt to fix that, by directly manipulating the netStream, and streaming the video, rather than loading it in as was happening in s:VideoDisplay.
     * I have, however, followed the structure that was presented in s:VideoDisplay provided by Adobe in the Flex 4.0.1 framework as far as where events and public functions
     * and so forth are declared. This video player uses a lot of code and ideas from s:VideoDisplay and the player described at
     * http://www.flashwebdesigns.com.au/index.php/2010/07/custom-flex-4-spark-videodisplay. More details of what this actually is found right above the constructor. */
    
    /* TODO: Looping pauses for a moment before restarting.
              */
    package customComponents
    {
         /* Imports:
          * NetStatusEvent is used to react to specific events in the video stream. For example, when it starts to play, when it stops, and so forth.
          * SoundTransform is a class used to control the volume in the NetStream, and so when the volume is changed, we need to use this to create a new sound handler for the
               stream.
          * Video is used as the gateway through which the NetStream is visible. That is actually it's only purpose, because we wind up directly manipulating the NetStream when
               we need to do anything with the video.
          * NetConnection is used to initiate our NetStream. NetConnection is looking for a server connection. When we pass through null as the server, it knows we're after
               local content.
          * NetStream is what actually plays the videos off the computer. This is the central piece of this component. Using this class as our primary piece of this component
               is what allows us to circumvent memory leaks and other issues.
          * UIComponent is what this component extends, so it's needed for the basis of our component.
          * FlexEvent is required to allow us to listen for creation complete, allowing us to call an init() function here like we do with almost every other component we have.
          * TimeEvent was the original type of event used in s:VideoDisplay, so working on changing as little as possible, we kept that as our event types, and by the time we
               finished, there was no point to changing it. */
    
         import flash.events.Event;
         import flash.events.NetStatusEvent;
         import flash.media.SoundTransform;
         import flash.media.Video;
         import flash.net.NetConnection;
         import flash.net.NetStream;
    
         import mx.core.UIComponent;
         import mx.events.FlexEvent;
    
         import org.osmf.events.TimeEvent;
    
         /* Events */
    
         /* complete is dispatched when the playhead reaches the duration for playable media.
          * original eventType: org.osmf.events.TimeEvent.COMPLETE */
         [Event(name="complete", type="org.osmf.events.TimeEvent")]
         /* durationChange is dispatched when the duration property of the media has changed.
          * This event may not be dispatched when the source is set to null or a playback error occurs.
          * original eventType: org.osmf.events.TimeEvent.DURATION_CHANGE */
         [Event(name="durationChange", type="org.osmf.events.TimeEvent")]
         /* needToSeek is dispatched whenever play() is called. play() loads in the new video. If the video is the same one that was already playing, therefore not changing the
          * duration, we need to catch that, and the easiest way to do that is just to dispatch an event commanding that we seek. */
         [Event(name="needToSeek", type="flash.events.Event")]
    
         /* Explanation of component: VideoDislplayCustom is a replacement for s:VideoDisplay, since our method of loading in videos caused memory leaks in the order of hundreds
          * of megabytes each time a new video was loaded in. This one provides a simple video playing object that attaches to a netStream, which we use
          * to stream the video files off the hard driver rather than loading them into the player. By disallowing caching of any kind, we overcome memory leaks of
          * that magnitute, and provide a tool that can last all day switching between videos often. */
    
         public class VideoDisplayCustom extends UIComponent
         {
              /* Constructor */
              public function VideoDisplayCustom()
              {
                   super();
                   // We want to have an init() function, so we listen for it's dispatch.
                   this.addEventListener(FlexEvent.CREATION_COMPLETE, init);
                   // We build the actual stuff that plays our videos.
                   createUnderlyingVideoPlayer();
                   // The next three lines ensures that code farther down will work. We compare durations in vidInfo, which is just an array, so we first need to give it a duration
                   // value to compare (it's bad if we compare null to a number)
                   var tempArray:Array = new Array();
                   tempArray["duration"] = 0;
                   vidInfo = tempArray;
              }
    
              /* We need to allow everything time to initialize before we start trying create some things or addressing parts of some components. Looking towards expandability,
               * also, this only makes sense to have.
               * Called from: this.Creation_Complete, which event is fired after this component is all put together. */
              private function init(event:FlexEvent):void
              {
                   // since we added the event listener, we need to pull it off.
                   this.removeEventListener(FlexEvent.CREATION_COMPLETE, init);
                   videoPlayer.visible = true;
              }
    
              /* Global variables */
    
              // Define our constants \\
    
              // Time to buffer, in seconds, before it begins playback. Later assigned to the NetStream object. Since all our files loaded are on the local host, we
              // don't need to set this very high. And if we use a black screen, we can specify a minimum buffer size.
              protected const BUFFER_TIME:Number = 8;
    
              // Public variables \\
    
              // Holds the start volume when the player starts, defined in terms of percentage of total system volume.
              public var defaultVolume:Number = .50;
              // For when we mute, we need to save the previous volume. This wil let us double-check with our dropDown component or other components to make sure that
              // we have the right "lastVolume".
              public var lastVolume:Number = defaultVolume;
              // When we mute our video, we need to know it's muted. Checking to see if it the volume is 0 is not accurate enough, so we have a variable for it. Also,
              // the s:VideoDisplay uses a "muted" variable, and since we want to keep it looking the same from the outside as this component, we keep that variable.
              public var muted:Boolean = false;
              // When we want to loop the video, we need to know that, so here's our loop boolean. Basically, when we hit the end of the video playing, either we issue
              // a "complete" event, or we start playing it again from the beginning. This boolean determines which.
              public var loop:Boolean = false;
              // We need to know if we can smooth the video or not (to improve playback quality). Also something from s:VideoDisplay
              public var smoothing:Boolean = true;
              // We needed a way to carry through the height and width, and for some reason, this.width and this.height were both cleared and reset to 0 before the component is
              // created, or sometime during creation, so we needed to create these variables instead to carry it through. Breaks our "looking the same from outside" attempt.
              public var playerWidth:Number = 1024;
              public var playerHeight:Number = 768;
    
              // Private and protected variables \\
    
              // We need to be able to define a source for our video player. This would be a public variable, but that wasn't allowing for both playing the first video and the
              // subsiquant subclips, so we had to write getter and setter functions for the source, so we can maintain the previous source to know how to act. Thus, we have
              // our newSource and our oldSource.
              protected var newSource:String = "";
              // We also need to know if we have a new source loaded in, so this variable holds the old source.
              protected var oldSource:String = "";
              // We need a video object to attach the NetStream to. So, here that is.
              protected var videoPlayer:Video;
              // We need to have a NetStream to be able to use it, and to create one, we need to have a NetConnection. So, here they are.
              protected var netConnection:NetConnection;
              protected var netStream:NetStream;
              // We need to store the metadata for the video that we load up, so here's our metadata storing object.
              protected var vidInfo:Object;
    
              /* Meathods of this component (aka public functions), visible to the whole program. */
    
              /* This function checks our sources, and if they haven't actually changed, we don't want to reload the stream, so we just tell the hosing component (which for
               * us is the VideoScreenCustom component) that we need to seek. If we load in the new video (netStream.play(newSource), then we can't seek until the video is
               * actually loaded, and we can't always seek from the onMetaData functions below, so this seemed the best way to do it.
               * Called from: play() and playScreenSaver() in VideoScreenCustom.mxml. */
              public function play():void
              {
                   if(newSource == oldSource)
                   {
                        dispatchNeedToSeek();
                   } else {
                        netStream.play(newSource);
                   }
              }
    
              /* Pretty straightforward--we pause the video by pausing the netStream.
               * Called from: pause() in VideoScreenCustom.mxml. */
              public function pause():void
              {
                   netStream.pause();
              }
    
              /* Pretty straightforward--we need to unpause the video where we left off, so we call resume() on the netStream to unpause.
               * Called from: resume() in VideoScreenCustom.mxml. */
              public function resume():void
              {
                   netStream.resume();
              }
    
              /* We don't currently use this, because closing the netStream makes it hard to restart videos and seek, since it's still opening the stream when the seek command
               * is sent, and it stops the screen saver from working properly. It's just best to avoid closing our stream unless we are unloading it or something.
               * Called from: nowhere. This is a place holder / view into other uses. */
              public function stop():void
              {
                   netStream.pause();
                   netStream.close();
              }
    
              /* We need to be able to move around a video and to enter at different entryPoints, so seeking is vital. Here, we make it accessable from outside this component.
               * Called from: loopVideo() in this component, play(), rewindVideo() and fastForwardVideo(), and seekToPoint() from VideoScreenCustom.mxml */
              public function seek(timeToSeekTo:Number):void
              {
                   netStream.seek(timeToSeekTo);
              }
    
              /* Function that mutes the video. When it is called again, it restores the previous volume.
               * Called from: set volume() below, and currently nowhere else. This is a place holder until that feature is requested. */
              public function mute():void
              {
                   if(!muted)
                   {
                        lastVolume = netStream.soundTransform.volume;
                        setVolume(0);
                        muted = true;
                   } else {
                        setVolume(lastVolume);
                        muted = false;
                   }
              }
    
              /* Getter and setter functions */
    
              /* Used by VideoScreenCustom to know what the current time in the video is so that it can rewind, fastforward (by passing through a new time to seek to), and so
               * we can watch for stop points in the video clips. */
              public function get currentTime():Number
              {
                   return netStream.time;
              }
    
              /* Used by the videoScreenCustom to know if it is even possible to fast forward any (if within the skip interval from the end, then FFing is not possible). Also
               * here if ever needed for any other reason. */
              public function get duration():Number
              {
                   return vidInfo.duration;
              }
    
              /* Since we're remembering both the previous and the current source, we need to specify that we are returning the newSource through this getter function.
               * Externally, this looks just like a public variable. */
              public function get source():String
              {
                   return newSource;
              }
    
              /* Since we remember both the old and the current source, when the source is changed (.source = "somePath"), we need to copy the current source, then set the new
               * one so that we can use it in this to know whether to load the video or not (we don't want to load it if it is already loaded in and playing). Externally, this
               * looks just like a public variable.*/
              public function set source(sourceToSet:String):void
              {
                   oldSource = newSource;
                   newSource = sourceToSet;
              }
    
              /* From videoScreenCustom, we set the volume only through videoDisplay.volume=NUM. So, we handle all volume stuff here. It is possible to have the videoScreen
               * call mute() seperately in the future, so we add a little logic here to unmute if muted. Otherwise, we se the volume. */
              public function set volume(volumeToSet:Number):void
              {
                   if(muted)
                   {
                        mute();
                   } else {
                        setVolume(volumeToSet);
                   }
              }
    
              /* We store the metadata information gathered by the NetStream object, so that we can get to it later in this program. This isn't truly a meathod (meaning available
               * to the component hosting this one), but it had to be made public so that the NetStream object could find it. You'll note that we have too onSomeDate() functions.
               * The reason for that is that some video conatiners return one type of data (MetaData), and another returns a different set of metadata (XMPData).
               * Called from: NetStream object, as soon as it gets the metadata and information from the loaded file. */
              public function onMetaData(info:Object):void
              {
                   var oldVidInfo:Number = vidInfo.duration;
                   vidInfo = info;
                   if(oldVidInfo != vidInfo.duration)
                   {
                        dispatchDurationChange();
                   }
                   resizeVideo();
              }
    
              /*See above on onMetaData() for info about this. It does the same thing, but for different file formats (mostly flash-based containers). */
              public function onXMPData(info:Object):void
              {
                   var oldVidInfo:Number = vidInfo.duration;
                   vidInfo = info;
                   if(oldVidInfo != vidInfo.duration)
                   {
                        dispatchDurationChange();
                   }
                   resizeVideo();
              }
    
              /* Private and protected functions of this component, closed off to the rest of the program. */
    
              /* We need to build the essential pieces of the player and leave them in all the time. The basic concept for this player is that we have a Video object to
               * serve as a gateway for the NetStream object, which is what actually connects to the video file and passes it through. The Video object is just the reciever--
               * that means that all calls and commands that we want to deliver to the playing video we instead direct towards to NetStream.
               * Called from: the constructor function. */
              protected function createUnderlyingVideoPlayer():void
              {
                   // create our Video object, attach it to the stage, and resize it (critical--since otherwise, both height and width would be 0).
                   videoPlayer = new Video();
                   addChild(videoPlayer);
                   videoPlayer.width = playerWidth;
                   videoPlayer.height = playerWidth;
    
                   // NetConnection is needed to open the NetStream. When anything changes in this stream, we can handle those changes in netStatusHandler(). When we connect and
                   // pass through null, it means that we have no server and the files will be hosted on the local box.
                   netConnection = new NetConnection();
                   netConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                   netConnection.connect(null);
    
                   // The main piece. Through this netStream, we control video playback, volume, and so forth.
                   netStream = new NetStream(netConnection);
                   netStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                   // the client is who the NetStream turns to to find functions for it's events. There is one event that requires handling--the one that calls onMetaData
                   // (or MXPData). It finds those functions in the client object.
                   netStream.client = this;
                   // How long it will buffer before it starts to play the video. Since we're on the local box, our buffer can pretty much be as low as we want.
                   netStream.bufferTime = BUFFER_TIME;
    
                   setVolume(defaultVolume);
                   // Final step: attach the NetStream object to the Video so that the Video knows to pay attention and do something.
                   videoPlayer.attachNetStream(netStream);
              }
    
              /* We need to change the size of the video to fit on the screen. However, it must be noted that sometimes, if it must be stretched too far, then video quality
               * becomes horrible, and so far, no workaround has been discovered.
               * Called from: onMetaData (of all kinds, including XMP and other types of metadata), called whenever a new video is loaded in. */
              protected function resizeVideo():void
              {
                   videoPlayer.width = playerWidth;
                   videoPlayer.height = ((playerWidth * vidInfo.height) / vidInfo.width);
                   videoPlayer.x = 0;
                   videoPlayer.y = ((playerHeight - videoPlayer.height) / 2);
              }
    
              /* In order to change the volume, we have to apply a new soundTransform object. So, here we create it and do that.
               * Called from: mute(), createUnderlyingVideoPlayer(), and the setter function set volume(). */
              protected function setVolume(volumeToSet:Number):void
              {
                   var soundTransform:SoundTransform = new SoundTransform(volumeToSet);
                   netStream.soundTransform = soundTransform;
              }
    
              /* For our screensaver, we needed to allow the video to loop. This function will handle that. The only problem is, since we wait for it to .Stop (see Called from:),
               * there is a pause between the end of the video, and when it starts over.
               * Called from: netStatusHandler for NetStream.Play.Stop */
              protected function loopVideo():void
              {
                   netStream.seek(0);
              }
    
              /* We need to pay attention to what the NetStream is saying and react accordingly. Especially when the video ends. All NetStream andNetConnection events on
               * documentation at Adobe are listed as a comment at the end of the class (very end of this file).
               * Called from: the NetStream and NetConnection event when they spit out an event. */
              protected function netStatusHandler(event:NetStatusEvent):void
              {
                   switch (event.info.code)
                   {
                        case "NetStream.Play.StreamNotFound":
                             trace("Error. Stream not found: " + source);
                             break;
                        case "NetStream.Play.Stop":
                             if(loop)
                             {
                                  loopVideo();
                             } else {
                                  var playedTime:Number = int(netStream.time);
                                  var totalTime:Number = int(vidInfo.duration);
                                  // if we're within 2 seconds of the end, assume we're at the end.
                                  if(Math.abs(totalTime - playedTime) <= 1)
                                  {
                                       dispatchComplete();
                                  }
                             }
                             break;
                   }
              }
    
              /* Event Dispatching Functions */
    
              /* Sent out to let the hosting component (VideoScreenCustom) know that the end of the video clip has been reached.
               * Called from: NetStream's NetStream.Play.Stop event code, sent out whenever the end of the video playing through the stream is reached. */
              protected function dispatchComplete():void
              {
                   var eventObj:TimeEvent = new TimeEvent("complete");
                   dispatchEvent(eventObj);
              }
    
              /* When the new and old sources have different durations (meaning a new video has been loaded), this is called to let the hosing component know we have a new vid.
               * Called from: onMetaData (onXMPData), which is called whenever a video is loaded. */
              protected function dispatchDurationChange():void
              {
                   var eventObj:TimeEvent = new TimeEvent("durationChange");
                   dispatchEvent(eventObj);
              }
    
              /* When we don't have a new video, we still need to call seek() after the NetStream is aware that the video is the same. Or something. I'm not sure why, but we need
               * to seek after things have been set and run for a few microseconds. This is used for FFing, RRing, but mostly for seeking to a new "chapter" in a continuous
               * video during playback.
               * Called from: play() above. */
              protected function dispatchNeedToSeek():void
              {
                   var eventObj:Event = new Event("needToSeek");
                   dispatchEvent(eventObj);
              }
    
         }
    }
    
    /*
    The following table describes the possible string values of the code and level properties.
    Code property Level property Meaning
    "NetStream.Play.Start" "status" Playback has started.
    "NetStream.Play.Stop" "status" Playback has stopped.
    "NetStream.Play.Failed" "error" An error has occurred in playback for a reason other than those listed elsewhere in this table, such as the subscriber not having read access.
    "NetStream.Play.StreamNotFound" "error" The FLV passed to the play() method can't be found.
    "NetStream.Play.Reset" "status" Caused by a play list reset.
    "NetStream.Play.PublishNotify" "status" The initial publish to a stream is sent to all subscribers.
    "NetStream.Play.UnpublishNotify" "status" An unpublish from a stream is sent to all subscribers.
    "NetStream.Play.InsufficientBW"  "warning" Flash Media Server only. The client does not have sufficient bandwidth to play the data at normal speed.
    "NetStream.Play.FileStructureInvalid" "error" The application detects an invalid file structure and will not try to play this type of file. For AIR and for Flash Player 9.0.115.0 and later.
    "NetStream.Play.NoSupportedTrackFound" "error" The application does not detect any supported tracks (video, audio or data) and will not try to play the file. For AIR and for Flash Player 9.0.115.0 and later.
    "NetStream.Play.Transition" "status" Flash Media Server only. The stream transitions to another as a result of bitrate stream switching. This code indicates a success status event for the NetStream.play2() call to initiate a stream switch. If the switch does not succeed, the server sends a NetStream.Play.Failed event instead. For Flash Player 10 and later.
    "NetStream.Play.Transition" "status" Flash Media Server 3.5 and later only. The server received the command to transition to another stream as a result of bitrate stream switching. This code indicates a success status event for the NetStream.play2() call to initiate a stream switch. If the switch does not succeed, the server sends a NetStream.Play.Failed event instead. When the stream switch occurs, an onPlayStatus event with a code of "NetStream.Play.TransitionComplete" is dispatched. For Flash Player 10 and later.
    "NetStream.Pause.Notify" "status" The stream is paused.
    "NetStream.Unpause.Notify" "status" The stream is resumed.
    "NetStream.Record.Start" "status" Recording has started.
    "NetStream.Record.NoAccess" "error" Attempt to record a stream that is still playing or the client has no access right.
    "NetStream.Record.Stop" "status" Recording stopped.
    "NetStream.Record.Failed" "error" An attempt to record a stream failed.
    "NetStream.Seek.Failed" "error" The seek fails, which happens if the stream is not seekable.
    "NetStream.Seek.InvalidTime" "error" For video downloaded with progressive download, the user has tried to seek or play past the end of the video data that has downloaded thus far, or past the end of the video once the entire file has downloaded. The message.details property contains a time code that indicates the last valid position to which the user can seek.
    "NetStream.Seek.Notify" "status" The seek operation is complete.
    "NetConnection.Call.BadVersion" "error" Packet encoded in an unidentified format.
    "NetConnection.Call.Failed" "error" The NetConnection.call method was not able to invoke the server-side method or command.
    "NetConnection.Call.Prohibited" "error" An Action Message Format (AMF) operation is prevented for security reasons. Either the AMF URL is not in the same domain as the file containing the code calling the NetConnection.call() method, or the AMF server does not have a policy file that trusts the domain of the the file containing the code calling the NetConnection.call() method.
    "NetConnection.Connect.Closed" "status" The connection was closed successfully.
    "NetConnection.Connect.Failed" "error" The connection attempt failed.
    "NetConnection.Connect.Success" "status" The connection attempt succeeded.
    "NetConnection.Connect.Rejected" "error" The connection attempt did not have permission to access the application.
    "NetStream.Connect.Closed" "status" The P2P connection was closed successfully. The info.stream property indicates which stream has closed.
    "NetStream.Connect.Failed" "error" The P2P connection attempt failed. The info.stream property indicates which stream has failed.
    "NetStream.Connect.Success" "status" The P2P connection attempt succeeded. The info.stream property indicates which stream has succeeded.
    "NetStream.Connect.Rejected" "error" The P2P connection attempt did not have permission to access the other peer. The info.stream property indicates which stream was rejected.
    "NetConnection.Connect.AppShutdown" "error" The specified application is shutting down.
    "NetConnection.Connect.InvalidApp" "error" The application name specified during connect is invalid.
    "SharedObject.Flush.Success" "status" The "pending" status is resolved and the SharedObject.flush() call succeeded.
    "SharedObject.Flush.Failed" "error" The "pending" status is resolved, but the SharedObject.flush() failed.
    "SharedObject.BadPersistence" "error" A request was made for a shared object with persistence flags, but the request cannot be granted because the object has already been created with different flags.
    "SharedObject.UriMismatch" "error" An attempt was made to connect to a NetConnection object that has a different URI (URL) than the shared object. 
    
    If you consistently see errors regarding the buffer, try changing the buffer using the NetStream.bufferTime property.
    
    */
    

    [/ CODE]

  • GAL/jumping images when executing 3 flv videos Netstream.

    Why do I not Lagie jump video images during the use of Flash CS5 and 3 flv videos Netstream. If I play only 2 videos they work well. It is not a CPU or memory reaches max. Videos are for download locally (cached anyway).

    Conditions:

    Windows 7

    Flash Player 10

    With or without hardware aceleration - same experience

    More than 2 videos of netstream

    CPU i7

    8 GB RAM

    GeForce GTX 650

    Windows Flash (no browser) application / Windows Projector (tried too)

    Result:

    Videos all the laggie and jumps frames

    What I want:

    -Magic way to fix the lag
    -Alternative to load the video (with cue point of control and search)

    CODE:

    3 x MovieClips containing:

    var vid:Video = new Video (640,1080);

    this.addChild (vid);

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    vid.attachNetStream (ns);

    NS.client = this;

    NS. Play ("someVideo.flv");     10 MB of video

    Problem/Bug fixed in Adobe Flash CS6 windows player!

    Thanks for your help.

  • Get a FLV in a loop to a specific image using Netstream (as3)

    To preface this my AS3 knowledge is quite new. As long as the thread titled readings, I try to get an FLV to play through its entireity and loop and then back to a specific image and keep the point constantly proofreading. After much digging, I found a video tutorial using AS3 that worked! Here's my current situation even though I can't find the right code to be inserted to make the loop video back on the image I want. The FLV just stops and go back at the end of the video. Here is my code so far:

    var video:Video = new Video(1980, 1020);
    addChild(video);
    
    
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    
    
    var ns:NetStream = new NetStream(nc);
    
    
    var meta:Object = new Object ();
    meta.onMetaData = function (meta: Object)
    {
              trace(meta.duration);
    }
    
    
    ns.client = meta;
    
    
    video.attachNetStream(ns);
    
    
    ns.play("All.flv");
    
    

    In the end, the video should play throughout an only on the first load and then looping back to frame 319 and play towards the end and loop back again in order to frame the 319 infinitely. I think I'm almost there, I just need help in getting my code works appropriately. I've done this before by using "gotoAndPlay()" but the loop is not seamless so it gives one pause seconds before looping back. I hope using a function of Netstream that this will be resolved. I'd appreciate any help!

    You can use:

    Video: video of var = new Video (1980,1020);

    addChild (video);

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    ns.addEventListener (NetStatusEvent.NET_STATUS, netStatusF);

    NS.client = this;

    video.attachNetStream (ns);

    NS. Play ("All.flv");

    function onMetaData(obj:Object):void {}

    trace (obj. Duration);

    }

    function netStatusF(e:NetStatusEvent):void {}

    Switch (e.info.code) {}

    case "NetStream.Play.Stop":

    NS. Seek (2);

    break;

    }

    };

  • How to change the rendering used for video playback in Windows Media Center Version 6 engine

    I usually use other media players, but I would like to first of all using Windows Media Center. However for the moment video playback is not good because of the weird colors (everything is displayed in black and Red instead of normal colors). When you use other media players, I use the Haali rendering engine which gives good results for video playback.

    Can you tell me how to change the rendering used by Windows Media Center?

    Also, I noticed the same weird color effect in Windows Media Player 11.

    Hi Woobee,

    1. What is the brand and model of the computer?

    2. what graphics card use on the computer?

    If you are using an Nvidia graphics card on the computer, in the Nvidia Desktop Manager, you will find an option for saturation to ensure it is set to 100%.

    And if you are any other graphics card on the computer and search for a similar option for saturation.

    If the previous step fails in Windows media player, so be sure that the hue and Saturation are defined by default.

    1. click on the arrow on the tabplaying , point to enhancements, and then clickcolor picker.

    2. do one of the following:

    1. to return to the default color, click thereset link.

    Also, make sure that the video settings are set by default.

    1. start the playback of a file.

    2. click on the arrow on the tabplaying , point to improvements, and then clickvideo settings.

    3. click onreset.

    Check also in Windows Media Center if the

    1. on theStart screen, go to tasks, click settings, clickgeneral, then Visual and sound effects.

    2. undercolors ensure that Windows media center standard is enabled.

    Turn off Visual and sound effects in Windows Media Center

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-off-Visual-and-sound-effects-in-Windows-Media-Center

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Video playback HTML5 on Android, after the "back" button is used.

    Hi, I'm looking to create an app that plays the video online, using the HTML5 video tag. I have to support Android and have a problem on this platform. My app OK video online games when the application is first started, but if you exit through the back button and then restarted, the video will not play again. I have to "force stop" the app before it will work again. If I exit the application using the home button and restart, the video is very well and reproduce again OK. This behavior occurs if I'm playing a video hosted remotely or locally hosted video. The MP4 video format, I have tried all other formats at the moment. Can someone tell me what I am doing wrong? I guess that the needs of the "back" button a kind of reset or clear-up to the release of the app, but I can't find anything about it!

    I tried to catch and disabling the "back" button event, but that doesn't seem to work at all, maybe because I'm using the Ionic framework and do it in the wrong place. But in any case I don't really want turn off if I can help it.

    I have KeepRunning = false in my file config.xml.

    I am currently using PhoneGap Build, CLI 5.2.0, 4.1.1 Android on a Samsung tablet.

    My code (I am disabling the button full screen via CSS):

    <video id="vidStart" class="videoDisplay" controls="controls" webkit-playsinline>
                    <source src="http://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
    
                    Your browser does not support the video tag.
    </video> 
    

    Thank you, Andrew

    Using plugins in your application? If this isn't the case, you can consider using the Plugin of crosswalk (https://www.npmjs.com/package/cordova-plugin-crosswalk-webview), in this way, that you're not having to deal with the glitches of web view frustrating that occur on different versions of Android.

    Also, when this problem occurs, you see anything on your machine (adb logcat) console?

  • Windows XP, when the use of twitter can not play more error clips vid 'her browser doesn't support video playback', but if I take the Utube link can play w/browser

    Most imbended videos in Twitter doe not play, if I pop the link out and find on youtube, he plays very well. All in the same browser of Firefox on my old Win. XP machine. Seems to be worse, suspect it has something to do with HTML5 but don't know how to check or update to a good player. And maybe a few interactions w/twitter how to isolate. even before trying to start the video see 'this browser does not support video playback' through the image of the video in twitter mssg. THX

    See the new response below on the use of the plugin Adobe Primetime play video Twitter and respond with your experiences.

    Oh, Yes, still the headaches...

    On Windows XP, Firefox is unable to decode MP4 media. On newer versions of Windows, it can use Windows Media Foundation, but Microsoft has ever released for XP. Thus, sites that have begun to use HTML5 with MP4 media video player - and do not automatically switch to a plugin like Flash when necessary - do not work in Firefox on Windows XP.

    The last time I tried to find a workaround solution was in May and I gave up in frustration: video look a problems with Firefox.

    I hope someone else can take a new look.

    In the meantime, you can:

  • How can I control a FLV video using exhibit main bar (not FLV skin)?

    I need to have the ability to play/pause a FLV video on a slide with the bar of main games.  Research showed me that in previous versions, there is a checkbox "synchronize with project" which allowed this.  I don't find this in version 8.  Is there another way to do this?

    Hello

    Welcome to the Adobe Forums

    Try to insert the video like video instead of event video synchronized slides,

    Then down below it will be an option to distribute video through the slides and you can select Slide n to n (where n is the number of slide).

    Hope that this will serve as your need.

    Concerning

    Himanshu

  • Need to flv video to stop once loaded

    Hi, I created a document that has 3 buttons. When everyone is pressed action happens... loads a movie, jumps to the next section, plays the video. The problem I have is when I click on the button image, my video playback and stays. The film should play only when the movie button is selected, and then deleted when you press another.

    It may be possible to indicate to the video controller to stop once loaded, but I do not know the command. The way the movie is imported, the controllers are integrated in the wrapper, but I don't know how to stop playback of the movie.

    Any ideas? As much detail as poss please! My film is called movie.flv, but the instance is called vid.

    < CODE >

    package {}
    import flash.display. *;
    import flash.events. *;

    import local classes the MyClasses folder MyClasses.*;//Import

    /*
    This application displays 3 different ways to show the video and animation. The video must be included in the scene by importing
    By clicking on the buttons at the bottom brings to the top of each type of object. All have their own actionscipt classes to control.
    If you have imported a video placed on the stage and gave him the name of the vid, then you can uncomment the video code
    */

    SerializableAttribute public class VideoMain extends Sprite {}

    Create objects, we can use with actionscript. These are related to the symbols of the library.
    Each has its own actionscript file to control internal...
    private var banner: AnimationBanner = new AnimationBanner();
    private var frames: AnimationFrames = new AnimationFrames();

    public void VideoMain() {//This code is executed at the start of our application. It has the same name as the flash file...
    //
    addChild (banner);
    addChild (frames);
    The value that they are invisible...
    Banner.Visible = false;
    frames. Visible = false;

    Set up actions for the buttons at the bottom of the screen...
    banner_btn.addEventListener (MouseEvent.CLICK, showBanner);
    frames_btn.addEventListener (MouseEvent.CLICK, showFrames);

    Cannot refer to vid if you imported a component video and called it "vid".
    VID. Visible = false;
    vid.addEventListener (MouseEvent.CLICK, showVid);
    }

    The (event: MouseEvent) means that the function will only work if it is called by a mouse event (in this case, the user clicks on the mouse)
    private void showBanner(event:MouseEvent):void {}
    Banner.Visible = true;
    frames. Visible = false;
    VID. Visible = false;
    movie_flv. Stop();
    }

    private void showFrames(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = true;
    VID. Visible = true ;);
    movie_flv. Stop();
    }

    private void showVid(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = false;
    VID. Visible = true;
    movie_flv. Stop();
    }

    }

    }

    < code >

    use:

    package  {
    import flash.display.*;
    import flash.events.*;

    import MyClasses.*;//Import local classes from MyClasses folder

    /*
    This app shows 3 different ways of showing video and animation. The video must be brought into the stage by importing it
    Clicking the buttons at the bottom brings up each type of object. The all have their own actionscipt classes to control them.
    If you have imported a video, placed it on the stage and given it the name vid, then you can uncomment the video code
    */

    public class VideoMain extends Sprite{
     
      //Create objects we can use with actionscript. These are linked to symbols in the library.
      //Each has its own actionscript file to control it internally...
      private var banner:AnimationBanner = new AnimationBanner();
      private var frames:AnimationFrames = new AnimationFrames();

    public function VideoMain() {//This code is run when our application starts. It has the same name as the flash file...
       //
       addChild(banner);
       addChild(frames);
       //Set them to be invisible...
       banner.visible = false;
       frames.visible = false;
      


    Set up actions for the buttons at the bottom of the screen...
    banner_btn.addEventListener (MouseEvent.CLICK, showBanner);
    frames_btn.addEventListener (MouseEvent.CLICK, showFrames);
      
    Cannot refer to vid if you imported a component video and called it "vid".
    VID. Visible = false;
    vid.addEventListener (MouseEvent.CLICK, showVid);

    movie_flv.addEventListener (Event.REMOVED_FROM_STAGE, removedF);  assuming that movie_flv is a flvplayback component existing at this stage.

    }
     
    The (event: MouseEvent) means that the function will only work if it is called by a mouse event (in this case, the user clicks on the mouse)
    private void showBanner(event:MouseEvent):void {}
    Banner.Visible = true;
    frames. Visible = false;
    VID. Visible = false;
    movie_flv. Stop();
    }
    function removedF(e:Event):void {}

    movie_flv. Stop();

    }
    private void showFrames(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = true;
    VID. Visible = true ;);
    movie_flv. Stop();
    }
     
    private void showVid(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = false;
    VID. Visible = true;
    movie_flv. Stop();
    }

    }

    }

  • What causes win 7 to freeze downloading flv. video

    When downloading / reading tube you flv. video, the PC often freezes and requires re-startup.

    Hello

    1. what browser you use to download the files and play YouTube videos?

    2 based on what websites you download the flv file. files?

    If you use Internet Explorer and issues face to playback of YouTube videos, then try the steps in this article:

    The video problems when you use Internet Explorer

    http://support.Microsoft.com/kb/2532294

    It will be useful.

  • I can zoom the flv video, playing in my swf?

    I can zoom the flv video, playing in my swf?

    Hello

    I have a FLV video that is related to my SWF file (he plays inside a flvplayback component in my movie). I would like the flv to zoom (because it plays) when the user will fly over to it. Is this possible? I was able to "Create a motion tween" on it so that it plays in edit mode , but when I preview the it, the flv just stay the same size.


    I did this zoom with symbols/shapes (using the preset of 2d-zoom movement), but I wonder how I could do this on a flv. I need the video to play as the transformation changes so I can't zoom in an image that looks like the video and then swap for the actual video when it comes to actual size.


    Thanks for any help.

    Thanks Kglad.

    I found a good explanation step by step to this process of Somascope (you need to create a movie clip on the flv playback to interpolate actually component):

    http://forums.Adobe.com/message/3481842#3481842

    also, here are a few documents:

    itions/Tween.html http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/FL/TRANS

Maybe you are looking for