forked from kingslay/KSPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 65bdd9b
Showing
1,012 changed files
with
205,873 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
/.build | ||
/Packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 格式化规则 | ||
--enable trailingClosures | ||
--ifdef noindent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/Carthage | ||
Cartfile.resolved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git "http://git.code.oa.com/kintanwang/KSPlayer.git" "develop" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//: A UIKit based Playground for presenting user interface | ||
|
||
import KSPlayer | ||
import PlaygroundSupport | ||
import UIKit | ||
class ViewController: UIViewController { | ||
var player = VideoPlayerController() | ||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
view.addSubview(player.view) | ||
player.view.translatesAutoresizingMaskIntoConstraints = false | ||
NSLayoutConstraint.activate([ | ||
player.view.topAnchor.constraint(equalTo: view.readableContentGuide.topAnchor), | ||
player.view.leftAnchor.constraint(equalTo: view.leftAnchor), | ||
player.view.rightAnchor.constraint(equalTo: view.rightAnchor), | ||
player.view.bottomAnchor.constraint(equalTo: view.bottomAnchor), | ||
]) | ||
view.layoutIfNeeded() | ||
var url = URL(string: "http://wvideo./spriteapp.cn/video/2016/0328/56f8ec01d9bfe_wpd.mp4")! | ||
url = URL(fileURLWithPath: Bundle.main.path(forResource: "567082ac3ae39699f68de4fd2b7444b1e045515a", ofType: "MP4")!) | ||
player.set(url: url) | ||
player.play() | ||
} | ||
} | ||
|
||
// Present the view controller in the Live View window | ||
PlaygroundPage.current.liveView = ViewController() | ||
|
||
// let url = URL(fileURLWithPath: Bundle.main.path(forResource: "567082ac3ae39699f68de4fd2b7444b1e045515a", ofType: "MP4")!) | ||
// let playerLayer = KSPlayerLayer() | ||
// playerLayer.set(url: url, options: nil) | ||
// playerLayer.play() | ||
// playerLayer.frame = UIScreen.main.bounds | ||
// PlaygroundPage.current.liveView = playerLayer |
Binary file added
BIN
+12.4 MB
Demo/MyPlayground.playground/Resources/567082ac3ae39699f68de4fd2b7444b1e045515a.MP4
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<playground version='5.0' target-platform='ios' executeOnSourceChanges='false'> | ||
<timeline fileName='timeline.xctimeline'/> | ||
</playground> |
4 changes: 4 additions & 0 deletions
4
Demo/MyPlayground.playground/playground.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Demo/MyPlayground.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use_frameworks! | ||
workspace 'Demo.xcworkspace' | ||
def common | ||
pod 'KSPlayer', :path => '../', :testspecs => ['Tests'] | ||
pod 'Openssl', :path => '../' | ||
pod 'SwiftLint' | ||
end | ||
target 'demo-iOS' do | ||
project 'demo-iOS/demo-iOS.xcodeproj' | ||
platform :ios,9.0 | ||
common | ||
end | ||
#target 'demo-iOSTests' do | ||
# project 'demo-iOS/demo-iOS.xcodeproj' | ||
# platform :ios,9.0 | ||
# common | ||
#end | ||
target 'demo-tvOS' do | ||
project 'demo-tvOS/demo-tvOS.xcodeproj' | ||
platform :tvos,10.2 | ||
common | ||
end | ||
target 'demo-macOS' do | ||
project 'demo-macOS/demo-macOS.xcodeproj' | ||
platform :osx,10.11 | ||
common | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
PODS: | ||
- KSPlayer (1.0): | ||
- KSPlayer/Audio (= 1.0) | ||
- KSPlayer/AVPlayer (= 1.0) | ||
- KSPlayer/Basic (= 1.0) | ||
- KSPlayer/Core (= 1.0) | ||
- KSPlayer/FFmpeg (= 1.0) | ||
- KSPlayer/MEPlayer (= 1.0) | ||
- KSPlayer/Metal (= 1.0) | ||
- KSPlayer/Panorama (= 1.0) | ||
- KSPlayer/Resources (= 1.0) | ||
- KSPlayer/Subtitle (= 1.0) | ||
- KSPlayer/SubtitleCore (= 1.0) | ||
- KSPlayer/UXKit (= 1.0) | ||
- KSPlayer/Video (= 1.0) | ||
- KSPlayer/VRPlayer (= 1.0) | ||
- KSPlayer/Audio (1.0): | ||
- KSPlayer/Core | ||
- KSPlayer/SubtitleCore | ||
- KSPlayer/AVPlayer (1.0): | ||
- KSPlayer/Basic | ||
- KSPlayer/Basic (1.0): | ||
- KSPlayer/UXKit | ||
- KSPlayer/Core (1.0): | ||
- KSPlayer/AVPlayer | ||
- KSPlayer/Resources | ||
- KSPlayer/FFmpeg (1.0) | ||
- KSPlayer/MEPlayer (1.0): | ||
- KSPlayer/AVPlayer | ||
- KSPlayer/FFmpeg | ||
- KSPlayer/Metal | ||
- KSPlayer/SubtitleCore | ||
- KSPlayer/Metal (1.0) | ||
- KSPlayer/Panorama (1.0): | ||
- KSPlayer/Basic | ||
- KSPlayer/Metal | ||
- KSPlayer/Resources (1.0) | ||
- KSPlayer/Subtitle (1.0): | ||
- KSPlayer/Basic | ||
- KSPlayer/Resources | ||
- KSPlayer/SubtitleCore | ||
- KSPlayer/SubtitleCore (1.0) | ||
- KSPlayer/Tests (1.0) | ||
- KSPlayer/UXKit (1.0) | ||
- KSPlayer/Video (1.0): | ||
- KSPlayer/Core | ||
- KSPlayer/Subtitle | ||
- KSPlayer/VRPlayer (1.0): | ||
- KSPlayer/MEPlayer | ||
- KSPlayer/Panorama | ||
- Openssl (1.1.1): | ||
- Openssl/Openssl (= 1.1.1) | ||
- Openssl/Openssl (1.1.1) | ||
- SwiftLint (0.31.0) | ||
|
||
DEPENDENCIES: | ||
- KSPlayer (from `../`) | ||
- KSPlayer/Tests (from `../`) | ||
- Openssl (from `../`) | ||
- SwiftLint | ||
|
||
SPEC REPOS: | ||
https://github.com/cocoapods/specs.git: | ||
- SwiftLint | ||
|
||
EXTERNAL SOURCES: | ||
KSPlayer: | ||
:path: "../" | ||
Openssl: | ||
:path: "../" | ||
|
||
SPEC CHECKSUMS: | ||
KSPlayer: a4d1eb41af17fa7dabf9b214c4e3be6e73658560 | ||
Openssl: fe2d63d6036e5c9bafd1eb3331db9bbb0e12ace1 | ||
SwiftLint: 7a0227733d786395817373b2d0ca799fd0093ff3 | ||
|
||
PODFILE CHECKSUM: 31a697bed2b20f47ccb6bf6031f1baa1d43d1618 | ||
|
||
COCOAPODS: 1.6.1 |
Oops, something went wrong.