A lot of video torrents are actually folders with one or more videos. While I assume you wouldn't want to change the default behaviour of double clicking it might be interesting to add a play button. This could then open the file in the user's default video player.
A lot of video torrents are actually folders with one or more videos. While I assume you wouldn't want to change the default behaviour of double clicking it might be interesting to add a play button. This could then open the file in the user's default video player.
Webtorrent desktop for example seems to open the first "Playable" file: https://github.com/webtorrent/webtorrent-desktop/blob/master/src/renderer/controllers/playback-controller.js#L46 To determine whether something is playable it compares the extensions with this list: https://github.com/webtorrent/webtorrent-desktop/blob/109accdb541c5220b1e3cd856b161d4ba59def1b/src/renderer/lib/media-extensions.js