Using the standard ac_quicktime.js as shown below - how does one get the video to auto play and then also keep looping:

<script language="JavaScript" src="ac_quicktime.js" type="text/JavaScript"></script>

    function jumpToTime(timeInSecs) {
        try {
            var vid = document.getElementById("iaatt_video");
            if (vid && ('VIDEO' == vid.tagName) && vid.currentTime) {
                // video tag, use it
                vid.currentTime = timeInSecs;

            // browser apparently doesn't support video, look for embed then for an object
            vid = document.getElementById("iaatt_embed");
            if (!vid)
                vid = document.getElementById("iaatt_obj");
            if (vid && vid.GetTimeScale) {
                // time in QuickTime is in timescale units per second, convert from param in seconds
                var timeScale = vid.GetTimeScale();
                vid.SetTime(timeInSecs * timeScale);
        catch (e) { }

<video id="iaatt_video" controls>
<source src="MVI_7051.mp4" type="video/mp4">
 '320em', '256em', // width & height
 '', // required version of the ActiveX control, we're OK with the default value
 'scale', 'tofit', // scale to fit element size exactly so resizing works
 'emb#id', 'iaatt_embed',    // ID for embed tag only
 'obj#id', 'iaatt_obj');     // ID for object tag only
4 Months
Discussion Span
Last Post by rproffitt

Please add what browser this is. On iOS devices, this will not work and never will. Why has been explained many times.

Without the full context, I would be guessing what you are trying to do this on.


Many thanks - yes I realize that any iOS based device that due to security items that the video won't autoplay or loop and that clicking the play button is required.

For desktop based users though - it would be good to have the video autoplay and loop. I'm using IE 11 and have Google Chrome version 57.0 and they both don't appear to recognize when I call these 'autoplay', 'true', 'loop', 'true' in the QT_WriteOBJECT as such:

QT_WriteOBJECT('MVI_7051.mp4', '320em', '256em', // width & height 
'', // required version of the ActiveX control, we're OK with the default value
'autoplay', 'true', 'loop', 'true' , //set autoplay and loop
'scale', 'tofit', // scale to fit element size exactly so resizing works 
'emb#id', 'iaatt_embed',    // ID for embed tag only 

'obj#id', 'iaatt_obj');     // ID for object tag only

Edited by koneill: typo

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.