fregante / iphone-inline-video

📱 Make videos playable inline on the iPhone (prevents automatic fullscreen)
https://npm.im/iphone-inline-video
MIT License
2.05k stars 300 forks source link

video.pause is not a function. in Chrome device Mode with iPhone simulations only. (React) #142

Closed ray-su closed 5 years ago

ray-su commented 5 years ago

I'm using it with React. It works perfectly on iPhone and other devices. However, while I'm testing my site using Chrome's device mode with iphone simulations, I get this error Uncaught TypeError: video.pause is not a function at enableInlineVideo (iphone-inline-video.es-modules.js:341)

I'm on Chrome Version 69.0.3497.100

fregante commented 5 years ago

Read the comment in the console. Chrome emulation is not supported.