Automatically starting media

 

On Mobile Devices

By default, browsers on mobile devices play media only when the media is initiated by a user gesture, such as a finger tap on a button. Additionally, if the action is delayed for more than one second, the media will not play, even if it is initiated by a user gesture.

Lectora provides several methods of initiating media play without a user gesture. Therefore, to achieve the desired effect on mobile devices, the following circumstances require special handling:

You can have up to 25 of these cases per page on a mobile device. However, if you have a page with more than 25 total audio and video objects that require special handling, one or more of them may not play as desired. When the title is published, you will see the following warning message:

     W4060 - You have more than 25 audio / video objects that require special handling for mobile devices. Some of them may not work properly. See the Help for details.

To ensure all of your media are played on mobile devices, confirm that Publish for Seamless Play is enabled when specifying HTML options during publishing and that there are no more than 25 total audio and video objects on a single page (including inherited objects) that require special handling as identified above. For details about specifying HTML options, see Specifying HTML options.

 

On Desktop Computers

Most modern browsers now prevent autoplay of media until the student has interacted with some element of the course. In these cases, when an autostart condition is detected in the title then an initial page will be displayed to the user prompting them to click to begin the course. Autostart for media objects will then function correctly for the remaining pages in the title.

 

Lectora will display an initial page when an autostart condition is detected on both mobile browsers and desktop browsers. This screen will ask the user to "Tap / click here to begin the course." and thereafter autoplay will work on mobile devices. The text of this initial page can be customized as part of the Publish Strings set, and has the key value of AutoStart. For more information about Publish Strings, see Specifying publish messages preferences.

Knowledge Base | Training | Support
© Copyright eLearning Brothers 2021