Closed porter707 closed 5 months ago
Hi,
I'm not sure what I'm missing. When trying to use the KSVideoPlayerView the view opens and then instantly closes.
I have these messages in the log:
warning KSPlayer: KSMEPlayer.swift:375 prepareToPlay() | prepareToPlay <KSPlayer.KSMEPlayer: 0x2836fec40> warning KSPlayer: KSMEPlayer.swift:390 pause() | pause <KSPlayer.KSMEPlayer: 0x2836fec40> warning KSPlayer: KSPlayerLayer.swift:141 state | playerStateDidChange - paused [MRNowPlaying] Ignoring setPlaybackState because application does not contain entitlement com.apple.mediaremote.set-playback-state for platform
I'm using the following code:
struct PlayerView: View { var streamURL: URL let options = KSOptions() init(streamURL: URL) { self.streamURL = streamURL options.isAutoPlay = true options.videoAdaptable = true } var body: some View { ZStack { KSVideoPlayerView(url: streamURL, options: options) } } }
I also have the following set:
KSOptions.logLevel = .debug KSOptions.firstPlayerType = KSMEPlayer.self KSOptions.secondPlayerType = KSMEPlayer.self
The stream I'm trying to play does work in the example SwiftUI demo.
Hi,
I'm not sure what I'm missing. When trying to use the KSVideoPlayerView the view opens and then instantly closes.
I have these messages in the log:
I'm using the following code:
I also have the following set:
The stream I'm trying to play does work in the example SwiftUI demo.