[GH-ISSUE #52] <Video> page instead of direct file link? #44

Open
opened 2026-02-25 20:32:15 +03:00 by kerem · 2 comments
Owner

Originally created by @Numbers11 on GitHub (Sep 10, 2015).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/52

With Chrome dropping support for NPAPI, the VLC plugin and many others aren't working anymore.

This means that trying to open a file that is currently being downloaded results only in downloading the video file which cannot even be opened with any program until said download is complete, kind of defeating the purpose of torrent streaming.

Would it be possible to embed a html5

Originally created by @Numbers11 on GitHub (Sep 10, 2015). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/52 With Chrome dropping support for NPAPI, the VLC plugin and many others aren't working anymore. This means that trying to open a file that is currently being downloaded results only in downloading the video file which cannot even be opened with any program until said download is complete, kind of defeating the purpose of torrent streaming. Would it be possible to embed a html5 <video> on the page, so you can have native in-browser watching for Chrome?
Author
Owner

@asapach commented on GitHub (Sep 10, 2015):

If the video is in MP4 (or other HTML5-compatible format like WebM or Theora), the browser will open the built-in video player - you don't need a plugin for those. If it's in any other format/container, it will not be supported by the <video> tag, so embedding it into a page makes no sense until we figure out how to efficiently transcode it. You could provide your ideas and feedback in #19.

<!-- gh-comment-id:139410308 --> @asapach commented on GitHub (Sep 10, 2015): If the video is in MP4 (or other HTML5-compatible format like WebM or Theora), the browser will open the built-in video player - you don't need a plugin for those. If it's in any other format/container, it will not be supported by the `<video>` tag, so embedding it into a page makes no sense until we figure out how to efficiently transcode it. You could provide your ideas and feedback in #19.
Author
Owner

@WillyJL commented on GitHub (Feb 27, 2022):

Only 7 years late lol but I added this in #207

Also I don't know how it was in 2015, but as of today that's not true @asapach:

  • common video extensions like .mp4 will show a video player if opened in a new tab
  • less common formats like .mkv will not, and will just download like a regular file
  • the <video> tag however supports .mkv files just fine (kinda, it depends on the browser, but chromium based works wonderfully)
<!-- gh-comment-id:1053721028 --> @WillyJL commented on GitHub (Feb 27, 2022): Only 7 years late lol but I added this in #207 Also I don't know how it was in 2015, but as of today that's not true @asapach: - common video extensions like .mp4 will show a video player if opened in a new tab - less common formats like .mkv will not, and will just download like a regular file - the `<video>` tag however supports .mkv files just fine (kinda, it depends on the browser, but chromium based works wonderfully)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#44
No description provided.