Update player.js

This commit is contained in:
138138138 2021-02-03 11:50:14 +08:00 committed by GitHub
parent a6970e02f9
commit ddd7f3f384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -549,8 +549,8 @@ if (player.share) {
} }
// Safari audio double duration fix // Safari audio double duration fix
player.on('loadedmetadata', function () {
if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) { if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) {
player.on('loadedmetadata', function () {
player.on('timeupdate', function () { player.on('timeupdate', function () {
if (player.remainingTime() < player.duration() / 2) { if (player.remainingTime() < player.duration() / 2) {
player.currentTime(player.duration() + 1); player.currentTime(player.duration() + 1);