forked from shadowfacts/Tusker
parent
47b9ac890a
commit
870d0c8404
|
@ -106,6 +106,9 @@ class VideoOverlayViewController: UIViewController {
|
||||||
if player.rate > 0 {
|
if player.rate > 0 {
|
||||||
player.rate = 0
|
player.rate = 0
|
||||||
} else {
|
} else {
|
||||||
|
if player.currentTime() >= player.currentItem!.duration {
|
||||||
|
player.seek(to: .zero)
|
||||||
|
}
|
||||||
#if os(visionOS)
|
#if os(visionOS)
|
||||||
player.play()
|
player.play()
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue