Skip to content

Commit

Permalink
Improve Play_onPlayer
Browse files Browse the repository at this point in the history
Some devices crash after playing ads for unknown reason.
trying to get with player option causes it
related to #277
  • Loading branch information
fgl27 committed Dec 1, 2023
1 parent 34e8390 commit 110427b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/specific/Play.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,17 @@ function Play_onPlayer() {

try {
Play_avplay.stop();
} catch (e) {
console.log('Play_onPlayer stop ' + e);
}

try {
Play_avplay.close();
} catch (e) {
console.log('Play_onPlayer close ' + e);
}

try {
Play_avplay.open(Play_playingUrl);
} catch (e) {
console.log('Play_onPlayer open ' + e);
Expand Down

0 comments on commit 110427b

Please sign in to comment.