|
|
@@ -481,18 +481,22 @@
|
|
|
skip,
|
|
|
position,
|
|
|
pause,
|
|
|
+ msg,
|
|
|
closed
|
|
|
} = res.data
|
|
|
- if (pause || closed) {
|
|
|
- that.playNext()
|
|
|
- return
|
|
|
- }
|
|
|
- if (!skip) {
|
|
|
- let curTimes = parseInt(this.getPlayerTime())
|
|
|
- if (position < curTimes + 5) {
|
|
|
- this.setposition(position)
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+ if(closed){
|
|
|
+ that.$message.errorMsg(msg, 10)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (pause) {
|
|
|
+ that.$message.errorMsg(msg, 10)
|
|
|
+ setTimeout(that.playNext(), 10*1000)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!skip) {
|
|
|
+ this.setposition(position)
|
|
|
+ }
|
|
|
Object.assign(this.media, res.data)
|
|
|
if( res.data.isFinish == 1){
|
|
|
this.playNext()
|