Skip to content

Commit

Permalink
fix #602
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Nov 5, 2023
1 parent 5890f64 commit c5e4dbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Demo/SwiftUI/Shared/MovieModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ import KSPlayer
import UIKit
#endif
class MEOptions: KSOptions {
#if os(iOS)
static var isUseDisplayLayer = true
#else
static var isUseDisplayLayer = false
#endif
static var yadifMode = 1
override init() {
super.init()
Expand Down
4 changes: 4 additions & 0 deletions Sources/KSPlayer/AVPlayer/KSOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ open class KSOptions {
}

open func isUseDisplayLayer() -> Bool {
#if os(iOS)
display == .plane
#else
false
#endif
}

open func io(log: String) {
Expand Down

0 comments on commit c5e4dbf

Please sign in to comment.