Skip to content

How to play next video

I create list of URL video streams.

If video ending, then create new object VLCMedia.

This object set for player.

Next call play.

Sometimes it happens that the application crashes.

Please, what's the right way to switch another movie?

var media = VLCMedia(url:link)
self.player.pause()
self.player.media = media
self.player.play()
Edited by Alanko
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information