Auto play a video on experience start
Jan 31, 2018
09:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 31, 2018
09:42 AM
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;
Labels:
- Labels:
-
Coding
1 REPLY 1
Feb 26, 2018
05:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 26, 2018
05:31 PM
Try using the following in your JS function:
document.querySelectorAll('video')[0].play();
