SwiftUI VideoPlayer (Video Controls) in iOS14

Regarding the new SwiftUI VideoPlayer in iOS14, I have the following questions, pls help me:
  1. How can I change the play speed rate?

  2. How to pause/stop the video?

  3. How to listenson the event when finishing playing the video, and fire an action once the video playing is finished?

  4. How to get the more information about such new VideoPlayer control -- so far the infomation on the web is very limited.

Thanks in advance.
For 1, 2 & 3, you should control and listen to the AVPlayer instance in VideoPlayer's initializer.

For 1 & 2, you should set the rate of AVPlayer.
For 3, you should observe the AVPlayerItemDidPlayToEndTime notification of the AVPlayerItem which is the AVPlayer's currentItem.

Which WWDC session was VideoPlayer announced?

SwiftUI VideoPlayer (Video Controls) in iOS14
 
 
Q