-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] clients: Use storage fallback for probing segments too
This is incomplete as we still need to fix the probing made on the manifest itself instead of just on each segment. Rabbit hole.
- Loading branch information
Showing
6 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,11 +78,11 @@ func TestItCanDownloadAValidRenditionManifest(t *testing.T) { | |
} | ||
|
||
func TestItCanConvertRelativeURLsToOSURLs(t *testing.T) { | ||
u, err := ManifestURLToSegmentURL("/tmp/file/something.m3u8", "001.ts") | ||
u, err := ManifestURLToSegmentURL("blah", "/tmp/file/something.m3u8", "001.ts") | ||
require.NoError(t, err) | ||
require.Equal(t, "/tmp/file/001.ts", u.String()) | ||
|
||
u, err = ManifestURLToSegmentURL("s3+https://REDACTED:[email protected]/something/output.m3u8", "001.ts") | ||
u, err = ManifestURLToSegmentURL("blah", "s3+https://REDACTED:[email protected]/something/output.m3u8", "001.ts") | ||
require.NoError(t, err) | ||
require.Equal(t, "s3+https://REDACTED:[email protected]/something/001.ts", u.String()) | ||
} | ||
|
@@ -94,7 +94,7 @@ func TestItParsesManifestAndConvertsRelativeURLs(t *testing.T) { | |
sourceMediaManifest, ok := sourceManifest.(*m3u8.MediaPlaylist) | ||
require.True(t, ok) | ||
|
||
us, err := GetSourceSegmentURLs("s3+https://REDACTED:[email protected]/something/output.m3u8", *sourceMediaManifest) | ||
us, err := GetSourceSegmentURLs("blah", "s3+https://REDACTED:[email protected]/something/output.m3u8", *sourceMediaManifest) | ||
require.NoError(t, err) | ||
|
||
require.Equal(t, 2, len(us)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters