Spark Video Component Playing issue

Hi,
I want to play a MP4 large size video (500+ MB) using spark video component, But unable to see the video it only play the voice, but video not displaying
I will send you the video link on your request, but not share on forum
Thanks
Anees

I did not think so.
I am also getting this with IE 9 and its a long documented issue although nothing in the last few months. All 2011 posts.
This is a new image I got done at Lenovo so eveything was fresh.
Problem signature:
  Problem Event Name: APPCRASH
  Application Name: iexplore.exe
  Application Version: 9.0.8112.16421
  Application Timestamp: 4d76255d
  Fault Module Name: nvwgf2um.dll
  Fault Module Version: 8.17.12.7658
  Fault Module Timestamp: 4f53bc01
  Exception Code: c0000005
  Exception Offset: 0005ad3d
  OS Version: 6.1.7601.2.1.0.768.3
  Locale ID: 1033
  Additional Information 1: 8b6d
  Additional Information 2: 8b6d235a555f35a3ed0bd60e5521c68c
  Additional Information 3: 3248
  Additional Information 4: 324805dfa1463962b35de7833a40d76a
T520 Model 4239 Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
Intel Sandy Bridge & Nvidia NVS 4200M graphics Intel N 6300 Wi-Fi adapter
Windows 7 Home Prem - 64bit w/8GB DDR3

Similar Messages

  • When i open Youtube....and click on any video; video doesnt play instead in the player space is complete black? how do i fix this issue?

    When i open Youtube....and click on any video; video doesnt play instead in the player space is complete black? how do i fix this issue?

    Looking at your system details, it doesn't look like you've got the Adobe Flash Plugin installed. Try following the instructions here: [[How do I install the Flash plugin?]]

  • IPad won't play sound with video? Will play music and radio apps, but not if there is a video component. Same for my iTunes movies.

    Help! My iPad won't play any audio when there is a video component to an app or game.   It will play my music and I can see the video on my movies, but not the movie sound.   Turning off and turning it on again worked as a temporary fix once, but now that is not working either.   Been going on for an week or two?

    Try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

  • Is anyone else having an issue with mms videos being played in a message bubble instead of full screen? I'm on a 64 Gb 6 plus

    mms videos only play in message bubble not full screen like it's supposed to on 6 plus

    I'm not.
    Thanks for asking.

  • [svn:fx-trunk] 12025: Switching out the old video component for the new video component that uses OSMF .

    Revision: 12025
    Revision: 12025
    Author:   [email protected]
    Date:     2009-11-19 17:48:04 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Switching out the old video component for the new video component that uses OSMF.  Also fixing RSL issue with OSMF because a change in flex-config.xml accidentally got overwritten.  Also fixing a bug caught during the last code review where you would set the volume on the VideoPlayer, but the volumeBar wouldn't be made aware of that change.
    Switching out the video component results in many API changes.  The changes are highlighted below:
    Class name changes:
    - spark.primitives.VideoElement is being renamed to spark.components.VideoDisplay
    - spark.components.mediaClasses.StreamingVideoSource is renamed to park.components.mediaClasses.DynamicStreamingVideoSource
    - spark.components.mediaClasses.StreamItem is renamed to park.components.mediaClasses.DynamicStreamingVideoItem
    VideoDisplay/VideoPlayer event changes:
    The new video component's events are:
    - bytesLoadedChange : org.osmf.events.LoadEvent
    - currentTimeChange : org.osmf.events.TimeEvent
    - durationChange : org.osmf.events.TimeEvent
    - mediaPlayerStateChange : org.osmf.events.MediaPlayerStateChangeEvent
    The old video component's events were:
    - close : spark.events.VideoEvent (removed)
    - complete : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    - metaDataReceived : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    - playheadUpdate : spark.events.VideoEvent (replaced with currentTimeChange)
    - progress : flash.events.ProgressEvent (replaced with bytesLoadedChange)
    - ready : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    VideoDisplay/VideoPlayer property changes:
    Renames:
    - maintainAspectRatio:Boolean has been renamed to scaleMode:String and rather than true/false, it now access 4 values: none, zoom, letterbox, and stretch.  See the enum class org.osmf.display.ScaleMode.
    - playheadTime:Number has been renamed to currentTime:Number
    - playWhenHidden has been renamed to pauseWhenHidden, and it's "tense" has been reversed.  So playWhenHidden = true correlates to pauseWhenHidden = false.  Also, before we would only pause when the video component was explcitly set to visible=false, but now we detect if the video components or any of it's ancestors have been hidden.
    - totalTime:Number has been renamed to duration:Number
    New properties:
    - bytesLoaded:Number This is a new property not available on the old video component
    - bytesTotal:Number This is a new property not available on the old video component
    - loop: Boolean this was a property added a while ago on the old video component but not in the original video player spec
    - mediaPlayerState: this is a new property that details the state of the video component.  See org.osmf.media.MediaPlayerState for all the possible values.
    - seekToFirstFrame:Boolean (pending PARB approval) - This is a new property available on VideoDisplay/VideoPlayer.  When autoPlay = false, if seekToFirstFrame is set to true, then we will connect to the server to start downloading the video, figure out the size of the video and resize appropriately, and show the first frame of the video.  If seekToFirstFrame is false, then no connection to the server is made, there's no implicit size for this video, and the first frame will not be show automatically.  By default the value of this property is true.  In the old video component, when autoPlay = false, we always has the same behavior as seekToFirstFrame = true.  Now it is controllable through this property.  Eventually, (not for Flex 4.0), we will most-likely have support for a thumbnail source or a splash screen so the video's preview will show up without making an unneeded connection to the server.  The property name may change depending on PARB.
    Other changes:
    - autoRewind: The default of autoRewind is now true instead of false
    - enabled: before we paused the video when the video component was explicitly set to enabled = false.  Now we pause the video when the video component or any of it's ancestors have been disabled.
    VideoPlayer-only changes:
    - videoObject:flash.media.Video property is now a new property on VideoPlayer.  It was previously only on VideoDisplay.
    - The skin states for the old VideoPlayer were: connectionError, disabled, disconnected, loading, playing, stopped, connectionErrorAndFullScreen, disabledAndFullScreen, disconnectedAndFullScreen, loadingAndFullScreen, playingAndFullScreen, stoppedAndFullScreen.  The new skin states are: uninitialized, loading, ready, playing, paused, buffering, playbackError, disabled, uninitializedAndFullScreen, loadingAndFullScreen, readyAndFullScreen, playingAndFullScreen, pausedAndFullScreen, bufferingAndFullScreen, playbackErrorAndFullScreen, disabledAndFullScreen
    DynamicStreamingVideoItem property changes:
    - bitRate:Number renamed to bitrate:Number
    DynamicStreamingVideoSource property changes:
    - initialIndex has been added to DynamicSteramingVideoSource
    - live:Boolean has changed to streamType:String which accepts values: live, recorded, any.  See the enum class org.osmf.net.StreamType for more info.
    - serverURI:String renamed to host:Object
    - streamItems:Array has changed types to streamItems:Vector.
    ScrubBar property changes (THESE CHANGES ARE NOT DONE YET, BUT SHOULD BE DONE SOON)
    - bufferedStart will be removed
    - bufferedEnd will be renamed to loadedRangeEnd.  This property name still may change depending on PARB.
    - bufferedArea skin part needs to be renamed.  Probably will be renamed to loadedArea.  PARB still deciding.
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/flex-config.xml
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as
        flex/sdk/trunk/frameworks/projects/wireframe/build.xml
        flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mx ml
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer2.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamItem.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamingVideo Source.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.png
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin2.mxml

    I've got that same problem: iPod Touch 2nd Gen, Apple Component Cables, and an HD TV.
    The funny thing is, the cable works fine with an iPod Classic (160 GB) but not for the iPod Touch. Can anyone explain why that is?

  • Video Component in 5.5

    Hi -
    I am trying to use the OOTB Video component in 5.5. I have installed ffmpeg. I am overriding the arguments to it by using the custom arguments only in the etc/dam/video/hq.html. This is what I have in custom arguments --b:v 64k -threads 2
    When I upload a test video to hq.html and run the transcoding, i get no errors. When I add that video to DAM, it also transcodes properly (atleast it throws no errors) and I see ogg,flv and the thumbnail created. However, when I drag that video into a video component on a page, it drops ok, but does not play at all. Is there a problem with the transcoding (even though I get no errors)? The documentation does not specigy which version of ffmpeg to install, so i have installed the latest. I have also tested with mp4 and a .mov file and get the same result. Is there something wrong with the codecs I am using? What codecs should I be using? Thank you for your time.

    I noticed that you did not mention the h.264 (m4v or mp4) rendition (from the High Quality H.264 profile) being generated. Might be an issue with ffmpeg for just this encoding - but you should see that in the error log. You'll need this profile rendition for Safari and Chrome (and for the hq Flash fallback for older browsers).
    Otherwise: did you define the profiles to be used for the video component in the design dialog of the video component? The ootb geometrixx design uses "High quality h.264" and "Firefox HQ ogg".

  • Spark Video Player pause / resume loading

    I am developing an application that loads many images and sounds in the background.
    When a page containing still unloaded content is requested, the current background load
    is canceled in order to free all of the user's available bandwidth to load the requested page
    content as soon as possible.
    Now video files are big and I would not want to cancel a video load after 50MB because of a
    page request and load the video all over again, when the user returns to the video page.
    Two questions regarding the issue:
    1. Is loader.close() sufficient to stop a file from loading or do I have to destroy the Loader instance?
    2. Is it possible to pause loading of a big (video)file and resume loading when appropriate in the Spark VideoPlayer component?
    Thanks,
    David

    Does anyone know if I can pause and resume the loading of a video file in s:VideoPlayer?
    David

  • Stopping video component playback

    I have a frame where I have added an flv playback component to play a flv file. Everything plays fine, but when I test the file and navagate away from the frame that the playback component is on, the video continues playing.
    Is there any way to get the video to stop when the user navigates away from the frame? I'm sure this could be done if I add the video using AS 3.0 (that is what the navigation of the site is coded with), but I'm not quite experienced enough to pull that off at this point.
    Thanks!! - Jon

    I'm having same issues, tried using the stop();  on the first frame of the movie's instance timline.  Movie continues to play while user can't actually see it anymore.  When the user navigates back to that section where the movie clip is again, another instance of the movie can be played while the previous one is going making a mess

  • Some videos not playing in Quicktime but WILL play on VLC Player

    Hello,
    All of a sudden, some of my video files will not play on Quicktime. OT reads the length of the movie but when I click play, all I get is a black screen and no sound even though the progress bar rolls per usual. When I open the videos in my VLC Player, the play just fine. This is not with all of my movies. Some movies play fine in Quicktime. Also, if this helps, Final Cut X will not recognize these movie files for import. Am using Quicktime 10.1.
    Thoughts? Help? Anyone?
    Thanks,
    John

    Jon Walker wrote:
    The .dv videos that will NOT play:
    I suspect you may have a number of problems here. The first is having elementary DV and PCM audio streams in a DV stream file container. (I.e. DV/DV audio and video stream data is normally stored in the DV file container while DV/PCM data is normally wrapped in the MOV file container.) The second problem is the fact that the DV video seems to be missing the aspect ratio "aware" information. As you can see from the playing file, the format line should read either
    720 x 480 (640 x 480)
    or
    720 x 480 (853 x 480)
    Based on this, I am wondering how old this file may be and/or how it was captured. (I.e., the playback problem may be due to file container not being compatible with the QT X player which, in fact, relies on an embedded aspect ratio parameter rather than the QT 7 embedded "Current Size" setting and is not expecting PCM audio to be contained in a DV stream file container.
    These videos are older (almost 10 years old) and they were edited in iMovie HD.
    In addition, there is a question (at least for me) as to whether the DV video streams are embedded sequentially or as alternative video tracks. (I.e., if you have QT 7 Pro installed, please post a copy of the "Properties" window.
    Installed QT 7 and videos play fine. No issues. I don't have QT7 Pro.
    Not sure if this will work, but if I had a copy of the non-playing file, the first thing I would try would be to open the file in MPEG Streamclip and re-save the data to a "real" MOV file container to see if it would then be playback compatible with the QT X player app.
    Tried Streamclip and it will save as MOV but the size changes (from 640x480 to 720x480 and I get a stretched look. OT X will play it however. Tried to "export" using differrent formats but with mixed results. Sometimes I got sound but no video. I will continue to fiddle with settings but it doesn't seem like a reliable path to go down.
    Could I be missing the codec component? Is there a way to check?
    Not very likely if any files play have the same video compression format. Had the non-playing files been encoded with one of the HD DV codecs, then yes, that might have been a possibility whould could have been checked.
    Would your answer be the same now that we know QT7 plays the videos without any issues?
    Exported out to a .dv file. Format exact same as the working one above. Plays fine.
    Of course. You exported the audio and video as a DV compressed data in DV stream file container. Thus, both the file format and compression format are now QT X compatible.
    The container is a .dv. I did rename it to .mov at one point to see if that helped but got the same result.
    Of course. Changing the file extension is like calling a cup of coffee a glass of coffee—i.e., the coffee is still in a cup. Basically, this only works if the data in the container is already compatible with the file container and the container is compatible with the player. For instance, H.264/AAC compressed data will play in either QT 7 or QT X players whether it is in an MOV, MP4, or M4V file container. On the other hand, "muxed" MPEG-2/AC3 data won't play in the QT X v10.2 player with a VOB file extension but will play if you change the extension to TS or MPG. On the other hand, the VOB or MPG file (with the QT MPEG-2 playback codec component installed) will play in both QT 7 (without audio) and MPEG Streamclip while the TS file won't open in the QT 7 player but plays fine with audio in MPEG Streamclip.
    I THINK I understand! : )
    I do have a DropBox folder.
    If you also have an online DropBox account, then yes, that would be a good method for posting large files. You then only have to post or email the URL to the people you want to have access to the data.
    True. One of the issues is that I want to re-edit some of these files which means I need to get them into FCP. I know there is a workaround, i.e. importing them into iMovie like I did and then spitting them out again so they will play but I feel like I am losing quality that way. Aren't I? This was before I started saving projects so I could always go back into them. Plus, I really want to preserve the original files for backup sake.
    Jon, thanks again for taking your time with me. Really apprecite it.

  • How do you stop multiple Youtube videos from playing at the same time?

    As of a few days ago, when I click on a youtube video, as the commercial begins to play, you can begin to hear multiple/different commercials playing at the same time. After the commercials, the same issue occurs with the main video--multiple videos are being played at the same time and are not in sync. I've updated all my plug ins and have tried the suggestion posted in the forum provided in the link below in which someone else has expressed the same issue, but nothing has worked so far. Does anyone know what can be done?
    http://productforums.google.com/forum/#!topic/youtube/5Lnikma4UqM

    Are you loading those videos as Flash or HTML5? It is possible to prevent videos from playing until you click something with Flashblock for Flash or Stop Tube HTML5 for HTML5. You can also stop the commercials with Adblock Plus with an Easylist subscription.
    * https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
    * https://addons.mozilla.org/en-US/firefox/addon/flashblock/
    * https://addons.mozilla.org/en-US/firefox/addon/stop-tube/

  • I have a iPhone 4S and when watching videos on the internet sound cuts out as the video is playing. The rest of the video plays with no sound. Sometimes when I pause It and play again sound comes back but not all the time. can anyone help?

    I have a iPhone 4S and when watching videos on the internet sound cuts out as the video is playing. The rest of the video plays with no sound. Sometimes when I pause It and play again sound comes back but not all the time. can anyone help?

    The "restore disk" is built into the Mac. See About Recovery.
    Need more specifics about what error messages you got while installing Adobe Flash.
    However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
    Click the Try something new! link at the bottom of the YouTube page.
    I don't know about the sound issue. Might be hardware as you think. Try other headphones to check.

  • I can't get iOS Development Videos to play in Safari or iTunes

    If I go to https://developer.apple.com/videos/ios/ and try to play any of the videos listed, they will not play. I am using Safari 6.0.1 on my MacBook Pro which is running OS X 10.8.2.
    When I click the "Watch now" link for the video I want to see, the player is show at the top of the page. If I click the "Play" button, nothing happens.
    If I try to download it in iTunes (11.0), the video appears to download without any problem but, there is no indication that the video downloaded in the video list (the little button still reads "Get" for the video I downloaded). If I click the video in the list, and hit the play button, nothing happens.
    It's hard to believe I am having problems with both sources...what am I doing wrong?
    Thanks in advance for any advice you can give.

    Well, I guess those videos are not supported by the current version of iTunes.
    I originally had iTunes set to "Open in 32-bit mode" so I could watch these videos. But apparently, since I upgraded iTunes (and OS X), that setting no longer enables those videos to play. When that selection was enabled (Open in 32-bit mode), I experienced the behavior above. Once I de-selected that setting, and re-opened iTunes to try the video again, I recieved a message that stated "This movie requires QuickTime, which is not supported by this version of iTunes."
    So, I guess I am out of luck?
    This is hard to believe.
    here is the issue, described again, in a question that has gone unanswered since October:
    Unable to play developer video in iTunes

  • How to stop video from playing?

    Hi,
    i have a problem that i've already see that is pretty usual, the videoplayer that i have works fine but when i click in a button to go to another page the videoplayer doesn't stop,the audio continues playing even when i'm not on the videoplayer page.
    I've already found some solutions in the web but none of them worked,probably because i didn't put them in the right place
    The code is a little long:
    // ############# CONSTANTS
    // time to buffer for the video in sec.
    const BUFFER_TIME:Number                = 8;
    // start volume when initializing player
    const DEFAULT_VOLUME:Number                = 0.6;
    // update delay in milliseconds.
    const DISPLAY_TIMER_UPDATE_DELAY:int    = 10;
    // smoothing for video. may slow down old computers
    const SMOOTHING:Boolean                    = true;
    // ############# VARIABLES
    // flag for knowing if user hovers over description label
    var bolDescriptionHover:Boolean = false;
    // flag for knowing in which direction the description label is currently moving
    var bolDescriptionHoverForward:Boolean = true;
    // flag for knowing if flv has been loaded
    var bolLoaded:Boolean                    = false;
    // flag for volume scrubbing
    var bolVolumeScrub:Boolean                = false;
    // flag for progress scrubbing
    var bolProgressScrub:Boolean            = false;
    // holds the number of the active video
    var intActiveVid:int;
    // holds the last used volume, but never 0
    var intLastVolume:Number                = DEFAULT_VOLUME;
    // net connection object for net stream
    var ncConnection:NetConnection;
    // net stream object
    var nsStream:NetStream;
    // object holds all meta data
    var objInfo:Object;
    // shared object holding the player settings (currently only the volume)
    var shoVideoPlayerSettings:SharedObject = SharedObject.getLocal("playerSettings");
    // url to flv file
    var strSource:String                    = root.loaderInfo.parameters.playlist == null ? "playlist.xml" : root.loaderInfo.parameters.playlist;
    // timer for updating player (progress, volume...)
    var tmrDisplay:Timer;
    // loads the xml file
    var urlLoader:URLLoader;
    // holds the request for the loader
    var urlRequest:URLRequest;
    // playlist xml
    var xmlPlaylist:XML;
    // ############# STAGE SETTINGS
    stage.scaleMode    = StageScaleMode.NO_SCALE;
    stage.align        = StageAlign.TOP_LEFT;
    // ############# FUNCTIONS
    // sets up the player
    function initVideoPlayer():void {
        // hide video controls on initialisation
        mcVideoControls.visible = false;
        // hide buttons
        mcVideoControls.btnUnmute.visible            = false;
        mcVideoControls.btnPause.visible            = false;
        mcVideoControls.btnFullscreenOff.visible    = false;
        // set the progress/preload fill width to 1
        mcVideoControls.mcProgressFill.mcFillRed.width    = 1;
        mcVideoControls.mcProgressFill.mcFillGrey.width    = 1;
        // set time and duration label
        mcVideoControls.lblTimeDuration.htmlText        = "<font color='#ffffff'>00:00</font> / 00:00";
        // add global event listener when mouse is released
        stage.addEventListener(MouseEvent.MOUSE_UP, mouseReleased);
        // add fullscreen listener
        stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen);
        // add event listeners to all buttons
        mcVideoControls.btnPause.addEventListener(MouseEvent.CLICK, pauseClicked);
        mcVideoControls.btnPlay.addEventListener(MouseEvent.CLICK, playClicked);
        mcVideoControls.btnStop.addEventListener(MouseEvent.CLICK, stopClicked);
        mcVideoControls.btnNext.addEventListener(MouseEvent.CLICK, playNext);
        mcVideoControls.btnPrevious.addEventListener(MouseEvent.CLICK, playPrevious);
        mcVideoControls.btnMute.addEventListener(MouseEvent.CLICK, muteClicked);
        mcVideoControls.btnUnmute.addEventListener(MouseEvent.CLICK, unmuteClicked);
        mcVideoControls.btnFullscreenOn.addEventListener(MouseEvent.CLICK, fullscreenOnClicked);
        mcVideoControls.btnFullscreenOff.addEventListener(MouseEvent.CLICK, fullscreenOffClicked);
        mcVideoControls.btnVolumeBar.addEventListener(MouseEvent.MOUSE_DOWN, volumeScrubberClicked);
        mcVideoControls.mcVolumeScrubber.btnVolumeScrubber.addEventListener(MouseEvent.MOUSE_DOWN , volumeScrubberClicked);
        mcVideoControls.btnProgressBar.addEventListener(MouseEvent.MOUSE_DOWN, progressScrubberClicked);
        mcVideoControls.mcProgressScrubber.btnProgressScrubber.addEventListener(MouseEvent.MOUSE_ DOWN, progressScrubberClicked);
        mcVideoControls.mcVideoDescription.btnDescription.addEventListener(MouseEvent.MOUSE_OVER, startDescriptionScroll);
        mcVideoControls.mcVideoDescription.btnDescription.addEventListener(MouseEvent.MOUSE_OUT, stopDescriptionScroll);
        // create timer for updating all visual parts of player and add
        // event listener
        tmrDisplay = new Timer(DISPLAY_TIMER_UPDATE_DELAY);
        tmrDisplay.addEventListener(TimerEvent.TIMER, updateDisplay);
        // create a new net connection, add event listener and connect
        // to null because we don't have a media server
        ncConnection = new NetConnection();
        ncConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
        ncConnection.connect(null);
        // create a new netstream with the net connection, add event
        // listener, set client to this for handling meta data and
        // set the buffer time to the value from the constant
        nsStream = new NetStream(ncConnection);
        nsStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
        nsStream.client = this;
        nsStream.bufferTime = BUFFER_TIME;
        // attach net stream to video object on the stage
        vidDisplay.attachNetStream(nsStream);
        // set the smoothing value from the constant
        vidDisplay.smoothing = SMOOTHING;
        // set default volume and get volume from shared object if available
        var tmpVolume:Number = DEFAULT_VOLUME;
        if(shoVideoPlayerSettings.data.playerVolume != undefined) {
            tmpVolume = shoVideoPlayerSettings.data.playerVolume;
            intLastVolume = tmpVolume;
        // update volume bar and set volume
        mcVideoControls.mcVolumeScrubber.x = (53 * tmpVolume) + 318;
        mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
        setVolume(tmpVolume);
        // create new request for loading the playlist xml, add an event listener
        // and load it
        urlRequest = new URLRequest(strSource);
        urlLoader = new URLLoader();
        urlLoader.addEventListener(Event.COMPLETE, playlistLoaded);
        urlLoader.load(urlRequest);
    function playClicked(e:MouseEvent):void {
        // check's, if the flv has already begun
        // to download. if so, resume playback, else
        // load the file
        if(!bolLoaded) {
            nsStream.play(strSource);
            bolLoaded = true;
        else{
            nsStream.resume();
        vidDisplay.visible = true;
        // switch play/pause visibility
        mcVideoControls.btnPause.visible    = true;
        mcVideoControls.btnPlay.visible        = false;
    function pauseClicked(e:MouseEvent):void {
        // pause video
        nsStream.pause();
        // switch play/pause visibility
        mcVideoControls.btnPause.visible    = false;
        mcVideoControls.btnPlay.visible        = true;
    function stopClicked(e:MouseEvent):void {
        // calls stop function
        stopVideoPlayer();
    function muteClicked(e:MouseEvent):void {
        // set volume to 0
        setVolume(0);
        // update scrubber and fill position/width
        mcVideoControls.mcVolumeScrubber.x                = 318;
        mcVideoControls.mcVolumeFill.mcFillRed.width    = 1;
    function unmuteClicked(e:MouseEvent):void {
        // set volume to last used value or DEFAULT_VOLUME if last volume is zero
        var tmpVolume:Number = intLastVolume == 0 ? DEFAULT_VOLUME : intLastVolume
        setVolume(tmpVolume);
        // update scrubber and fill position/width
        mcVideoControls.mcVolumeScrubber.x = (53 * tmpVolume) + 318;
        mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
    function volumeScrubberClicked(e:MouseEvent):void {
        // set volume scrub flag to true
        bolVolumeScrub = true;
        // start drag
        mcVideoControls.mcVolumeScrubber.startDrag(true, new Rectangle(318, 19, 53, 0)); // NOW TRUE
    function progressScrubberClicked(e:MouseEvent):void {
        // set progress scrub flag to true
        bolProgressScrub = true;
        // start drag
        mcVideoControls.mcProgressScrubber.startDrag(true, new Rectangle(0, 2, 432, 0)); // NOW TRUE
    function mouseReleased(e:MouseEvent):void {
        // set progress/volume scrub to false
        bolVolumeScrub        = false;
        bolProgressScrub    = false;
        // stop all dragging actions
        mcVideoControls.mcProgressScrubber.stopDrag();
        mcVideoControls.mcVolumeScrubber.stopDrag();
        // update progress/volume fill
        mcVideoControls.mcProgressFill.mcFillRed.width    = mcVideoControls.mcProgressScrubber.x + 5;
        mcVideoControls.mcVolumeFill.mcFillRed.width    = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
        // save the volume if it's greater than zero
        if((mcVideoControls.mcVolumeScrubber.x - 318) / 53 > 0)
            intLastVolume = (mcVideoControls.mcVolumeScrubber.x - 318) / 53;
    function updateDisplay(e:TimerEvent):void {
        // checks, if user is scrubbing. if so, seek in the video
        // if not, just update the position of the scrubber according
        // to the current time
        if(bolProgressScrub)
            nsStream.seek(Math.round(mcVideoControls.mcProgressScrubber.x * objInfo.duration / 432))
        else
            mcVideoControls.mcProgressScrubber.x = nsStream.time * 432 / objInfo.duration;
        // set time and duration label
        mcVideoControls.lblTimeDuration.htmlText        = "<font color='#ffffff'>" + formatTime(nsStream.time) + "</font> / " + formatTime(objInfo.duration);
        // update the width from the progress bar. the grey one displays
        // the loading progress
        mcVideoControls.mcProgressFill.mcFillRed.width    = mcVideoControls.mcProgressScrubber.x + 5;
        mcVideoControls.mcProgressFill.mcFillGrey.width    = nsStream.bytesLoaded * 438 / nsStream.bytesTotal;
        // update volume and the red fill width when user is scrubbing
        if(bolVolumeScrub) {
            setVolume((mcVideoControls.mcVolumeScrubber.x - 318) / 53);
            mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
        // chech if user is currently hovering over description label
        if(bolDescriptionHover) {
            // check in which direction we're currently moving
            if(bolDescriptionHoverForward) {
                // move to the left and check if we've shown everthing
                mcVideoControls.mcVideoDescription.lblDescription.x -= 0.1;
                if(mcVideoControls.mcVideoDescription.lblDescription.textWidth - 133 <= Math.abs(mcVideoControls.mcVideoDescription.lblDescription.x))
                    bolDescriptionHoverForward = false;
            } else {
                // move to the right and check if we're back to normal
                mcVideoControls.mcVideoDescription.lblDescription.x += 0.1;
                if(mcVideoControls.mcVideoDescription.lblDescription.x >= 0)
                    bolDescriptionHoverForward = true;
        } else {
            // reset label position and direction variable
            mcVideoControls.mcVideoDescription.lblDescription.x = 0;
            bolDescriptionHoverForward = true;
    function onMetaData(info:Object):void {
        // stores meta data in a object
        objInfo = info;
        // now we can start the timer because
        // we have all the neccesary data
        if(!tmrDisplay.running)
            tmrDisplay.start();
    function netStatusHandler(event:NetStatusEvent):void {
        // handles net status events
        switch (event.info.code) {
            // trace a messeage when the stream is not found
            case "NetStream.Play.StreamNotFound":
                trace("Stream not found: " + strSource);
            break;
            // when the video reaches its end, we check if there are
            // more video left or stop the player
            case "NetStream.Play.Stop":
                if(intActiveVid + 1 < xmlPlaylist..vid.length())
                    playNext();
                else
                    stopVideoPlayer();
            break;
    function stopVideoPlayer():void {
        // pause netstream, set time position to zero
        nsStream.pause();
        nsStream.seek(0);
        // in order to clear the display, we need to
        // set the visibility to false since the clear
        // function has a bug
        vidDisplay.visible                    = false;
        // switch play/pause button visibility
        mcVideoControls.btnPause.visible    = false;
        mcVideoControls.btnPlay.visible        = true;
    function setVolume(intVolume:Number = 0):void {
        // create soundtransform object with the volume from
        // the parameter
        var sndTransform        = new SoundTransform(intVolume);
        // assign object to netstream sound transform object
        nsStream.soundTransform    = sndTransform;
        // hides/shows mute and unmute button according to the
        // volume
        if(intVolume > 0) {
            mcVideoControls.btnMute.visible        = true;
            mcVideoControls.btnUnmute.visible    = false;
        } else {
            mcVideoControls.btnMute.visible        = false;
            mcVideoControls.btnUnmute.visible    = true;
        // store the volume in the flash cookie
        shoVideoPlayerSettings.data.playerVolume = intVolume;
        shoVideoPlayerSettings.flush();
    function formatTime(t:int):String {
        // returns the minutes and seconds with leading zeros
        // for example: 70 returns 01:10
        var s:int = Math.round(t);
        var m:int = 0;
        if (s > 0) {
            while (s > 59) {
                m++; s -= 60;
            return String((m < 10 ? "0" : "") + m + ":" + (s < 10 ? "0" : "") + s);
        } else {
            return "00:00";
    function fullscreenOnClicked(e:MouseEvent):void {
        // go to fullscreen mode
        stage.displayState = StageDisplayState.FULL_SCREEN;
    function fullscreenOffClicked(e:MouseEvent):void {
        // go to back to normal mode
        stage.displayState = StageDisplayState.NORMAL;
    function onFullscreen(e:FullScreenEvent):void {
        // check if we're entering or leaving fullscreen mode
        if (e.fullScreen) {
            // switch fullscreen buttons
            mcVideoControls.btnFullscreenOn.visible = false;
            mcVideoControls.btnFullscreenOff.visible = true;
            // bottom center align controls
            mcVideoControls.x = (Capabilities.screenResolutionX - 440) / 2;
            mcVideoControls.y = (Capabilities.screenResolutionY - 33);
            // size up video display
            vidDisplay.height     = (Capabilities.screenResolutionY - 33);
            vidDisplay.width     = vidDisplay.height * 4 / 3;
            vidDisplay.x        = (Capabilities.screenResolutionX - vidDisplay.width) / 2;
        } else {
            // switch fullscreen buttons
            mcVideoControls.btnFullscreenOn.visible = true;
            mcVideoControls.btnFullscreenOff.visible = false;
            // reset controls position
            mcVideoControls.x = 0;
            mcVideoControls.y = 330;
            // reset video display
            vidDisplay.y = 0;
            vidDisplay.x = 0;
            vidDisplay.width = 440;
            vidDisplay.height = 241;
    function playlistLoaded(e:Event):void {
        // create new xml with loaded data from loader
        xmlPlaylist = new XML(urlLoader.data);
        // set source of the first video but don't play it
        playVid(0, true)
        // show controls
        mcVideoControls.visible = true;
    function playVid(intVid:int = 0, bolPlay = true):void {
        if(bolPlay) {
            // stop timer
            tmrDisplay.stop();
            // play requested video
            nsStream.play(String(xmlPlaylist..vid[intVid].@src));
            // switch button visibility
            mcVideoControls.btnPause.visible    = true;
            mcVideoControls.btnPlay.visible        = false;
        } else {
            strSource = xmlPlaylist..vid[intVid].@src;
        // show video display
        vidDisplay.visible                    = true;
        // reset description label position and assign new description
        mcVideoControls.mcVideoDescription.lblDescription.x = 0;
        mcVideoControls.mcVideoDescription.lblDescription.htmlText = (intVid + 1) + ". <font color='#ffffff'>" + String(xmlPlaylist..vid[intVid].@desc) + "</font>";
        // update active video number
        intActiveVid = intVid;
    function playNext(e:MouseEvent = null):void {
        // check if there are video left to play and play them
        if(intActiveVid + 1 < xmlPlaylist..vid.length())
            playVid(intActiveVid + 1);
    function playPrevious(e:MouseEvent = null):void {
        // check if we're not and the beginning of the playlist and go back
        if(intActiveVid - 1 >= 0)
            playVid(intActiveVid - 1);
    function startDescriptionScroll(e:MouseEvent):void {
        // check if description label is too long and we need to enable scrolling
        if(mcVideoControls.mcVideoDescription.lblDescription.textWidth > 138)
            bolDescriptionHover = true;
    function stopDescriptionScroll(e:MouseEvent):void {
        // disable scrolling
        bolDescriptionHover = false;
    // ############# INIT PLAYER
    initVideoPlayer();

    No,im not using flvplayback component (i think).
    Heres the video player that i'm using:
    http://www.thetechlabs.com/tutorials/xml/expanding-the-as3-videoplayer/

  • Why do some YouTube videos stop playing after a short time?

    Since sometime in October, 2013, I have noticed that more and more YouTube videos stop playing within a minute of starting. Most that stop do so in 15 or 16 seconds. The playing stops because the download stops. I watch this on a network activity monitor I always have running. Not all videos do this, but the problem is becoming more and more frequent. Some videos which played correctly for me in the recent past are now exhibiting this problem.
    Other than installing the latest Firefox updates I have NOT changed the software on my machine. I run Linux by the way. I do not think this is a Linux problem because (1) it was all working before and (2) my son who runs both Mac OS X *and* Windows is also seeing the same problem. We both use Firefox as our browser on all our platforms.
    I should also note that I am NOT seeing this problem with any of the other video websites I use, only when I go to YouTube. That leads me to believe that the problem is not in Firefox; if it were it should affect videos from all websites.
    Additionally the problem occurs whether or not I log into YouTube.
    I have not run Firefox in safe mode because all the extensions I use did not affect the download of Videos before, so I don't expect unchanged extensions to suddenly start causing problems.
    So, anyone else see this problem? (There was another note which talked about the same problem but it was disabled.)
    Also -- pardon my paranoia, but -- I need to ask: Since YouTube is owned by Google and Google has its own browser it wants you to use, Chrome, is it possible that Google is intentionally causing some YouTube videos to fail if it sees that they are being sent to Firefox?
    (That is not so outlandish I think. Microsoft WAS at one point caught mangling web pages going to certain web browsers other than IE. And these days Google wants to dominate the Internet just as badly as Microsoft does, so why not pull dirty tricks too?)
    If this keeps happening I am going to have to try Google's Chrome to see if it somehow manages to play YouTube videos correctly while Firefox does not. But I really do NOT want to install Chrome because I trust Google about as much as I trust Microsoft, which is to say Not At All.
    Thanks in advance.

    Hello,
    There have been some issues with Flash 11 in the recent past. This could be a manifestation of that issue. Kindly check this response below to see if this helps you in viewing Flash videos.
    Also, if you want to check if this is a flash problem and specifically on youtube, you can try the HTML5 version of Youtube. In this, there are no plugins involved, and the browser natively renders the videos. You can signup for the HTML5 trial by visiting http://youtube.com/html5. Please try that and check if the issue goes away.
    Also, in this case, Google might not be doing anything sinister - they generally try to be standards compliant too. You can definitely try installing Google Chrome and test this issue, but we definitely would want you to continue to be a Firefox user :)
    <hr>
    Some problems with Flash video playback can be resolved by disabling hardware acceleration in your Flash Player settings. (See [[Flash Plugin - Keep it up to date and troubleshoot problems|this article]] for more information on using the Flash plugin in Firefox).
    To disable hardware acceleration in Flash Player:
    #Go to this [http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues Adobe Flash Player Help page].
    #Right-click on the Flash Player logo on that page.
    #Click on '''Settings''' in the context menu. The Adobe Flash Player Settings screen will open.
    # Click on the icon at the bottom-left of the Adobe Flash Player Settings window to open the Display panel. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Remove the check mark from '''Enable hardware acceleration'''.
    # Click '''Close''' to close the Adobe Flash Player Settings Window.
    # Restart Firefox.
    This [http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Flash Player Help - Display Settings page] has more information on Flash Player hardware acceleration, if you're interested.
    <hr>
    Also, try this one too
    Recent crashes of certain multimedia contents (this includes Youtube videos, certain flash games and other applications) in conjunction with Firefox are most probably caused by a recent Flash update and/or a malfunctioning browser plugin such as Real Player.
    In order to remedy the problem, please perform the steps mentioned in these Knowledge Base articles:
    * [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    * [[Flash 11.3 crashes]]
    * [[Flash 11.3 doesn't load video in Firefox]]
    Other, more technical information about these issues can be found under these Links:
    * http://forums.adobe.com/thread/1018071?tstart=0
    * http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
    Please tell us if this helped!

  • Embedding video in PDF issues

    I have been trying to get videos to play in an interactive PDF exported from InDesign CS6 and CS5 to no avail. I have no problem doing this from CS3 with the old single export dialogue. With CS6 and CS5 I just get a charcoal gray box. I am trying to get it to play on page load with no controller. Even if I set it to have a controller I get no playback. If I don’t set it to play on page load it actually shows my poster and tells me to “click to activate” but upon clicking it goes to the charcoal box.
    I have tried converting to different file types and codecs but nothing works. I have tried the original .mov, .mp4 rendered with H.264, F4V rendered with H.264, FLV rendered as On2 VP6. Nothing.
    While I can do this on CS3 I shouldn’t have to. This should be pretty standard stuff. I am trying to figure out the proper system for everyone in the office to be able to embed video in presentations while working on CS6. These are intended for overhead projections. Any advise would be appreciated.

    Well, I think I can narrow this to codec and file type. I have been working with videos given to me by my department and using Adobe Media Encoder to try variations. I finally tried a separate .mov video that I had kicking around on my personal server and it worked fine immediately.
    My video is .mov with codecs MPEG-4 Video, Linear PCM. InDesign did give me the warning about it not being compatable with Flash. It can't give me a preview and it can't grab a poster image form the frames. It plays fine in Acrobat though. It is a small video: 6MB and at 480x480.
    The .mov that I was given by the department is 1024x768 AAC, H.264. and 44.2MB. InDesign gives me no warning on this one and it can even grab a poster image from the frames but in Acrobat I get nothing. Same goes for all the variations I have made in Encoder.
    So it seems it may be a file size, type, or codec issue. I do need to figure it out so I can recommend render settings to the team.

Maybe you are looking for

  • Problem with SealedObject.

    Im tryng to pass an encrypted object from servlet to applet, so im using SealedObjects to do it. But when i pass my object Boleto i got a java.lang.ClassNotFoundException. I tryng to pass the next object: class Boleto implements Serializable{ String

  • Aii properties not updated

    Hi I gave com.sap.aii.ib.client.login.languagesproperties in administration--> exchange profile but it is not getting updated, would you please tell me the reason why it is not updated.

  • SCRIPT PC editor

    in scripts : when i wrie a stmt in editor, eg: /: IF <> OR <> /: OR <>          ( IF STMT EXTENDING TO NEXT LINE, WHAT IS COMMAND IS IT /: OR SPACE OR =) HELP ME OUT PLS

  • Why won't JavaFX programs run?

    I'm running Ubuntu 10.04 and firefox. If I go to http://javafx.com/samples/ and try to launch one of the samples I get redirected to a page that says I need a newer version of java. If I run java -version from the command line I get: java version "1.

  • Special prices leading to rounding on lines of sales documents

    Hi i have a user who is using special prices against items to store custom prices for their customers.  They are settting a default sell price on the items under special prices as opposed to a % discount as these are fixed prices that they have agree