cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Auto play a video on experience start

jmikesell
15-Moonstone

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 1

Try using the following in your JS function:

 

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

 

 

Top Tags