mirror of https://github.com/stashapp/stash.git
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).
This commit is contained in:
parent
b8f1cf9d53
commit
2f3c577a8a
|
@ -23,7 +23,16 @@ export const SceneFileInfoPanel: FunctionComponent<ISceneFileInfoPanelProps> = (
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td>Path</td>
|
<td>Path</td>
|
||||||
<td>{props.scene.path}</td>
|
<td><a href={"file://"+props.scene.path}>{"file://"+props.scene.path}</a> </td>
|
||||||
|
</tr>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderStream() {
|
||||||
|
return (
|
||||||
|
<tr>
|
||||||
|
<td>Stream</td>
|
||||||
|
<td><a href={props.scene.paths.stream}>{props.scene.paths.stream}</a> </td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -114,6 +123,7 @@ export const SceneFileInfoPanel: FunctionComponent<ISceneFileInfoPanelProps> = (
|
||||||
<tbody>
|
<tbody>
|
||||||
{renderChecksum()}
|
{renderChecksum()}
|
||||||
{renderPath()}
|
{renderPath()}
|
||||||
|
{renderStream()}
|
||||||
{renderFileSize()}
|
{renderFileSize()}
|
||||||
{renderDuration()}
|
{renderDuration()}
|
||||||
{renderDimensions()}
|
{renderDimensions()}
|
||||||
|
|
Loading…
Reference in New Issue