我需要循环播放视频。视频结束时如何获得回调。我需要循环播放,直到用户跟踪该视频
private func addVideoNode(bundleFileName: String, forTrackableImage imageTrackable: ARImageTrackable?){
// Initialise video node
let videoNode = ARVideoNode(bundledFile: bundleFileName)
// Add video node to image trackable
imageTrackable?.world.addChild(videoNode)
// Video scale
let scale = Float(imageTrackable?.width ?? 0) / Float(videoNode?.videoTexture.width ?? 0)
videoNode?.scale(byUniform: scale)
videoNode?.visible = false
videoNode?.play()
}