Skip to content

Commit 4200901

Browse files
committed
rtsp support
1 parent be27013 commit 4200901

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed
3.7 MB
Binary file not shown.
9.49 MB
Binary file not shown.
2 Bytes
Binary file not shown.

ijkplayer-Swift/ijkplayer-Swift/Demo/IJKDemoInputURLViewController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import UIKit
1111
class IJKDemoInputURLViewController: UIViewController, UITextViewDelegate {
1212
let rtmp = "rtmp://live.hkstv.hk.lxdns.com/live/hks"
1313
let m3u8 = "https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8"
14+
let rtsp = "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov"
1415

1516
@IBOutlet weak var textView: UITextView!
1617
override func viewDidLoad() {
@@ -24,13 +25,13 @@ class IJKDemoInputURLViewController: UIViewController, UITextViewDelegate {
2425
override func viewDidAppear(_ animated: Bool) {
2526
super.viewDidAppear(animated)
2627

27-
textView.text = m3u8
28+
textView.text = rtsp
2829
}
2930

3031
@objc func onClickPlayButton() {
3132
let url = URL(string: textView.text)
3233
let scheme: String? = url?.scheme?.lowercased()
33-
if (scheme == "http") || (scheme == "https") || (scheme == "rtmp") {
34+
if (scheme == "http") || (scheme == "https") || (scheme == "rtmp") || (scheme == "rtsp") {
3435
IJKPlayerViewController.present(from: self, withTitle: "URL: \(String(describing: url))", url: url!, completion: {() -> Void in
3536
self.navigationController?.popViewController(animated: false)
3637
})

ijkplayer.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ijkplayer"
3-
s.version = "1.1.3"
3+
s.version = "1.1.4"
44
s.summary = "ijkplayer framework."
55

66
s.description = <<-DESC
@@ -21,7 +21,7 @@ bilibili/ijkplayer k0.8.8 IJKMediaFramework 上传到 cococapods
2121

2222
s.platform = :ios, "7.0"
2323

24-
s.source = { :http => "https://raw.githubusercontent.com/iOSDevLog/ijkplayer/master/IJKMediaFramework.framework.zip" }
24+
s.source = { :http => "https://raw.githubusercontent.com/iOSDevLog/ijkplayer/master/IJKMediaFrameworkWithSSL.framework.zip" }
2525
# s.source = { :http => "https://github.com/iOSDevLog/ijkplayer/releases/download/#{s.version}/IJKMediaFramework.framework.zip" }
2626

2727
s.vendored_frameworks = 'IJKMediaFrameworkWithSSL.framework'

0 commit comments

Comments
 (0)