|
|
@@ -1,6 +1,7 @@
|
|
|
import TitleBar from './TitleBar'
|
|
|
import { curves, display, PiPWindow, promptAction, router, SymbolGlyphModifier, window } from '@kit.ArkUI';
|
|
|
import { VideoItem } from '../viewmodel/VideoItem';
|
|
|
+import { stringForTime } from '../common/util/CommUtils';
|
|
|
import { LengthMetrics, SegmentButton,borderRadiuses, SegmentButtonOptions } from '@kit.ArkUI';
|
|
|
import {
|
|
|
AppUtil,
|
|
|
@@ -10721,8 +10722,8 @@ export struct LocalMusic {
|
|
|
onClickBItem: async ()=>{
|
|
|
if(this.mIjkMediaPlayer){
|
|
|
this.jumpBTime = await this.mIjkMediaPlayer.getCurrentPosition()
|
|
|
- if(this.jumpBTime<=this.jumpATime){
|
|
|
- ToastUtil.showToast('设置B点时间不能小于A点时间')
|
|
|
+ if(this.jumpBTime<=this.jumpATime||stringForTime(this.jumpATime)==stringForTime(this.jumpBTime)){
|
|
|
+ ToastUtil.showToast('设置B点时间不能小于或等于A点时间')
|
|
|
this.jumpBTime = 0
|
|
|
}
|
|
|
}
|