Captivate responsive courses will not auto-play on browsers

May 3, 2018
Staff 68 posts
Followers: 46 people
17

Captivate responsive courses will not auto-play on browsers

Staff 68 posts
Followers: 46 people
May 3, 2018

Due to some recent browser updates, all modern web browsers have discontinued auto-playing media in web pages. Similarly, HTML5 and responsive courses created in Captivate will not auto-play. Autoplaying is not honored even after enabling the option Auto Play in Preferences > Project > Start and End.

While SWF videos will continue to auto-play, HTML5 and other responsive courses will not auto-play.

Even though auto-playing of media was not possible in devices, now the same behavior is extended to desktop browsers.

We recommend that you leave the Auto Play option disabled, since it does not get honored.

Comments (17)
2019-01-10 16:22:10
2019-01-10 16:22:10

I don’t understand this issue either. Simply adding cp.movie.play(); to the HTML file as indicated above totally resolves the issue. This is not a matter of browsers not allowing auto-play. I am using the latest version of Chrome, the latest version of Safari and the latest version of Firefox and with that simple code snippet, all of my media auto-plays. It’s concerning that Adobe is blaming someone else for a decision they made to adjust their code. This is not a browser issue.

To fix this Permanently with all html5 output files…

Navigate into your Adobe Captivate install folder.
Find and open the index.html file with a text editor like notepad.
Find the line of text (line 87 if you’re using an HTML editor) that reads: cpInit();
add a line after that line of code and type in cp.movie.play();

Note: If your initial slide has background music, there may be issues with it playing. If so, don’t worry. You can remove the line of code from your published file while leaving it intact in the template which will publish it for other projects.

Like
(2)
>
MICHAEL WILDAY
's comment
2019-04-01 23:33:44
2019-04-01 23:33:44
>
MICHAEL WILDAY
's comment

Adding that code did compromise the audio in my file. I added a blank slide in front with no audio but that didn’t help either. The scorm now starts playing but i can’t hear the audio. I couldn’t understand how to work around this. You said to delete the code from the published index file and I did but it didn’t work. Any ideas? Thanks!

Like
>
MICHAEL WILDAY
's comment
2019-04-01 23:37:01
2019-04-01 23:37:01
>
MICHAEL WILDAY
's comment

I added the code to the index file in the install folder and you’re right, it worked but now i can’t hear the audio. To work around this, I added a blank slide with no audio in front but that didn’t work either. You said to delete the code from the published index file and i did but no luck. How can I get may audio back and also auto start the scorm?

Like
2018-11-15 18:50:32
2018-11-15 18:50:32

I’d venture to guess that the vast majority of content produced using Adobe Captivate is meant to be played in an LMS. Thus, the content has been interacted with several times to get to the point of launching a Captivate title. It seems silly to make this change to go along with browsers, presumably doing something similar in order to stop annoying, loud ads from playing upon page load. Please consider changing it back so the Developer at least has control over this. My clients will not accept an extra click once they’ve already launched a course in the LMS, so I am stuck doing after-publish hacks until this change back is made, or I can revert back to previous version of Captivate which robs me of new features. This is not a customer-friendly approach.

Like
2018-10-23 12:41:37
2018-10-23 12:41:37

Hi!

After publishing, look for file named index.html and in “function initializeCP” function there will be cpInit();, add an additional function to be something like these:

cp.DoCPInit();
var lCpExit = window[“DoCPExit”];
window[“DoCPExit”] = function()
{
if(cp.UnloadActivties)
cp.UnloadActivties();
lCpExit();
};

if( window.CPYTAPINeeded )
{
var tag = document.createElement(‘script’);
tag.src = “https://www.youtube.com/iframe_api”;
document.getElementsByTagName(‘head’)[0].appendChild(tag);
}
}

cpInit();
cp.movie.play(); (add this line)

initialized = true;
if(isLivePreview() === true)
{
cp.previewFolder = window.location.href.split(“\/”)[4];
setInterval(isLivePreviewDirty, 1000);
}
}

Like
2018-09-04 22:21:12
2018-09-04 22:21:12

This is stupid, I can play any course published prior to Captivate 2019 and have no problem with it. This is NOT a browser issue.

Like
(1)
2018-06-15 08:33:36
2018-06-15 08:33:36

In earlir times there were “hacks”, means: In the exported html5 code users have changed some code and have overridden the play button. Has anyone an idea how to do this now, on captivate 2017 exports?

Like
2018-06-14 22:04:54
2018-06-14 22:04:54

As far as I can tell, this is an issue that only occurs when Captivate is used as the authoring tool. HTML5 outputs still autoplay in Chrome when published using Storyline 3. We currently use both Captivate and Storyline and I’m only getting the autoplay issue when publishing with Captivate so as far as I can see, it’ s not Chrome’s fault but Adobe’s.

Like
(2)
2018-06-14 15:05:01
2018-06-14 15:05:01

Thanks for this! I just republished a course that was autoplaying before yesterday, and now I have to click play. I thought it was a problem with my course…glad to know it’s just the “new standard!”

Like
2018-05-07 13:12:29
2018-05-07 13:12:29

This will be problematic for end user experience. I can see support help desk tickets submitted because course will not autoplay and users will self identify as a streaming issue. I hope there will be some options for the start of the course because the only thing end user will see is a fairly non-descript page with a white playback arrow.

Like
(3)
>
Yopro
's comment
2018-05-07 13:18:22
2018-05-07 13:18:22
>
Yopro
's comment

Extremely valid point Lawrence.
In the last few years, auto-playing of videos led to sub-optimal
and intrusive user experience. That is why Chrome and Safari browsers have disabled this option. Unless there is a strong use case of auto-playing, Google and Apple will not reverse their decision.

Like
(1)
>
Yopro
's comment
2018-05-07 13:20:19
2018-05-07 13:20:19
>
Yopro
's comment

Lawrence,
Lieve has written about it. Please read https://elearning.adobe.com/2018/03/get-rid-white-start-screen-black-button-html-output/
Thanks,
Saurav

Like
>
Saurav Ghosh
's comment
2018-05-07 13:35:53
2018-05-07 13:35:53
>
Saurav Ghosh
's comment

Thank you, I will share with our team. We had a team member that let us know about the issue after using the latest Captivate release. The insertion of the poster image should smooth out the experience. Thank you for the link.

Like
2018-05-07 01:18:27
2018-05-07 01:18:27

I’m new to this, so bear with me. Does this mean it won’t work when implemented in an LMS, because the LMS is browser-based? Just checking.

Like
(3)
>
CKinsey
's comment
2018-05-07 09:22:07
2018-05-07 09:22:07
>
CKinsey
's comment

It is so. Auto-play will not happen on any browser.

Like
(1)
>
Saurav Ghosh
's comment
2018-05-07 13:28:26
2018-05-07 13:28:26
>
Saurav Ghosh
's comment

Thank you. I’m fine with that, I just wanted to make sure I understood.

Like
>
CKinsey
's comment
2018-05-07 13:29:13
2018-05-07 13:29:13
>
CKinsey
's comment

Thank you. I’m fine with that, I just wanted to make sure I understood.

Like
Add your comment