diff --git a/.DS_Store b/.DS_Store index cec7489..6bc50ef 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Example/SNAVPlayerSubtitles/SubtitleWithAVPlayerViewController.swift b/Example/SNAVPlayerSubtitles/SubtitleWithAVPlayerViewController.swift index 9550bf6..59a20cd 100644 --- a/Example/SNAVPlayerSubtitles/SubtitleWithAVPlayerViewController.swift +++ b/Example/SNAVPlayerSubtitles/SubtitleWithAVPlayerViewController.swift @@ -46,7 +46,7 @@ class SubtitleWithAVPlayerViewController: UIViewController, AVPlayerViewControll func initiatePlayerViewController() { // MARK: - Enter media url here here - guard let url = URL(string: "http://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/.m3u8") else { + guard let url = URL(string: "https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/master.m3u8") else { return } diff --git a/RefFiles/.DS_Store b/RefFiles/.DS_Store new file mode 100644 index 0000000..a5a8c37 Binary files /dev/null and b/RefFiles/.DS_Store differ diff --git a/RefFiles/Screenshot1.png b/RefFiles/Screenshot1.png new file mode 100644 index 0000000..2346380 Binary files /dev/null and b/RefFiles/Screenshot1.png differ diff --git a/RefFiles/Screenshot2.png b/RefFiles/Screenshot2.png new file mode 100644 index 0000000..269a2af Binary files /dev/null and b/RefFiles/Screenshot2.png differ diff --git a/play.png b/RefFiles/play.png similarity index 100% rename from play.png rename to RefFiles/play.png diff --git a/SNAVPlayerSubtitles/Classes/SNAVPlayerSubtitles.swift b/SNAVPlayerSubtitles/Classes/SNAVPlayerSubtitles.swift index 007467f..cfd0128 100644 --- a/SNAVPlayerSubtitles/Classes/SNAVPlayerSubtitles.swift +++ b/SNAVPlayerSubtitles/Classes/SNAVPlayerSubtitles.swift @@ -347,7 +347,7 @@ public extension AVPlayerViewController { // Label subtitleLabel = UILabel() subtitleLabel?.translatesAutoresizingMaskIntoConstraints = false - subtitleLabel?.backgroundColor = UIColor.clear + subtitleLabel?.backgroundColor = UIColor.black.withAlphaComponent(CGFloat(0.6)) subtitleLabel?.textAlignment = .center subtitleLabel?.numberOfLines = 0 subtitleLabel?.font = UIFont.boldSystemFont(ofSize: UI_USER_INTERFACE_IDIOM() == .pad ? 40.0 : 22.0) @@ -360,6 +360,8 @@ public extension AVPlayerViewController { subtitleLabel?.layer.shouldRasterize = true; subtitleLabel?.layer.rasterizationScale = UIScreen.main.scale subtitleLabel?.lineBreakMode = .byWordWrapping + subtitleLabel?.layer.cornerRadius = 8 + subtitleLabel?.clipsToBounds = true contentOverlayView?.addSubview(subtitleLabel!) // Position