cdn env var
parent
4f68c898c2
commit
ac2ca9d261
|
@ -0,0 +1 @@
|
||||||
|
REACT_APP_VIDEO_CDN=https://comma-video-staging.azureedge.net
|
|
@ -0,0 +1 @@
|
||||||
|
REACT_APP_VIDEO_CDN=https://comma-video.azureedge.net
|
|
@ -1,5 +1,7 @@
|
||||||
function videoUrl(dongleId, hashedRouteName) {
|
function videoUrl(dongleId, hashedRouteName) {
|
||||||
return `https://comma-video.azureedge.net/hls/${dongleId}/${hashedRouteName}/index.m3u8`;
|
return `${
|
||||||
|
process.env.REACT_APP_VIDEO_CDN
|
||||||
|
}/hls/${dongleId}/${hashedRouteName}/index.m3u8`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function videoUrlForRouteUrl(routeUrlString) {
|
function videoUrlForRouteUrl(routeUrlString) {
|
||||||
|
|
Loading…
Reference in New Issue