Skip to content

Commit

Permalink
Add feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Oct 14, 2023
1 parent bb18288 commit b3a2095
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions playlet-lib/src/components/VideoPlayer/VideoContentTask.bs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,17 @@ function AddHlsUrls(streamUrls as object, metadata as object, proxyVideos as str
end function

function AddDashUrls(streamUrls as object, metadata as object, proxyVideos as string, playletServerUrl as string) as void
dashUrl = `${playletServerUrl}/api/dash?v=${metadata.videoId}`
dashUrlLocal = AddLocalFlag(dashUrl)
#if LOCAL_DASH
dashUrl = `${playletServerUrl}/api/dash?v=${metadata.videoId}`
#else
if metadata.dashUrl = invalid
return
end if

dashUrl = metadata.dashUrl
#end if

dashUrlLocal = AddLocalFlag(dashUrl)
AddUrls(streamUrls, dashUrl, dashUrlLocal, proxyVideos)
end function

Expand Down
2 changes: 1 addition & 1 deletion playlet-lib/src/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ hidden=1

git_commit_sha=unknown

bs_const=DEBUG=false
bs_const=DEBUG=false;LOCAL_DASH=true

0 comments on commit b3a2095

Please sign in to comment.