KodiPlayerView

public struct KodiPlayerView : View

SwiftUI View with a player to stream a KodiItem (SwiftlyKodi Type)

  • It is using the Apple AVplayer so it only supports Apple Approved formats.
  • If your media is on a harddisk and it’s sleeping; the media wil sometimes not start because of a timeout. Try again and it will work.
  • Init the View: we don’t get it for free

    Declaration

    Swift

    public init(video: any KodiItem, resume: Bool = false)

    Parameters

    video

    The KodiItem to play

    resume

    Bool if the item must be resumed or not

  • The body of the View

    Declaration

    Swift

    public var body: some View { get }