Use BroadSignPlay() for Audio/Video in HTML5 Templates

BroadSignPlay()

To ensure that any animation in your templates starts during playback, and not during pre-buffering, Broadsign Publish automatically adds the BroadSignPlay() feature. However, if you plan on using several audio or video files to create animations, we suggest that you add to your template a function to call BroadSignPlay() with your audio or video files.

  • If you are using audio files, you must call BroadSignPlay() for the [data-publish-id="music"] identifier of the field.
  • If you are using video files, you must call BroadSignPlay() for the [data-publish-id="video"] identifier of the field.

The following is an example JavaScript with both calls added:

Copy
function BroadSignPlay() {
    // other functionalities you want to trigger on page ready
    document.querySelector('[data-publish-id="music"]').play();
    document.querySelector('[data-publish-id="video"]').play();
}

For more information, see BroadSignPlay() in the Broadsign Control documentation.