Skip to main content
1-Visitor
January 31, 2018
Question

Auto play a video on experience start

  • January 31, 2018
  • 1 reply
  • 1580 views

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
February 26, 2018

Try using the following in your JS function:

 

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