您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
emby web调用potplayer播放本地的视频,纯本地播放,不走网络流媒体
当前为
// ==UserScript== // @name Emby-PotPlayer本地播放的最佳方式 // @description emby web调用potplayer播放本地的视频,纯本地播放,不走网络流媒体 // @version 1.02 // @grant none // @match none // @include http*://*/web/* // @author zhanaa // @namespace https://greasyfork.org/users/753082 // ==/UserScript== (async function() { 'use strict'; while (!window.require || !window.ConnectionManager) await new Promise(resolve => setTimeout(resolve, 500)); window.require(['pluginManager'], (pluginManager) => pluginManager.register(new EmbyPot())); })(); class EmbyPot{ constructor(){ this.name = 'Pot Player'; this.type = 'mediaplayer'; this.id = 'potplayer'; for (var cc of ['currentTime','volume', 'currentSrc', 'isMuted', 'paused']) this[cc] = function(){}; } async getDeviceProfile(a,b){return null}; canPlayItem(){return true}; canPlayMediaType(a){return (a || '').toLowerCase() === 'video'}; async stop() {} async play(a,b){window.location.href = `emby://${a.mediaSource.Path}`}; };