Pyckplayer 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyckplayer/__init__.py +6 -0
- pyckplayer/ckplayer/LICENSE +202 -0
- pyckplayer/ckplayer/css/ckplayer.css +1609 -0
- pyckplayer/ckplayer/css/ckplayer.ixigua.css +1707 -0
- pyckplayer/ckplayer/css/ckplayer.red.css +1609 -0
- pyckplayer/ckplayer/css/images/adclose.png +0 -0
- pyckplayer/ckplayer/css/images/buffer.png +0 -0
- pyckplayer/ckplayer/css/images/ckplayer.48.png +0 -0
- pyckplayer/ckplayer/css/images/ckplayer.png +0 -0
- pyckplayer/ckplayer/css/images/ckplayer_ixigua.48.png +0 -0
- pyckplayer/ckplayer/css/images/ckplayer_ixigua.png +0 -0
- pyckplayer/ckplayer/css/images/ckplayer_red.48.png +0 -0
- pyckplayer/ckplayer/css/images/ckplayer_red.png +0 -0
- pyckplayer/ckplayer/css/images/favicon.ico +0 -0
- pyckplayer/ckplayer/css/images/loading.png +0 -0
- pyckplayer/ckplayer/css/images/logo.png +0 -0
- pyckplayer/ckplayer/css/images/play.png +0 -0
- pyckplayer/ckplayer/flv.js/LICENSE +202 -0
- pyckplayer/ckplayer/flv.js/README.md +104 -0
- pyckplayer/ckplayer/flv.js/flv.js +10585 -0
- pyckplayer/ckplayer/flv.js/flv.js.map +1 -0
- pyckplayer/ckplayer/flv.js/flv.min.js +10 -0
- pyckplayer/ckplayer/flv.js/flv.min.js.map +1 -0
- pyckplayer/ckplayer/hls.js/LICENSE +28 -0
- pyckplayer/ckplayer/hls.js/README.md +442 -0
- pyckplayer/ckplayer/hls.js/hls-demo.js +42195 -0
- pyckplayer/ckplayer/hls.js/hls-demo.js.map +1 -0
- pyckplayer/ckplayer/hls.js/hls.js +27804 -0
- pyckplayer/ckplayer/hls.js/hls.js.d.ts +2837 -0
- pyckplayer/ckplayer/hls.js/hls.js.map +1 -0
- pyckplayer/ckplayer/hls.js/hls.light.js +20929 -0
- pyckplayer/ckplayer/hls.js/hls.light.js.map +1 -0
- pyckplayer/ckplayer/hls.js/hls.light.min.js +2 -0
- pyckplayer/ckplayer/hls.js/hls.light.min.js.map +1 -0
- pyckplayer/ckplayer/hls.js/hls.min.js +2 -0
- pyckplayer/ckplayer/hls.js/hls.min.js.map +1 -0
- pyckplayer/ckplayer/js/ckplayer.js +7421 -0
- pyckplayer/ckplayer/js/ckplayer.min.js +7 -0
- pyckplayer/ckplayer/language/en.js +72 -0
- pyckplayer/ckplayer/language/zh.cn.js +72 -0
- pyckplayer/ckplayer/language/zh.hk.js +72 -0
- pyckplayer/ckplayer/mpegts.js/LICENSE +202 -0
- pyckplayer/ckplayer/mpegts.js/mpegts.js +9 -0
- pyckplayer/ckplayer/mpegts.js/mpegts.js.map +1 -0
- pyckplayer/ckplayer/mpegts.js/mpegts.min.js +9 -0
- pyckplayer/cli.py +33 -0
- pyckplayer/core.py +218 -0
- pyckplayer-1.0.0.dist-info/METADATA +114 -0
- pyckplayer-1.0.0.dist-info/RECORD +53 -0
- pyckplayer-1.0.0.dist-info/WHEEL +5 -0
- pyckplayer-1.0.0.dist-info/entry_points.txt +2 -0
- pyckplayer-1.0.0.dist-info/licenses/LICENSE +202 -0
- pyckplayer-1.0.0.dist-info/top_level.txt +1 -0
pyckplayer/core.py
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import subprocess
|
|
3
|
+
import requests
|
|
4
|
+
import json
|
|
5
|
+
import atexit
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from urllib.parse import quote
|
|
8
|
+
from typing import Optional, Tuple, Union
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def find_edge_browser() -> Optional[str]:
|
|
15
|
+
edge_paths = [
|
|
16
|
+
r'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe',
|
|
17
|
+
r'C:\Program Files\Microsoft\Edge\Application\msedge.exe',
|
|
18
|
+
os.path.expanduser(r'~\AppData\Local\Microsoft\Edge\Application\msedge.exe'),
|
|
19
|
+
]
|
|
20
|
+
for path in edge_paths:
|
|
21
|
+
if os.path.exists(path):
|
|
22
|
+
return path
|
|
23
|
+
return None
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def get_screen_size() -> Tuple[int, int]:
|
|
27
|
+
try:
|
|
28
|
+
import tkinter as tk
|
|
29
|
+
root = tk.Tk()
|
|
30
|
+
root.withdraw()
|
|
31
|
+
screen_width = root.winfo_screenwidth()
|
|
32
|
+
screen_height = root.winfo_screenheight()
|
|
33
|
+
root.destroy()
|
|
34
|
+
return screen_width, screen_height
|
|
35
|
+
except Exception as e:
|
|
36
|
+
raise RuntimeError(f"无法自动获取屏幕分辨率,请手动传入 width 和 height。错误信息: {e}")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def calculate_window_size(width: Optional[Union[int, float]] = None,
|
|
40
|
+
height: Optional[Union[int, float]] = None,
|
|
41
|
+
scale: Optional[float] = None) -> Tuple[int, int]:
|
|
42
|
+
screen_width, screen_height = get_screen_size()
|
|
43
|
+
|
|
44
|
+
video_width = width if width is not None else screen_width
|
|
45
|
+
video_height = height if height is not None else screen_height
|
|
46
|
+
|
|
47
|
+
if scale is None:
|
|
48
|
+
scale = 0.5 if video_width >= video_height else 0.9
|
|
49
|
+
|
|
50
|
+
target_width = screen_width * scale
|
|
51
|
+
target_height = screen_height * scale
|
|
52
|
+
|
|
53
|
+
video_ratio = video_width / video_height
|
|
54
|
+
target_ratio = target_width / target_height
|
|
55
|
+
|
|
56
|
+
if video_ratio >= target_ratio:
|
|
57
|
+
final_width = target_width
|
|
58
|
+
final_height = target_width / video_ratio
|
|
59
|
+
else:
|
|
60
|
+
final_height = target_height
|
|
61
|
+
final_width = target_height * video_ratio
|
|
62
|
+
|
|
63
|
+
if video_width >= video_height:
|
|
64
|
+
final_height += 30
|
|
65
|
+
|
|
66
|
+
return int(final_width), int(final_height)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def download_cover(poster_url: Optional[str]) -> Optional[str]:
|
|
70
|
+
if not poster_url:
|
|
71
|
+
return None
|
|
72
|
+
|
|
73
|
+
cover_path = Path(__file__).parent.parent / "cover_image.jpg"
|
|
74
|
+
|
|
75
|
+
try:
|
|
76
|
+
print(f"[*] 正在下载封面图片...")
|
|
77
|
+
response = requests.get(
|
|
78
|
+
poster_url,
|
|
79
|
+
timeout=10,
|
|
80
|
+
headers={"User-Agent": DEFAULT_USER_AGENT}
|
|
81
|
+
)
|
|
82
|
+
response.raise_for_status()
|
|
83
|
+
|
|
84
|
+
with open(cover_path, 'wb') as f:
|
|
85
|
+
f.write(response.content)
|
|
86
|
+
|
|
87
|
+
local_cover_uri = quote(cover_path.absolute().as_posix())
|
|
88
|
+
print(f"[+] 封面图片已保存至: {cover_path.absolute()}")
|
|
89
|
+
return f"file:///{local_cover_uri}"
|
|
90
|
+
|
|
91
|
+
except requests.exceptions.RequestException as e:
|
|
92
|
+
print(f"[-] 封面图片下载失败: {e}")
|
|
93
|
+
return None
|
|
94
|
+
except Exception as e:
|
|
95
|
+
print(f"[-] 下载封面图片时发生异常: {e}")
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def generate_html(video_url: str,
|
|
100
|
+
poster_url: Optional[str] = None,
|
|
101
|
+
title: str = "CKPlayer") -> str:
|
|
102
|
+
script_dir = Path(__file__).parent
|
|
103
|
+
css_path = quote((script_dir / "ckplayer" / "css" / "ckplayer.css").as_posix())
|
|
104
|
+
js_path = quote((script_dir / "ckplayer" / "js" / "ckplayer.js").as_posix())
|
|
105
|
+
favicon_path = quote((script_dir / "ckplayer" / "css" / "images" / "logo.png").as_posix())
|
|
106
|
+
|
|
107
|
+
video_object = {
|
|
108
|
+
"container": "#player",
|
|
109
|
+
"variable": "player",
|
|
110
|
+
"video": video_url,
|
|
111
|
+
"autoplay": False,
|
|
112
|
+
"loop": True,
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if poster_url:
|
|
116
|
+
video_object["poster"] = poster_url
|
|
117
|
+
|
|
118
|
+
video_object_js = json.dumps(video_object)
|
|
119
|
+
|
|
120
|
+
html_content = f"""<!DOCTYPE html>
|
|
121
|
+
<html lang="zh-CN">
|
|
122
|
+
<head>
|
|
123
|
+
<meta charset="UTF-8">
|
|
124
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
125
|
+
<title>{title}</title>
|
|
126
|
+
<link rel="icon" href="file:///{favicon_path}" type="image/png">
|
|
127
|
+
<link rel="shortcut icon" href="file:///{favicon_path}" type="image/png">
|
|
128
|
+
<link rel="stylesheet" href="file:///{css_path}">
|
|
129
|
+
<script src="file:///{js_path}"></script>
|
|
130
|
+
<style>
|
|
131
|
+
body, html {{ margin: 0; padding: 0; background-color: #000; overflow: hidden; }}
|
|
132
|
+
#player {{ width: 100%; height: 100vh; }}
|
|
133
|
+
</style>
|
|
134
|
+
</head>
|
|
135
|
+
<body>
|
|
136
|
+
<div id="player"></div>
|
|
137
|
+
<script>
|
|
138
|
+
var videoObject = {video_object_js};
|
|
139
|
+
new ckplayer(videoObject);
|
|
140
|
+
</script>
|
|
141
|
+
</body>
|
|
142
|
+
</html>"""
|
|
143
|
+
|
|
144
|
+
return html_content
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def cleanup_temp_files(temp_files: list) -> None:
|
|
148
|
+
for file_path in temp_files:
|
|
149
|
+
try:
|
|
150
|
+
if file_path.exists():
|
|
151
|
+
file_path.unlink()
|
|
152
|
+
print(f"[+] 已清理临时文件: {file_path.name}")
|
|
153
|
+
except Exception as e:
|
|
154
|
+
print(f"[-] 清理临时文件 {file_path.name} 失败: {e}")
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def validate_url(url: str) -> bool:
|
|
158
|
+
if not url or not isinstance(url, str):
|
|
159
|
+
return False
|
|
160
|
+
url_stripped = url.strip()
|
|
161
|
+
return url_stripped.startswith("http://") or url_stripped.startswith("https://")
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def play_video(url: str,
|
|
165
|
+
width: Optional[Union[int, float]] = None,
|
|
166
|
+
height: Optional[Union[int, float]] = None,
|
|
167
|
+
poster_url: Optional[str] = None,
|
|
168
|
+
title: str = "CKPlayer",
|
|
169
|
+
use_edge: bool = True) -> bool:
|
|
170
|
+
if not validate_url(url):
|
|
171
|
+
raise ValueError("URL参数无效,必须提供有效的HTTP/HTTPS URL")
|
|
172
|
+
|
|
173
|
+
url = url.strip()
|
|
174
|
+
final_width, final_height = calculate_window_size(width=width, height=height)
|
|
175
|
+
print(f"[*] 计算得到的窗口大小: {final_width}x{final_height}")
|
|
176
|
+
|
|
177
|
+
local_poster_uri = download_cover(poster_url)
|
|
178
|
+
html_content = generate_html(url, poster_url=local_poster_uri, title=title)
|
|
179
|
+
|
|
180
|
+
temp_html_path = Path(__file__).parent.parent / "temp_player.html"
|
|
181
|
+
with open(temp_html_path, "w", encoding="utf-8") as f:
|
|
182
|
+
f.write(html_content)
|
|
183
|
+
print(f"[+] 成功生成播放页面: {temp_html_path.absolute()}")
|
|
184
|
+
|
|
185
|
+
temp_files = [
|
|
186
|
+
temp_html_path,
|
|
187
|
+
Path(__file__).parent.parent / "cover_image.jpg"
|
|
188
|
+
]
|
|
189
|
+
atexit.register(cleanup_temp_files, temp_files)
|
|
190
|
+
|
|
191
|
+
local_url = temp_html_path.absolute().as_uri()
|
|
192
|
+
edge_path = find_edge_browser() if use_edge else None
|
|
193
|
+
|
|
194
|
+
if edge_path:
|
|
195
|
+
print(f"[+] 正在调用 Edge 浏览器 ({final_width}x{final_height})...")
|
|
196
|
+
try:
|
|
197
|
+
subprocess.Popen([
|
|
198
|
+
edge_path,
|
|
199
|
+
"--app=" + local_url,
|
|
200
|
+
"--new-window",
|
|
201
|
+
f"--window-size={final_width},{final_height}",
|
|
202
|
+
"--disable-extensions",
|
|
203
|
+
"--inprivate",
|
|
204
|
+
"--allow-file-access-from-files",
|
|
205
|
+
], creationflags=subprocess.CREATE_NO_WINDOW)
|
|
206
|
+
return True
|
|
207
|
+
except Exception as e:
|
|
208
|
+
print(f"[-] 启动 Edge 浏览器失败: {e}")
|
|
209
|
+
return False
|
|
210
|
+
else:
|
|
211
|
+
print("[-] 未找到 Edge 浏览器,尝试使用系统默认浏览器...")
|
|
212
|
+
import webbrowser
|
|
213
|
+
try:
|
|
214
|
+
webbrowser.open(local_url)
|
|
215
|
+
return True
|
|
216
|
+
except Exception as e:
|
|
217
|
+
print(f"[-] 启动默认浏览器失败: {e}")
|
|
218
|
+
return False
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: Pyckplayer
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: 一个基于CKPlayer的Python视频播放器包装器
|
|
5
|
+
Home-page: https://github.com/yourusername/pyckplayer
|
|
6
|
+
Author: lenvy1
|
|
7
|
+
Author-email: lenvy1@163.com
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: requests>=2.31.0
|
|
22
|
+
Dynamic: author
|
|
23
|
+
Dynamic: author-email
|
|
24
|
+
Dynamic: classifier
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
Dynamic: summary
|
|
32
|
+
|
|
33
|
+
# Pyckplayer
|
|
34
|
+
|
|
35
|
+
一个基于 CKPlayer 的 Python 视频播放器包装器,支持在 Windows 系统上使用 Edge 浏览器或系统默认浏览器播放网络视频。
|
|
36
|
+
|
|
37
|
+
## 功能特点
|
|
38
|
+
|
|
39
|
+
- 🎬 支持多种视频格式:mp4, flv, m3u8, ts 等
|
|
40
|
+
- 📱 支持移动端和 PC 端
|
|
41
|
+
- 🔗 支持点播、直播、直播+回放
|
|
42
|
+
- 🎨 提供封面图支持
|
|
43
|
+
- ⚡ 自动计算窗口大小,保持视频比例
|
|
44
|
+
- 🧹 自动清理临时文件
|
|
45
|
+
|
|
46
|
+
## 安装方法
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install Pyckplayer
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 使用方法
|
|
53
|
+
|
|
54
|
+
### 命令行方式
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# 基本用法
|
|
58
|
+
pyckplayer <视频URL>
|
|
59
|
+
|
|
60
|
+
# 指定视频尺寸
|
|
61
|
+
pyckplayer <视频URL> -w 720 -h 1280
|
|
62
|
+
|
|
63
|
+
# 添加封面图
|
|
64
|
+
pyckplayer <视频URL> -p <封面图URL>
|
|
65
|
+
|
|
66
|
+
# 指定播放器标题
|
|
67
|
+
pyckplayer <视频URL> -t "我的视频"
|
|
68
|
+
|
|
69
|
+
# 使用系统默认浏览器(不使用Edge)
|
|
70
|
+
pyckplayer <视频URL> --no-edge
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Python API
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
from pyckplayer import play_video
|
|
77
|
+
|
|
78
|
+
# 基本用法
|
|
79
|
+
play_video("https://example.com/video.mp4")
|
|
80
|
+
|
|
81
|
+
# 完整参数
|
|
82
|
+
play_video(
|
|
83
|
+
url="https://example.com/video.mp4",
|
|
84
|
+
width=720,
|
|
85
|
+
height=1280,
|
|
86
|
+
poster_url="https://example.com/cover.jpg",
|
|
87
|
+
title="我的视频",
|
|
88
|
+
use_edge=True
|
|
89
|
+
)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## 参数说明
|
|
93
|
+
|
|
94
|
+
| 参数 | 类型 | 说明 |
|
|
95
|
+
|------|------|------|
|
|
96
|
+
| url | str | 视频URL(必需) |
|
|
97
|
+
| width | int/float | 视频宽度(像素) |
|
|
98
|
+
| height | int/float | 视频高度(像素) |
|
|
99
|
+
| poster_url | str | 封面图URL |
|
|
100
|
+
| title | str | 播放器标题,默认为 "CKPlayer" |
|
|
101
|
+
| use_edge | bool | 是否使用Edge浏览器,默认为 True |
|
|
102
|
+
|
|
103
|
+
## 支持的平台
|
|
104
|
+
|
|
105
|
+
- Windows 10/11
|
|
106
|
+
- Python 3.8+
|
|
107
|
+
|
|
108
|
+
## 依赖
|
|
109
|
+
|
|
110
|
+
- requests >= 2.31.0
|
|
111
|
+
|
|
112
|
+
## 开源协议
|
|
113
|
+
|
|
114
|
+
MIT License
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
pyckplayer/__init__.py,sha256=HiQyV-HtVZC1J0rlyazKaZ6_Z9C3uZUBnHjbY-j6kks,198
|
|
2
|
+
pyckplayer/cli.py,sha256=IOzUAHi8-sbkmiCQ1yFwNiUqZNNIjc2VoQTC1wRJHbE,1103
|
|
3
|
+
pyckplayer/core.py,sha256=lbBfwKWdT9WObKdyK3sqTTt8G-J0Z1rbZCdJu2Vdvmk,7315
|
|
4
|
+
pyckplayer/ckplayer/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
5
|
+
pyckplayer/ckplayer/css/ckplayer.css,sha256=OpUzmBspHxDbW2dKtc4VxTi_YgB1z5Wbl0VMfUrDLfE,45166
|
|
6
|
+
pyckplayer/ckplayer/css/ckplayer.ixigua.css,sha256=WqDhgZsSwFnJmKQkcAqCLwjqPxwyQKq7DB9lEjKFQu8,47454
|
|
7
|
+
pyckplayer/ckplayer/css/ckplayer.red.css,sha256=WKmeHaYRnTygpRBmk0HinlFqjPrOuIMRWKSdH7_2VvA,45174
|
|
8
|
+
pyckplayer/ckplayer/css/images/adclose.png,sha256=sSOApoIBEFM1Q4UJC6T2lIYjqmGIyg-UofmH9gL9vpk,3314
|
|
9
|
+
pyckplayer/ckplayer/css/images/buffer.png,sha256=idNQNEhb8nOg2sd-U6wX_CIHcDUyNEcihnPfGwnONJw,3500
|
|
10
|
+
pyckplayer/ckplayer/css/images/ckplayer.48.png,sha256=Jf7JhVvUuN_fvhqw1x6duDtu0ZNyFQIe9Ku-j1m8GI4,11132
|
|
11
|
+
pyckplayer/ckplayer/css/images/ckplayer.png,sha256=s-MZsNYR465wJigS8RzEgbOu_w4mmks7wlTMTLJ5F4M,10869
|
|
12
|
+
pyckplayer/ckplayer/css/images/ckplayer_ixigua.48.png,sha256=yJv6WMCcbzqP82nZ3SsGvaEqVM_I8jTpaVGyou8xvPE,10091
|
|
13
|
+
pyckplayer/ckplayer/css/images/ckplayer_ixigua.png,sha256=R-aTPLgwfvNl3_I4xVXafyCwJynpOKN-32h5i_pEN60,11294
|
|
14
|
+
pyckplayer/ckplayer/css/images/ckplayer_red.48.png,sha256=rfaCZfyJlKCQQYDq_OQXjVS-1VCZSrhZLHL_jt54slY,11238
|
|
15
|
+
pyckplayer/ckplayer/css/images/ckplayer_red.png,sha256=jYDGkNvbN0vx0TfhJ5Rq7AzlU4lkKcVzjESGjThRA7c,11320
|
|
16
|
+
pyckplayer/ckplayer/css/images/favicon.ico,sha256=pKUL26Jajx2aV9hDpqmRWdVF8KERNEd87QJ3YcU8nXI,4286
|
|
17
|
+
pyckplayer/ckplayer/css/images/loading.png,sha256=zbOUJ_ls5gjuki03bXKicLvLY22yEEM4JkLuR3kaCvc,4194
|
|
18
|
+
pyckplayer/ckplayer/css/images/logo.png,sha256=PVnE5MTlJx-m4TlKQG0KD2zDCGD_sKxGzms2jPS2xGs,5128
|
|
19
|
+
pyckplayer/ckplayer/css/images/play.png,sha256=u67IlwtstFlH20THGSQ8YsEuD4oCcSkAcB0zLMWaXF8,2427
|
|
20
|
+
pyckplayer/ckplayer/flv.js/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
21
|
+
pyckplayer/ckplayer/flv.js/README.md,sha256=c8TxW3YE7w11u8nmp3zwZhvYgxADmbFvfbPnKfDwJmM,3418
|
|
22
|
+
pyckplayer/ckplayer/flv.js/flv.js,sha256=wiPU5oSVOi5Vn5JvGlyl9pf_brFGpbucBpw8OxqWzaU,446470
|
|
23
|
+
pyckplayer/ckplayer/flv.js/flv.js.map,sha256=zSE_AQKj5eR_qDjfH4VmRX2ZLlwV_zb09bxdFU7xB78,645611
|
|
24
|
+
pyckplayer/ckplayer/flv.js/flv.min.js,sha256=czubMl28WYcaZSwKhPLyhaLP0Gzy787c2Hyx4ZTNHo8,144165
|
|
25
|
+
pyckplayer/ckplayer/flv.js/flv.min.js.map,sha256=MNbIHnxfrAWyB0EuGCcBo7j2f4B8b8lPrFNB8qDTl-g,525590
|
|
26
|
+
pyckplayer/ckplayer/hls.js/LICENSE,sha256=yodzz3mMftmX1N18jiPDSGmfjVt0YmNmlMwU3mzaEts,1338
|
|
27
|
+
pyckplayer/ckplayer/hls.js/README.md,sha256=4slaXMc1ZblEwGWZV_v6LrftZH-A3OJyIn6OwCWFVuI,26424
|
|
28
|
+
pyckplayer/ckplayer/hls.js/hls-demo.js,sha256=RhYOtntaossHQrZRL5jWOoShhMF6aU60lykKS_V7ugc,1297656
|
|
29
|
+
pyckplayer/ckplayer/hls.js/hls-demo.js.map,sha256=Ru46k44cphG0tdKT-bBLnZCacwmjE-NJ-_gCVMLIJWo,1678401
|
|
30
|
+
pyckplayer/ckplayer/hls.js/hls.js,sha256=ragXIUrEWRIbsgm226vV6urCbw3_WCNImxdcLzcl1Zg,993248
|
|
31
|
+
pyckplayer/ckplayer/hls.js/hls.js.d.ts,sha256=c7zhM_t_Y3dqiUAx-fS0ChIj6RWgGskyw8TatNpxzlw,96618
|
|
32
|
+
pyckplayer/ckplayer/hls.js/hls.js.map,sha256=EExbuWMjcRVtSiFccazfeMFcSt-kakG74HSR4vH-8BQ,1641037
|
|
33
|
+
pyckplayer/ckplayer/hls.js/hls.light.js,sha256=q6-gSv18uS1uco5dhAXeJe5sWqNt1ouztoNoVBm36Tg,758656
|
|
34
|
+
pyckplayer/ckplayer/hls.js/hls.light.js.map,sha256=PBQQ1kct4Bj7P51i89YyuOAm99ePq3vKObnvaU9GIf0,1253430
|
|
35
|
+
pyckplayer/ckplayer/hls.js/hls.light.min.js,sha256=g2thANn6G8YnaXohrWuaywzu8u5iSJzynnWTE1sKO-c,237219
|
|
36
|
+
pyckplayer/ckplayer/hls.js/hls.light.min.js.map,sha256=lDrvWVTRtz1Nb-oQm_ZBEbkJyG1gE42bxjJ-rgzl2aQ,1022884
|
|
37
|
+
pyckplayer/ckplayer/hls.js/hls.min.js,sha256=IThWiHksIqvw9QqGWmppP91MGCcmkMduTyiTLg0e5zI,321724
|
|
38
|
+
pyckplayer/ckplayer/hls.js/hls.min.js.map,sha256=GueT9g-RCI-3bu_yXyikpgBAoePfCPNqyG2YFCg3J94,1338408
|
|
39
|
+
pyckplayer/ckplayer/js/ckplayer.js,sha256=YdsXgECOD33cCvNRXx4fbZ09pGYwifaPl-8plCadKNo,219756
|
|
40
|
+
pyckplayer/ckplayer/js/ckplayer.min.js,sha256=MViT7mXrd2-mYCTdpEA4hhv4VDLnby8tBhWndtREG2M,138978
|
|
41
|
+
pyckplayer/ckplayer/language/en.js,sha256=sG7omXyNuCwMJJe_MFqFvUEHOd5As8rSG7PJJ2b8ke0,2403
|
|
42
|
+
pyckplayer/ckplayer/language/zh.cn.js,sha256=WVqgp92iis09fuz9E5R-Rp9Kp6eK0KA19GSjTacwMN4,2309
|
|
43
|
+
pyckplayer/ckplayer/language/zh.hk.js,sha256=2JWo6FTerZvPdRdmJuh_qhRUIAUzglkwfGwtXfIjJh0,2358
|
|
44
|
+
pyckplayer/ckplayer/mpegts.js/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
45
|
+
pyckplayer/ckplayer/mpegts.js/mpegts.js,sha256=FJWoxky6Caain9f0uKJ4WPAcYKYbxAmNyGXmGtt2LYo,174326
|
|
46
|
+
pyckplayer/ckplayer/mpegts.js/mpegts.js.map,sha256=z_kXuKqfFZ4FbQV4F_j9rr9V9jqSGYgXlucFBAC88nI,650524
|
|
47
|
+
pyckplayer/ckplayer/mpegts.js/mpegts.min.js,sha256=FJWoxky6Caain9f0uKJ4WPAcYKYbxAmNyGXmGtt2LYo,174326
|
|
48
|
+
pyckplayer-1.0.0.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
49
|
+
pyckplayer-1.0.0.dist-info/METADATA,sha256=VV9VjSDGmqQyxvZWY2fmVH_Yc57OW8ykdiMyBz8ZqRQ,2802
|
|
50
|
+
pyckplayer-1.0.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
51
|
+
pyckplayer-1.0.0.dist-info/entry_points.txt,sha256=66r1ZVTCWTiM_E2eYODJ5VbSTLAv31hbgQB8DGtEulo,51
|
|
52
|
+
pyckplayer-1.0.0.dist-info/top_level.txt,sha256=KA72j0NaIItbPBeoG-2fVzMTG7s8Esj0wv_jU4Ceiz8,11
|
|
53
|
+
pyckplayer-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pyckplayer
|