Ask Your Question
1

Why does the SwiftUI VideoPlayer view only play the first frame of the video and then pause?

asked 2023-06-22 00:37:03 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-22 01:02:01 +0000

ladyg gravatar image

This could be due to a few reasons.

Firstly, make sure that the URL for the video file is correct and accessible.

Secondly, ensure that the video file is in a format supported by the VideoPlayer view (e.g. .mp4, .mov).

Thirdly, check that the video file is not corrupt or damaged.

If none of these solutions work, try adding the option .allowsExternalPlayback(true) to the VideoPlayer view, which allows the video to be played in an external player.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-22 00:37:03 +0000

Seen: 11 times

Last updated: Jun 22 '23