From 2f3c577a8a6804fdd1529a8ab0180f50a90d2eb3 Mon Sep 17 00:00:00 2001 From: rudi123github <50080852+rudi123github@users.noreply.github.com> Date: Tue, 2 Jul 2019 22:41:10 +0200 Subject: [PATCH] Add anchor to scene path, and display stream anchor This allows to play videos which are not supported by JWplayer. Stash will display links to the local file and the stream in the "File Info" panel. This allows to open the stream or local file directly in the browser (if supported) or the app that is registered for the respective file type (e.g. VLC). --- .../scenes/SceneDetails/SceneFileInfoPanel.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui/v2/src/components/scenes/SceneDetails/SceneFileInfoPanel.tsx b/ui/v2/src/components/scenes/SceneDetails/SceneFileInfoPanel.tsx index 862e6b85a..48237c162 100644 --- a/ui/v2/src/components/scenes/SceneDetails/SceneFileInfoPanel.tsx +++ b/ui/v2/src/components/scenes/SceneDetails/SceneFileInfoPanel.tsx @@ -23,7 +23,16 @@ export const SceneFileInfoPanel: FunctionComponent = ( return ( Path - {props.scene.path} + {"file://"+props.scene.path} + + ); + } + + function renderStream() { + return ( + + Stream + {props.scene.paths.stream} ); } @@ -114,6 +123,7 @@ export const SceneFileInfoPanel: FunctionComponent = ( {renderChecksum()} {renderPath()} + {renderStream()} {renderFileSize()} {renderDuration()} {renderDimensions()}