Determine Which Video is Playing in iAd Producer

Hi,
Can someone help me how to check what video is playing on my iAd creative? I'm working on a multi video creative banner and I would like to call an analytics code depending on which video is playing. I have a carousel object that controls which video to play. The thing is, the analytic tracking should be called when the video reaches 25%, 50% and 75% of its duration.
I'm finding ways to execute this through the CODE WINDOW and not within the Inspector or Action Lists panels.
Thanks!
Mark

The code window is where you would hook in your own calls. Otherwise, you could check the boxes in the Analytics window for the default events.  Be sure that you've discussed getting this type of reporting with whomever is running your ad since video quartiles may not be part of the standard reporting roll-up.
-Mark

Similar Messages

  • Custom Video Timer event in iAd Producer

    Hi,
    We would like to know if iAd Producer automatically tracks how long a certain video plays when the creative has been served. If not, is it possible to create custom video timer  in iAd Producer?
    Thanks!

    Malonicus answered your question in the other thread you created:
    Determine Which Video is Playing in iAd Producer

  • Exporting Video for iAd Producer

    I was wondering what to use to export video for use in iAd Producer. I have quicktime 7 and also premiere pro. I am trying to go by the specs that I get in iad blue prints, but I can't seem to find the correct way to make it work.
    TIA!

    The spec document attached to any downloaded iAd Blureprint project contains the requirements for video you'll include in iAd Producer projects.  The settings you'll use to export to these requirements will vary based on the tools you're using but knowing the specs is the hard part.
    Cheers,
    -Mark

  • Editing video file in Quicktime Pro and producing a file which doesn't play

    Hi all,
    I have been editing some mp4 video in Quicktime Pro by setting the in and out position markers and cutting out segments (commercials). I save the file and end up with a .mov file which plays fine in the Quicktime player. (The file is a self-contained Quicktime movie.) At some point in the future, though, when I go to open the file in the Quicktime Player, only the audio plays. The video does not play, and the file opens as if it contained no video. That is, the Quicktime Player only shows the audio controls, and there's no area for video.
    The same file plays fine in a Finder window when using CoverFlow/QuickView mode, which is very strange to me since I assume that uses the same Quicktime engine. It also plays fine in VLC.
    Any ideas? It seems like there's some attribute on the file which is telling the Quicktime Player not to play the video, only play the audio.
    Thanks in advance,
    Russ

    Any ideas?
    First thing I would do when the file opens as an audio only files is check the "Properties" window to see what it says on a track by track basis. I also might try re-compressing the edited file to see if this prevents whatever is going on.

  • Is it possible to transfer Full-HD videos (from a Full-HD camcorder) from iMovie 11 to compressor 4 and create there a AVCHD DVD which can be played in HD quality at a PS/3?

    Is it possible to transfer Full-HD videos (from a Full-HD camcorder) from iMovie 11 to compressor 4 and create there a AVCHD DVD which can be played in HD quality at a PS/3?

    Yes.
    In iMovie use SHARE/Export Movie.
    http://help.apple.com/imovie/#mov3a9e5615
    Choose 1920x1080 (or size of your choice.
    Give it a name and location.
    You can drag this file into Compressor.
    In Compressor, use "Create BluRay Disk"
    That should work fine.
    There is another alternative, where you could skip the DVD and Compressor.
    Just SHARE/EXPORT USING QUICKTIME
    Choose Movie to MP4
    In Options, choose h.264 as the Codec.
    Choose a bit rate of 16000 or less.
    Create the movie.
    You can then put it on a USB thumb drive and play it on the PS3.

  • Aperture - when you have saved a multi-media slideshow and you export it how do you make sure the audio track retains the volume drops that you programme in? I have video clips with audio, which when they play in the slideshow, I fade the audio (music)?

    Aperture - Sorry I'm new to this so this might be a bit long! I put together an aperture slideshow with a backing music track and some video interspersed with photos. When I exported it to put on you tube the audio backing track had not saved the fades that I had programmed when the video clips played. The video clips had audio on them that I set at one volume whilst fading the backing track. these fades didn't save on the exported version. Any suggestions please? Regards, Maxjackpete

    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )

  • Can iTunes show you which video content will play on your mobile device before you sync?

    I believe a previous version on iTunes had this functionality.  Now you have to go through the entire sync process before you know the video can not play on your device.  Also, can you batch convert all your videos to play on a cross platform of devices, e.g. iPod, iPhone, Apple TV 2, iPad?
    Message was edited by: sch6031

    Don't know if this will help, but you might want to check your mp4 files against this :-
    iPad Supported Video Formats & Movie Formats
        •    H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
        •    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
        •    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

  • How to quickly identify which videos have H.264 codec?

    I'm now starting to convert my 500-some videos to H.264 for use with iTunes and Apple TV. The first thing I'd like to do is identify which videos are already encoded with the H.264 codec and which aren't. The Finder in Leopard has an option for searching for codecs, but it doesn't search for H.264 (it will only show whether a file is MPEG-4, for example. I could open the iTunes information window for every video and determine the codec that way, but it would take a long time to do so.
    What I'm looking for is some kind of software that will produce an immediate list showing which files have the H.264 codec and which don't. After separating the files I will do a batch encode of the non-H.264 files.
    I'd appreciate any advice you might have with this!

    You simply can't address it (fully).
    Quicktime has tons of Gamma issues and if a pc's video card is set to 16-235 instead of full range then VLC will washout video as well.
    What I "THINK" Jim is trying to say is that when you use a broadcast grade monitor to check color or a YC-waveform/VectorScope or any scopes for that matter you can make sure that everything is accurate (meaning within correct range color wise). Which means that when people expose your video to other factors such as ... Quicktime which messes up the Gamma of the video often times, and VLC which in some cases with people who don't set their PC's/Mac's video cards up correctly or someone using WMP. Or simply someone watching it on a TV set which is not anywhere close to being calibrated it will still come out looking good anyways in MOST scenarios. IF you check everything on scopes/professional broadcast monitors.
    So for instance I work in a TV station and everything I do has to be broadcast legal.So we use scopes and a pro monitor at our edit bay so that we can see how stuff actually looks. Then when someone watches it OTA or on Cable or w/e and they have their TV setup with a ton of extra chroma (color) then in this case for example since I setup my color correctly to begin with it won't look over saturated. Also if someone has a bunch of brightness on their set it won't look bad either. (Unless the TV set is just totally screwed up in which case you can't fix it or plan for that anyways)
    But to attempt to answer your question directly. No it won't make it look the same on every player it will simply be much more likely to make it look much more acceptable.
    (you can't control everything variable wise)
    http://wiki.videolan.org/VSG:Video:Color_nVidia
    http://community.avid.com/forums/p/101346/583706.aspx
    Obviously though I can't speak for Jim I'm just assuming that's what he meant when he spoke about why you need a pro monitor etc... If I'm incorrect I apologize Jim

  • Cannot get video to play on iphone, please help

    Am using Dreamweaver to edit HTML5...
    Have created two separate webpages for a client.  Can get video to play on one page but not the other.  Am stumped.
    code that pertains to the video for the site that will not play on iPhone
    <div id=Video1>
        <video controls width=448>
                <source src="excel_Construction_Commercial.ogg" type="video/ogg" />
                <source src="excel_Construction_Commercial.mp4" type="video/mp4" /> 
                <source src="excel_Construction_Commercial.m4v" type="video/m4v" />
                <source src="excel_Construction_commercial.h.264" type="video/h.264" />
                <embed src="excel_Construction_Commercial.flv" type="application/x-shockwave-flash" width="448" HEIGHt="249" allowscriptaccess="always" allowfullscreeen="true"></embed>
        </video>
        </div>
          <DIV Id="VideoPlayer">
            <video controls width="448"> 
                <source src="Foundation_Repair.ogg" type="video/ogg" />
    <source src="Foundation_Repair.mp4" type="video/mp4" /> 
                <source src="Foundation_Repair.m4v" type="video/m4v" />
              <embed src="Foundation_Repair.flv" type="application/x-shockwave-flash" width=448 height="249" allowscriptaccess="always" allowfullscreeen="true"></embed>
            </video>
            </div>
    Code the pertains to the site which will play video on iPhone
        <DIv id="videoPlayerBottom" StYLE="margin-top:20px;"><Div Id="rightColumnHeader"></dIV>
    <vIDEo controls WiDtH="448">
        <sourCE src="Remodeling.ogg" TYpE="video/ogg" />
        <sOurCe src="Remodeling.mp4" tYPe=video/mp4 /> 
        <sOuRce srC="Remodeling.m4v" Type=video/m4v />
    <emBED SRc=Remodeling.flv type=application/x-shockwave-flash wIDth="448" HeIGHT=249 alloWScRIPTACCESs="always" aLLOwfUllSCREeN=true></EmbEd>
        </dIV>
      </DIV>
    All the video is properly formatted.
    You can see each webpage by these two links.
    http://www.ftworthfoundation.com/index2.html   (video works on browsers but not iPhone)
    http://www.ftworthremodel.com/index2.html (Video works in browsers and iPHone)
    Any help is appreciated.
    Thanks.

    You're not doing what I told you to do in the last topic regarding this subject. I said to use a server side script to determine if iPhone then h.264 else .flv video. Also I told you that iPhone will not display the QTVR tours. Anyway, regarding your current setup: you already know why the 360 tour doesn't display on the iPhone. There's not a video file located at the referenced URL. http://www.ftworthfoundation.com/excel_Construction_Commercial.m4v
    I haven't looked much at the code other than checking the referenced files since it wasn't my previous recommendation. Perhaps if you fixed the referenced file it may work. Worth a try.
    Also... you have bad code on your site (for lack of a better term). Mixed cases in tags, etc. Check your HTML at http://validator.w3.org and fix any validation errors that you may have and I recommend maintaining lowercase in your html. For example: instead of <a hREF=" use <a href="

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

  • Audio from inserted video keeps playing on next slide

    Hello,
    I'm experimenting with Adobe Presenter 6. I have inserted a
    video clip into a slide. There is a stop action on frame1 with a
    button that advances to frame2. The video has audio, which
    unfortunately keeps playing if I advance to the next slide. If I go
    once slide further ahead, the audio from the video stops. Has
    anyone else encountered this problem? It's driving me crazy!
    Thanks!

    Hi Doc!
    I actually ran into the same situation...not with a video
    clip, but with a basic flash animation that had audio in it. I'm
    not suggesting that the following will definitely work for you, but
    it might be worth taking a look at:
    Any audio that's set to "Event" while editing in Flash will
    continue to "stream" , even while navigating between slides. In
    most cases that I've seen (from my experience), audio will stop if
    the offending slide is placed immediately before a question slide.
    I realize that might not be practical in every case, so....
    1. Make sure that audio sync settings in flash are set to
    "Stream". What this does is effectively kill off any audio once you
    navigate away from the slide that has the embedded flash on it.
    2. you can always add a stopAllSounds(); method in flash, but
    that's not highly recommended
    UNLESS your content slide (with the offending flash object )
    comes immediately before, or within a range of question slides.
    Again, this too might not be entirely practical based on what
    you're trying to do.
    I realize that might not help, but as I said, it might be
    worth taking a look at how you're incorporating your video.
    Rob

  • Which Video Card??

    I am sure this has been asked many times, but I could not find previous discussions regarding my question:
    I will be ordering a new iMac soon. I plan on purchasing the 2.93 or 3.06 - leaning towards the 3.06 just to get the most I can afford. 1 TB HD. 4 GB RAM (moving to 8 GB when I can afford).
    Here is my question:
    What video card to choose: the NVIDIA GeForce GT 130 512MB OR the ATI Radeon HD 4850 512MB
    I mainly do:
    photo editing using PhotoShop CS4, Lightroom, Aperture, Bridge.
    HD video editing: Final Cut Express (moving to Studio soon), and I might eventually try 3D editing.
    I rarely game, but might more in the future.
    Thanks in advance for any advice, recommendations, etc!!
    And if you need more info to determine which card would fit my needs better, let me know!
    rob

    Look at the data.
    http://www.MarketingTactics.com/Speedmark/
    See Barefeats.com
    http://www.barefeats.com/imac09.html
    http://www.barefeats.com/imac09b.html
    http://www.barefeats.com/imac09c.html
    http://www.barefeats.com/imac09d.html

Maybe you are looking for

  • How do i transfer notes from one account to another

    I have NOTES composed in my "On My iPhone".  Since I've bought an iPad, I want to copy the notes on my iPhone from "On My iPhone" to my "iCloud" account.  How do I do that?  Or, can I?

  • IPhone 5 and voice memos

    I moved my iTunes library over to another hard drive, and had to resync my playlists.  My voice memos are now all on my computer and showing up in iTunes but they're not on my iPhone 5.  I'm running Windows and iTunes 11 (latest version).  I keep che

  • Transfer data between systems realtime

    Dear All, I have the following issue: In System1 we create Purchase Order (PO) and in System2 a Sales Order (SO) reference to that PO. The line item in the PO in System1 have Profit Center PC1 assigned. In System2 the SO has PC2 assigned to line item

  • Problem in TreeView

    Hi, Iam new to Indesign, and working on TreeView Control. I have understood the working and the flow of function calls in PanelTreeView sample(within heirarchy adapter/WidgetMgr/Datamodel cpps). Iam making a TreeView which is  different from PanelTre

  • Quicktime will not open on my Windows XP Profesional laptop

    Everytime I try to launch Quicktime I get this error: Quicktime has encountered an error and needs to close I have de-installed and re-installed Quicktime 7 at least three times and I keep getting the same error message. Someone please help