Skip to main content

Pyckplayer

一个基于 CKPlayer 的 Python 视频播放器包装器,支持在 Windows 系统上使用 Edge 浏览器或系统默认浏览器播放网络视频。

功能特点

  • 🎬 支持多种视频格式:mp4, flv, m3u8, ts 等
  • 📱 支持移动端和 PC 端
  • 🔗 支持点播、直播、直播+回放
  • 🎨 提供封面图支持
  • ⚡ 自动计算窗口大小,保持视频比例
  • 🧹 自动清理临时文件

安装方法

pip install Pyckplayer

使用方法

命令行方式

# 基本用法
pyckplayer <视频URL>

# 指定视频尺寸
pyckplayer <视频URL> -w 720 -h 1280

# 添加封面图
pyckplayer <视频URL> -p <封面图URL>

# 指定播放器标题
pyckplayer <视频URL> -t "我的视频"

# 使用系统默认浏览器(不使用Edge)
pyckplayer <视频URL> --no-edge

Python API

from pyckplayer import play_video

# 基本用法
play_video("https://example.com/video.mp4")

# 完整参数
play_video(
    url="https://example.com/video.mp4",
    width=720,
    height=1280,
    poster_url="https://example.com/cover.jpg",
    title="我的视频",
    use_edge=True
)

参数说明

参数 类型 说明
url str 视频URL(必需)
width int/float 视频宽度(像素)
height int/float 视频高度(像素)
poster_url str 封面图URL
title str 播放器标题,默认为 "CKPlayer"
use_edge bool 是否使用Edge浏览器,默认为 True

支持的平台

  • Windows 10/11
  • Python 3.8+

依赖

  • requests >= 2.31.0

开源协议

MIT License

Metadata

Release files for Pyckplayer 1.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Pyckplayer 1.0.14
File Size Uploaded Provenance Actions
pyckplayer-1.0.14.tar.gz 3.3 MB Without provenance Details for pyckplayer-1.0.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Pyckplayer 1.0.14
File Interpreter ABI Platform Actions
pyckplayer-1.0.14-py3-none-any.whl Python 3 none any Details for pyckplayer-1.0.14-py3-none-any.whl

Total release size: 6.6 MB

Release files / pyckplayer-1.0.14.tar.gz

Download URL pyckplayer-1.0.14.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
88a01f0aa295c2d159d92174b043b124465b2bf4d51b1181858a550b303227e4
BLAKE2b-256 checksum
How to use checksums
41f9373fcf4e8568c9e497b365fa726b1a779fa4ba49aeee3662e838b9ec4e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pyckplayer-1.0.14-py3-none-any.whl

Download URL pyckplayer-1.0.14-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
802b845ff49f6a7959306bb50975918e769779aca1d05fa7f32de30b6dc670e1
BLAKE2b-256 checksum
How to use checksums
3d931726b3edfea0c6f6219ec09a387db3e2cc93f685c9df62e235e7b840fae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for Pyckplayer 1.0.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page