mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-11 12:09:35 +01:00
18b758ffaa
* Update external-player-map.json: Add basic support for external SMPlayer Adds basic functionality to open videos in SMPlayer. Adding more parameters (e.g., startOffset or speed) is not possible at this time as SMPlayer expects different formatting compared to what FreeTube currently passes through. * Update utils.js: Add special startOffset handling for SMPlayer * Update external-player-map.json: Add startOffset for SMPlayer * Update utils.js: Truncate startOffset for SMPlayer If watchProgress contains a non-integer value, SMPlayer will simply parse it as 0. Thus, truncate it before passing it along. * Update utils.js: startOffset comments Co-authored-by: PikachuEXE <pikachuexe@gmail.com> --------- Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
81 lines
2.6 KiB
JSON
81 lines
2.6 KiB
JSON
[
|
|
{
|
|
"name": "None",
|
|
"nameTranslationKey": "Settings.External Player Settings.Players.None.Name",
|
|
"value": "",
|
|
"cmdArguments": null
|
|
},
|
|
{
|
|
"name": "mpv",
|
|
"nameTranslationKey": "Settings.External Player Settings.Players.mpv.Name",
|
|
"value": "mpv",
|
|
"cmdArguments": {
|
|
"defaultExecutable": "mpv",
|
|
"defaultCustomArguments": null,
|
|
"supportsYtdlProtocol": true,
|
|
"videoUrl": "",
|
|
"playlistUrl": "",
|
|
"startOffset": "--start=",
|
|
"playbackRate": "--speed=",
|
|
"playlistIndex": "--playlist-start=",
|
|
"playlistReverse": null,
|
|
"playlistShuffle": "--shuffle",
|
|
"playlistLoop": "--loop-playlist"
|
|
}
|
|
},
|
|
{
|
|
"name": "VLC",
|
|
"nameTranslationKey": "Settings.External Player Settings.Players.VLC.Name",
|
|
"value": "vlc",
|
|
"cmdArguments": {
|
|
"defaultExecutable": "vlc",
|
|
"defaultCustomArguments": null,
|
|
"supportsYtdlProtocol": false,
|
|
"videoUrl": "",
|
|
"playlistUrl": null,
|
|
"startOffset": "--start-time=",
|
|
"playbackRate": "--rate=",
|
|
"playlistIndex": null,
|
|
"playlistReverse": null,
|
|
"playlistShuffle": "--random",
|
|
"playlistLoop": "--loop"
|
|
}
|
|
},
|
|
{
|
|
"name": "iina",
|
|
"nameTranslationKey": "Settings.External Player Settings.Players.iina.Name",
|
|
"value": "iina",
|
|
"cmdArguments": {
|
|
"defaultExecutable": "iina",
|
|
"defaultCustomArguments": "--no-stdin",
|
|
"supportsYtdlProtocol": true,
|
|
"videoUrl": "",
|
|
"playlistUrl": "",
|
|
"startOffset": "--mpv-start=",
|
|
"playbackRate": "--mpv-speed=",
|
|
"playlistIndex": "--mpv-playlist-start=",
|
|
"playlistReverse": null,
|
|
"playlistShuffle": "--mpv-shuffle",
|
|
"playlistLoop": "--mpv-loop-playlist"
|
|
}
|
|
},
|
|
{
|
|
"name": "SMPlayer",
|
|
"nameTranslationKey": "Settings.External Player Settings.Players.SMPlayer.Name",
|
|
"value": "smplayer",
|
|
"cmdArguments": {
|
|
"defaultExecutable": "smplayer",
|
|
"defaultCustomArguments": null,
|
|
"supportsYtdlProtocol": true,
|
|
"videoUrl": "",
|
|
"playlistUrl": "",
|
|
"startOffset": "-start",
|
|
"playbackRate": null,
|
|
"playlistIndex": null,
|
|
"playlistReverse": null,
|
|
"playlistShuffle": null,
|
|
"playlistLoop": null
|
|
}
|
|
}
|
|
]
|