support open with nPlayer (#613)

Co-authored-by: spencerwooo <spencer.woo@outlook.com>
This commit is contained in:
aidenlx
2022-04-21 19:26:33 +08:00
committed by GitHub
co-authored by spencerwooo
parent c8eabcbe11
commit 26945f554e
2 changed files with 6 additions and 1 deletions
+6 -1
View File
@@ -159,10 +159,15 @@ const VideoPreview: FC<{ file: OdFileObject }> = ({ file }) => {
btnImage="/players/vlc.png"
/>
<DownloadButton
onClickCallback={() => window.open(`potplayer://${getBaseUrl()}/${videoUrl}`)}
onClickCallback={() => window.open(`potplayer://${getBaseUrl()}${videoUrl}`)}
btnText="PotPlayer"
btnImage="/players/potplayer.png"
/>
<DownloadButton
onClickCallback={() => window.open(`nplayer-http://${getBaseUrl()}${videoUrl}`)}
btnText="nPlayer"
btnImage="/players/nplayer.png"
/>
</div>
</DownloadBtnContainer>
</>