mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
support open with nPlayer (#613)
Co-authored-by: spencerwooo <spencer.woo@outlook.com>
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user