KomodioPlayerView

struct KomodioPlayerView : View

SwiftUI View for a video player (shared)

Currently, Komodio is using the AVPlayer from the SwiftlyKodiAPI package

It can only play ‘Apple Approved’ formats, so no MKV‘s

It is my intension to replace this sooner or later, but for now, it is as it is.

It will give a warning if it can’t play the file

Body of the View

  • The body of the View

    Declaration

    Swift

    var body: some View { get }
  • checkMedia() Asynchronous

    Check if we can play the media

    Declaration

    Swift

    func checkMedia() async -> ViewStatus

    Return Value

    The status

Komodio Player Cant Play

  • SwiftUI View for message that we can’t play a video

    See more

    Declaration

    Swift

    struct CantPlay : View
  • Check if we can play a video or not

    Declaration

    Swift

    static func canPlay(video: any KodiItem) -> Bool

    Parameters

    video

    The video item

    Return Value

    True or False