mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Transcode stream refactor (#609)
* Remove forceMkv and forceHEVC * Add HLS support and refactor * Add new streaming endpoints
This commit is contained in:
@@ -26,8 +26,6 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
const [maxStreamingTranscodeSize, setMaxStreamingTranscodeSize] = useState<
|
||||
GQL.StreamingResolutionEnum | undefined
|
||||
>(undefined);
|
||||
const [forceMkv, setForceMkv] = useState<boolean>(false);
|
||||
const [forceHevc, setForceHevc] = useState<boolean>(false);
|
||||
const [username, setUsername] = useState<string | undefined>(undefined);
|
||||
const [password, setPassword] = useState<string | undefined>(undefined);
|
||||
const [maxSessionAge, setMaxSessionAge] = useState<number>(0);
|
||||
@@ -50,8 +48,6 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
previewPreset: (previewPreset as GQL.PreviewPreset) ?? undefined,
|
||||
maxTranscodeSize,
|
||||
maxStreamingTranscodeSize,
|
||||
forceMkv,
|
||||
forceHevc,
|
||||
username,
|
||||
password,
|
||||
maxSessionAge,
|
||||
@@ -77,8 +73,6 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
setMaxStreamingTranscodeSize(
|
||||
conf.general.maxStreamingTranscodeSize ?? undefined
|
||||
);
|
||||
setForceMkv(conf.general.forceMkv);
|
||||
setForceHevc(conf.general.forceHevc);
|
||||
setUsername(conf.general.username);
|
||||
setPassword(conf.general.password);
|
||||
setMaxSessionAge(conf.general.maxSessionAge);
|
||||
@@ -343,30 +337,6 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
Maximum size for transcoded streams
|
||||
</Form.Text>
|
||||
</Form.Group>
|
||||
<Form.Group id="force-options-mkv">
|
||||
<Form.Check
|
||||
id="force-mkv"
|
||||
checked={forceMkv}
|
||||
label="Force Matroska as supported"
|
||||
onChange={() => setForceMkv(!forceMkv)}
|
||||
/>
|
||||
<Form.Text className="text-muted">
|
||||
Treat Matroska (MKV) as a supported container. Recommended for
|
||||
Chromium based browsers
|
||||
</Form.Text>
|
||||
</Form.Group>
|
||||
<Form.Group id="force-options-hevc">
|
||||
<Form.Check
|
||||
id="force-hevc"
|
||||
checked={forceHevc}
|
||||
label="Force HEVC as supported"
|
||||
onChange={() => setForceHevc(!forceHevc)}
|
||||
/>
|
||||
<Form.Text className="text-muted">
|
||||
Treat HEVC as a supported codec. Recommended for Safari or some
|
||||
Android based browsers
|
||||
</Form.Text>
|
||||
</Form.Group>
|
||||
</Form.Group>
|
||||
|
||||
<hr />
|
||||
|
||||
Reference in New Issue
Block a user