Bugfix 10102112050:
Fixed timeline and timestamp freeze
This commit is contained in:
@@ -715,14 +715,15 @@ def playmusic(url, name, author):
|
|||||||
elif platform.system() == "Darwin": # for MacOS
|
elif platform.system() == "Darwin": # for MacOS
|
||||||
mediaplayer.set_nsobject(int(ui.videoframe.winId()))
|
mediaplayer.set_nsobject(int(ui.videoframe.winId()))
|
||||||
|
|
||||||
if mediaplayer.is_playing():
|
playpause()
|
||||||
mediaplayer.pause()
|
ui.timer.stop()
|
||||||
is_paused = True
|
time.sleep(1)
|
||||||
ui.timer.stop()
|
if int(mediaplayer.get_length()/60000) <= 3:
|
||||||
|
timeToSleepForUnbug = 0
|
||||||
else:
|
else:
|
||||||
mediaplayer.play()
|
timeToSleepForUnbug = (mediaplayer.get_length()/60000)/2.6
|
||||||
ui.timer.start(100)
|
time.sleep(timeToSleepForUnbug)
|
||||||
is_paused = False
|
ui.timer.start(100)
|
||||||
|
|
||||||
mediaplayer.audio_set_volume(100)
|
mediaplayer.audio_set_volume(100)
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
|||||||
Reference in New Issue
Block a user