你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/406811-embylaunchpotplayer/discussions/140985,源站連結 點此以跳轉。
emby调用外部播放器
感谢分享,这应该是potplayer 220706 版的bug,我在 220420版上没能复现问题,更新到220706也有这个问题
感谢分享,有用。刚才百度了半天没有找到解决办法。
potplayer 跳转时,如果文件名有空格则无法正常播放。即使进行了 url 编码。
所以需要对标题去除空格。
155 行应修改为:
let poturl = `potplayer://${encodeURI(mediaInfo.streamUrl)} /sub=${encodeURI(mediaInfo.subUrl)} /current /title=${encodeURI(intent.title.replace(/\s*/g,""))} /seek=${getSeek(intent.position)}`;
刚刚遇到这个问题了,这条有效解决问题
potplayer 跳转时,如果文件名有空格则无法正常播放。即使进行了 url 编码。
所以需要对标题去除空格。
155 行应修改为:
let poturl = `potplayer://${encodeURI(mediaInfo.streamUrl)} /sub=${encodeURI(mediaInfo.subUrl)} /current /title=${encodeURI(intent.title.replace(/\s*/g,""))} /seek=${getSeek(intent.position)}`;