Greasy Fork 还支持 简体中文。

iqiyi-player-switch

爱奇艺flash播放器与html5播放器随意切换,改善html5播放器播放体验。

As of 2018-02-10. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
gooyie
Ratings
0 0 0
Version
1.12.2
Created
2017-03-22
Updated
2018-02-10
Size
180 KB
Compatibility
Compatible with Firefox Compatible with Chrome Compatible with Edge
License
MIT
Applies to

iqiyi-player-switch

爱奇艺flash播放器与html5播放器随意切换,改善html5播放器播放体验。

脚本管理器兼容

Greasemonkey用不了(沙箱限制),TampermonkeyViolentmonkey可正常使用。

安装

脚本实现的功能

  • 在脚本管理器上添加菜单命令用于播放器切换(默认启用html5播放器)
  • firefox 播放f4v
  • 和谐广告
  • 和谐非内嵌水印
  • 解除会员清晰度限制
  • 外链html5播放(不完善)
  • 快捷键
  • 默认使用 WebSocket 加载视频

键盘快捷键

快捷键仿照PotPlayeryoutube

按键 功能
空格 播放 / 暂停
enter 全屏 / 退出全屏
ctrl + enter 网页全屏 / 退出网页全屏
esc 退出网页全屏
音量增加 5%
音量减少 5%
m 静音 / 取消静音
d 上一帧
f 下一帧
步退5秒
步进5秒
ctrl + ← 步退30秒
ctrl + → 步进30秒
shift + ← 步退1分钟
shift + → 步进1分钟
ctrl + alt + ← 步退5分钟
ctrl + alt + → 步进5分钟
0 ~ 9 定位到视频的 x0%
c 播放速率提高 0.1
x 播放速率降低 0.1
z 正常/之前的播放速率
shift + p 播放上一集
shift + n 播放下一集

鼠标快捷键

操作 条件 功能
单击左键 在播放区域 播放 / 暂停
双击左键 在播放区域 全屏切换
ctrl + 双击左键 在播放区域 网页全屏切换
滚动滚轮 全屏或网页全屏 音量调节

切换播放器

菜单命令是要切换过去的播放器

tm-switch vm-switch

关于html5播放器清晰度

html5 播放器播放f4v用了fetch + ReadableStreamWebSocketWebRTC来加载视频流,能否播放或正常播放取决于浏览器。 爱奇艺在 Chrome >=43 默认使用了html5播放器,所以Chrome >=43应该都能正常播放吧。 爱奇艺并没有兼容并支持 Firefox 加载f4v视频流播放,所以脚本采取了一些措施以支持。Firefox 仍未实现ReadableStream,仅用WebSocket好像也可以。不过,WebSocket Loader出错时会自动切换到fetch Loader,反之亦然。为确保稳定可靠地播放,使用了 fetch + ReadableStream Polyfill。只测试了 Firefox 56.0 (64 位) 和 57.0b13 (64 位),可正常播放。 爱奇艺通过userAgent识别浏览器,所以Edge会被当成Chrome在userAgent中的Chrome版本号 >=43 的情况下默认使用html5播放器。爱奇艺也没有对Edge作兼容处理,Edge 易升之前可能需要WebRTC adapter才会播放f4v,而易升后已不再需要。 不满足f4v播放条件的浏览器,则只能播放最高清晰度为高清的 mp4m3u8