mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
main playlist
This commit is contained in:
@@ -4300,10 +4300,10 @@
|
||||
"x-immich-state": "Stable"
|
||||
}
|
||||
},
|
||||
"/assets/{id}/video/stream/master.m3u8": {
|
||||
"/assets/{id}/video/stream/main.m3u8": {
|
||||
"get": {
|
||||
"description": "Returns an HLS master playlist with all available variants for the asset.",
|
||||
"operationId": "getMasterPlaylist",
|
||||
"description": "Returns an HLS main playlist with all available variants for the asset.",
|
||||
"operationId": "getMainPlaylist",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -4355,7 +4355,7 @@
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"summary": "Get HLS master playlist",
|
||||
"summary": "Get HLS main playlist",
|
||||
"tags": [
|
||||
"Assets"
|
||||
],
|
||||
|
||||
@@ -4270,9 +4270,9 @@ export function playAssetVideo({ id, key, slug }: {
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* Get HLS master playlist
|
||||
* Get HLS main playlist
|
||||
*/
|
||||
export function getMasterPlaylist({ id, key, slug }: {
|
||||
export function getMainPlaylist({ id, key, slug }: {
|
||||
id: string;
|
||||
key?: string;
|
||||
slug?: string;
|
||||
@@ -4280,7 +4280,7 @@ export function getMasterPlaylist({ id, key, slug }: {
|
||||
return oazapfts.ok(oazapfts.fetchBlob<{
|
||||
status: 200;
|
||||
data: string;
|
||||
}>(`/assets/${encodeURIComponent(id)}/video/stream/master.m3u8${QS.query(QS.explode({
|
||||
}>(`/assets/${encodeURIComponent(id)}/video/stream/main.m3u8${QS.query(QS.explode({
|
||||
key,
|
||||
slug
|
||||
}))}`, {
|
||||
|
||||
Reference in New Issue
Block a user