Oops
This commit is contained in:
parent
07b9b2feed
commit
38d3fa1186
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ async function generateEnclosureForClaimContent(claim) {
|
||||||
switch (value.stream_type) {
|
switch (value.stream_type) {
|
||||||
case 'video':
|
case 'video':
|
||||||
return {
|
return {
|
||||||
url: (await fetchStreamUrl(claim.name, claim.claim_id).replace('/v4/', '/v3/')) + (fileExt || '.mp4'), // v3 = mp4 always, v4 may redirect to m3u8
|
url: (await fetchStreamUrl(claim.name, claim.claim_id)).replace('/v4/', '/v3/') + (fileExt || '.mp4'), // v3 = mp4 always, v4 may redirect to m3u8
|
||||||
type: (value.source && value.source.media_type) || 'video/mp4',
|
type: (value.source && value.source.media_type) || 'video/mp4',
|
||||||
size: (value.source && value.source.size) || 0, // Per spec, 0 is a valid fallback.
|
size: (value.source && value.source.size) || 0, // Per spec, 0 is a valid fallback.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue