| Applies to: | |
| Product | General |
| Platform | Android |
function onPageLoad()
{
loadVideo();
loadAudio();
}
function loadVideo()
{
document.getElementById("sampleVideo").src = "./surefox.mp4";
document.getElementById("sampleVideo").load();
startPlayingvideo();
}
function loadAudio()
{
document.getElementById("sampleAudio").src = "./surefox.mp3";
document.getElementById("sampleAudio").load();
startPlayingaudio();
}
function startPlayingaudio()
{
//Keep looping the same audio
setTimeout(function() { document.getElementById("sampleAudio").play(); },100);
}
function startPlayingvideo()
{
//Keep looping the same Video
setTimeout(function() { document.getElementById("sampleVideo").play(); },100);
}
Note