Monday, 25 June 2018

Ionic Video Mute Attribute Ignored

I am having a weird issue where the mute tag on a video element is being ignored.

   <video #media playsinline webkit-playsinline loop muted
   [src]="video_url"
   class="videoPlayer"
   preload="metadata"
   type="video/mp4">
   </video>

The muted or muted="true" is being overlooked and the video continues to be played with sound.

I understand that you can mute videos through java-script and while that works, iOS will not allow the video to be auto played until the video is clicked first.

Is there any reason I would be seeing this behavior with the HTML part of the video?

Thanks,

Troy



from Ionic Video Mute Attribute Ignored

No comments:

Post a Comment