vizorvr / patches

Patches is a visual programming editor for building WebVR and WebGL experiences.
http://patches.vizor.io
MIT License
200 stars 44 forks source link

graphAnalyzer: refine stat.hasVideo #2066

Open esaruoho opened 6 years ago

esaruoho commented 6 years ago

originally posted by @gmarinov

since iOS10, silent videos are allowed to autoplay

graphAnalyser.js:

if (videoPlugins.indexOf(id) > -1) {
  stat.hasAudio = true
  stat.hasVideo = true
}

... marks all experiences using video with .hasAudio=true regardless of whether the video actually has sound. It would be beneficial to check the video asset(s) in question.

more information: https://webkit.org/blog/6784/new-video-policies-for-ios/