如何在 watchOS 2 中循环播放视频?

How to loop video in watchOS 2?

如何循环播放 watchOS 2 视频,让它一直循环播放?

我现在只有播放一次的视频。我应该添加什么代码来改变它?

您可以通过将 setLoops 设置为 YES/true 来循环 WKInterfaceMovie

Sets a Boolean value indicating whether the movie plays in a continuous loop. Specify YES to play the movie in a continuous loop or NO to play the movie once and then stop playback.

Swift示例代码:

@IBOutlet weak var moviePlayer: WKInterfaceMovie!
...
moviePlayer.setLoops(true)