mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Replace JW Player with video.js (#2100)
* Replace JW Player with video.js * Move HLS stream to bottom of list HLS doesn't work very well on non-ios devices. Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -117,16 +117,15 @@ export class SceneQueue {
|
||||
sceneID: string,
|
||||
options?: IPlaySceneOptions
|
||||
) {
|
||||
history.push(this.makeLink(sceneID, options));
|
||||
history.replace(this.makeLink(sceneID, options));
|
||||
}
|
||||
|
||||
public makeLink(sceneID: string, options?: IPlaySceneOptions) {
|
||||
const paramStr = this.makeQueryParameters(
|
||||
options?.sceneIndex,
|
||||
options?.newPage
|
||||
);
|
||||
const autoplayParam = options?.autoPlay ? "&autoplay=true" : "";
|
||||
const continueParam = options?.continue ? "&continue=true" : "";
|
||||
return `/scenes/${sceneID}?${paramStr}${autoplayParam}${continueParam}`;
|
||||
const params = [
|
||||
this.makeQueryParameters(options?.sceneIndex, options?.newPage),
|
||||
options?.autoPlay ? "autoplay=true" : "",
|
||||
options?.continue ? "continue=true" : "",
|
||||
].filter((param) => !!param);
|
||||
return `/scenes/${sceneID}${params.length ? "?" + params.join("&") : ""}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user