Skip to content

Commit

Permalink
remove backgroundColor
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Nov 24, 2023
1 parent 154f828 commit c970ea4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion FFmpegKit
4 changes: 2 additions & 2 deletions Sources/KSPlayer/AVPlayer/KSOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ open class KSOptions {
formatContextOptions["scan_all_pmts"] = 1
formatContextOptions["auto_convert"] = 0
formatContextOptions["fps_probe_size"] = 3
formatContextOptions["protocol_whitelist"] = "file,http,https,tcp,tls,crypto,async,cache"
formatContextOptions["protocol_whitelist"] = "file,http,https,tcp,tls,crypto,async,cache,data,httpproxy"
// formatContextOptions["max_analyze_duration"] = 300 * 1000
formatContextOptions["reconnect"] = 1
// 开启这个,纯ipv6地址会无法播放。
// 开启这个,纯ipv6地址会无法播放。并且有些视频结束了,但还会一直尝试重连。所以这个值默认不设置
// formatContextOptions["reconnect_at_eof"] = 1
formatContextOptions["reconnect_streamed"] = 1
// 开启这个,会导致tcp Failed to resolve hostname 还会一直重试
Expand Down
1 change: 0 additions & 1 deletion Sources/KSPlayer/SwiftUI/KSVideoPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public struct KSVideoPlayerView: View {
}
}
.preferredColorScheme(.dark)
.background(Color.black)
.tint(.white)
.persistentSystemOverlays(.hidden)
.toolbar(playerCoordinator.isMaskShow ? .visible : .hidden, for: .automatic)
Expand Down
1 change: 0 additions & 1 deletion Sources/KSPlayer/Video/VideoPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ open class VideoPlayerView: PlayerView {
// MARK: - setup UI

open func setupUIComponents() {
backgroundColor = .black
addSubview(contentOverlayView)
addSubview(controllerView)
#if os(macOS)
Expand Down

0 comments on commit c970ea4

Please sign in to comment.