Skip to main content
1-Visitor
Jan 31, 2018 2:42 PM UTC
Question

Auto play a video on experience start

I'm trying to get a video to play automatically when the experience first loads. Why does the following line in Home.js not work?

$scope.app.view['Home'].wdg['video-1'].srv.play;

1 reply

12-Amethyst
Feb 26, 2018 10:31 PM UTC

Try using the following in your JS function:

 

  document.querySelectorAll('video')[0].play();

 

 

Translate