互动视频播放器

视频自动播放

处理play()是个异步方法的问题

1
2
3
4
5
6
7
8
9
Sentry报错
1.
Chrome
Error: AbortError: The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22
2.
Safari
Error: AbortError: The operation was aborted.
AbortError: The operation was aborted.

解决方案:就是把play()按照API说明当成异步的去用即可

Sentry Errors