]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11282: Remove iOS 'controls' hack, not needed
authorChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 19:06:30 +0000 (14:06 -0500)
committerChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 19:06:30 +0000 (14:06 -0500)
iOS requires a 'playsinline' attribute to be added to video tags, however a
'controls' attribute was erroneously added, and is unneeded.

See https://github.com/webrtc/samples/issues/929#issuecomment-330816567 and
following comments for confirmation.

Removing this attribute reduces UI noise and 'click contention' on video
elements.

html5/verto/js/src/jquery.FSRTC.js

index c2ea803d0bc232478cc884ddf5eb0560a20714ba..9606c4e63898509c3d03c2466e0d477025192954 100644 (file)
 
            if (iOS) {
                self.options.useVideo.setAttribute("playsinline", true);
-               self.options.useVideo.setAttribute("controls", true);
            }
         }