@94ai/nf-audio 3.3.66 → 3.3.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/nf-audio.cjs.js
CHANGED
|
@@ -373,7 +373,7 @@ const _sfc_main = {
|
|
|
373
373
|
},
|
|
374
374
|
betweenPlay() {
|
|
375
375
|
if (!this.disabled) {
|
|
376
|
-
if (this.audio.duration === 0) {
|
|
376
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
377
377
|
nfMessage.Message.warning(this.unloadTip);
|
|
378
378
|
this.paused = true;
|
|
379
379
|
this.betweenPlaying = false;
|
|
@@ -391,8 +391,10 @@ const _sfc_main = {
|
|
|
391
391
|
//点击进度条更新进度
|
|
392
392
|
clickProgress(e) {
|
|
393
393
|
if (!this.disabled) {
|
|
394
|
-
if (this.audio.duration === 0) {
|
|
395
|
-
|
|
394
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
395
|
+
if (!this.paused) {
|
|
396
|
+
nfMessage.Message.warning(this.unloadTip);
|
|
397
|
+
}
|
|
396
398
|
this.paused = true;
|
|
397
399
|
this.betweenPlaying = false;
|
|
398
400
|
return false;
|
|
@@ -411,7 +413,7 @@ const _sfc_main = {
|
|
|
411
413
|
//鼠标弹起
|
|
412
414
|
handleMouseup() {
|
|
413
415
|
if (!this.disabled) {
|
|
414
|
-
if (this.audio.duration === 0) {
|
|
416
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
415
417
|
nfMessage.Message.warning(this.unloadTip);
|
|
416
418
|
this.paused = true;
|
|
417
419
|
this.betweenPlaying = false;
|
|
@@ -473,7 +475,7 @@ const _sfc_main = {
|
|
|
473
475
|
jumpToTime(time) {
|
|
474
476
|
if (!this.disabled) {
|
|
475
477
|
this.pauseAudio();
|
|
476
|
-
if (this.audio.duration === 0) {
|
|
478
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
477
479
|
nfMessage.Message.warning(this.unloadTip);
|
|
478
480
|
this.paused = true;
|
|
479
481
|
this.betweenPlaying = false;
|
|
@@ -371,7 +371,7 @@ const _sfc_main = {
|
|
|
371
371
|
},
|
|
372
372
|
betweenPlay() {
|
|
373
373
|
if (!this.disabled) {
|
|
374
|
-
if (this.audio.duration === 0) {
|
|
374
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
375
375
|
Message.warning(this.unloadTip);
|
|
376
376
|
this.paused = true;
|
|
377
377
|
this.betweenPlaying = false;
|
|
@@ -389,8 +389,10 @@ const _sfc_main = {
|
|
|
389
389
|
//点击进度条更新进度
|
|
390
390
|
clickProgress(e) {
|
|
391
391
|
if (!this.disabled) {
|
|
392
|
-
if (this.audio.duration === 0) {
|
|
393
|
-
|
|
392
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
393
|
+
if (!this.paused) {
|
|
394
|
+
Message.warning(this.unloadTip);
|
|
395
|
+
}
|
|
394
396
|
this.paused = true;
|
|
395
397
|
this.betweenPlaying = false;
|
|
396
398
|
return false;
|
|
@@ -409,7 +411,7 @@ const _sfc_main = {
|
|
|
409
411
|
//鼠标弹起
|
|
410
412
|
handleMouseup() {
|
|
411
413
|
if (!this.disabled) {
|
|
412
|
-
if (this.audio.duration === 0) {
|
|
414
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
413
415
|
Message.warning(this.unloadTip);
|
|
414
416
|
this.paused = true;
|
|
415
417
|
this.betweenPlaying = false;
|
|
@@ -471,7 +473,7 @@ const _sfc_main = {
|
|
|
471
473
|
jumpToTime(time) {
|
|
472
474
|
if (!this.disabled) {
|
|
473
475
|
this.pauseAudio();
|
|
474
|
-
if (this.audio.duration === 0) {
|
|
476
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
475
477
|
Message.warning(this.unloadTip);
|
|
476
478
|
this.paused = true;
|
|
477
479
|
this.betweenPlaying = false;
|
package/package/nf-audio.vue
CHANGED
|
@@ -537,7 +537,7 @@ export default {
|
|
|
537
537
|
},
|
|
538
538
|
betweenPlay() {
|
|
539
539
|
if (!this.disabled) {
|
|
540
|
-
if (this.audio.duration === 0) {
|
|
540
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
541
541
|
Message.warning(this.unloadTip)
|
|
542
542
|
this.paused = true
|
|
543
543
|
this.betweenPlaying = false
|
|
@@ -555,8 +555,10 @@ export default {
|
|
|
555
555
|
//点击进度条更新进度
|
|
556
556
|
clickProgress(e) {
|
|
557
557
|
if (!this.disabled) {
|
|
558
|
-
if (this.audio.duration === 0) {
|
|
559
|
-
|
|
558
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
559
|
+
if (!this.paused) {
|
|
560
|
+
Message.warning(this.unloadTip)
|
|
561
|
+
}
|
|
560
562
|
this.paused = true
|
|
561
563
|
this.betweenPlaying = false
|
|
562
564
|
return false
|
|
@@ -578,7 +580,7 @@ export default {
|
|
|
578
580
|
//鼠标弹起
|
|
579
581
|
handleMouseup() {
|
|
580
582
|
if (!this.disabled) {
|
|
581
|
-
if (this.audio.duration === 0) {
|
|
583
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
582
584
|
Message.warning(this.unloadTip)
|
|
583
585
|
this.paused = true
|
|
584
586
|
this.betweenPlaying = false
|
|
@@ -647,7 +649,7 @@ export default {
|
|
|
647
649
|
jumpToTime(time) {
|
|
648
650
|
if (!this.disabled) {
|
|
649
651
|
this.pauseAudio()
|
|
650
|
-
if (this.audio.duration === 0) {
|
|
652
|
+
if (this.audio.duration === 0 || Number.isNaN(this.audio.duration)) {
|
|
651
653
|
Message.warning(this.unloadTip)
|
|
652
654
|
this.paused = true
|
|
653
655
|
this.betweenPlaying = false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-audio",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.67",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "liuxiangxiang <liuxiangxiang@94ai.com>",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-theme-chalk": "^3.3.
|
|
17
|
+
"@94ai/nf-theme-chalk": "^3.3.67",
|
|
18
18
|
"vue-demi": "^0.14.5"
|
|
19
19
|
},
|
|
20
20
|
"peerDependenciesMeta": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"types": "lib/index.d.ts",
|
|
31
31
|
"main": "lib/nf-audio.cjs.js",
|
|
32
32
|
"module": "lib/nf-audio.esm-bundler.js",
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "2c752dc6246ba8252562937829c091ae21cca8f2"
|
|
34
34
|
}
|