Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Commit 26945f5

Browse files
aidenlxspencerwooo
andauthored
support open with nPlayer (#613)
Co-authored-by: spencerwooo <spencer.woo@outlook.com>
1 parent c8eabcb commit 26945f5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

components/previews/VideoPreview.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,15 @@ const VideoPreview: FC<{ file: OdFileObject }> = ({ file }) => {
159159
btnImage="/players/vlc.png"
160160
/>
161161
<DownloadButton
162-
onClickCallback={() => window.open(`potplayer://${getBaseUrl()}/${videoUrl}`)}
162+
onClickCallback={() => window.open(`potplayer://${getBaseUrl()}${videoUrl}`)}
163163
btnText="PotPlayer"
164164
btnImage="/players/potplayer.png"
165165
/>
166+
<DownloadButton
167+
onClickCallback={() => window.open(`nplayer-http://${getBaseUrl()}${videoUrl}`)}
168+
btnText="nPlayer"
169+
btnImage="/players/nplayer.png"
170+
/>
166171
</div>
167172
</DownloadBtnContainer>
168173
</>

public/players/nplayer.png

4.24 KB
Loading

0 commit comments

Comments
 (0)