-
Notifications
You must be signed in to change notification settings - Fork 140
CMAF passthrough attempt v2 #859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
8bf3569
added cmaf support con relay
58c1ffe
MSE support
30139cd
adjusting logs and coments
deec2a9
Just comands updated flags
6ed6e21
catalog on source-mse
834d778
group logic MSE
89d510b
merging recent changes, solve conflicts
75d85df
rust and typescript fixes
f14e058
Update rs/hang-cli/src/publish.rs
jpbusta10 807db9e
cargo formatting issue
326cafe
audio sync issues
a73fd9c
coments cleanup
ec4a1a0
variable names: legacy->native fmp4->cmaf
3b20c43
optiona setAudioSync
8cbbf40
init segmet on catalog - timestamp fix - AV sync on MSE
3fa2bc8
base64 to cargo
3857fb2
fix minor issues - aboid playback by group
006ed39
fix pause audio bug
ab0e9f7
mp4 specific mime
3639400
JS side feels good.
kixelated f9114fa
ugh kinda works.
kixelated 39a44fc
Merge remote-tracking branch 'origin/main' into full-cmaf-import-v2
kixelated 1fa9ad4
More fixes n stuff I don't remember.
kixelated cacab58
Pre-PR changes.
kixelated d2814a3
WIP
kixelated fa79b92
Add min_buffer so MSE playback is decent.
kixelated f73752b
Merge remote-tracking branch 'origin/main' into full-cmaf-import-v2
kixelated a69b830
Add a vibe-coded buffer visualization.
kixelated 01dd90e
Fix some MSE bugs.
kixelated File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| <!doctype html> | ||
| <html lang="en" class="dark"> | ||
|
|
||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <title>MoQ Demo (MSE)</title> | ||
|
|
||
| <link rel="stylesheet" href="index.css"> | ||
| <link rel="icon" type="image/svg+xml" href="/favicon.svg"> | ||
| </head> | ||
|
|
||
| <body class="dark:bg-black p-4"> | ||
| <!-- Show if this browser supports everything we need. --> | ||
| <hang-support mode="watch" show="partial"></hang-support> | ||
|
|
||
| <!-- | ||
| This demo uses MSE (Media Source Extensions) instead of WebCodecs. | ||
| MSE has broader device support but higher latency compared to the WebCodecs canvas renderer. | ||
|
|
||
| The relay url is loaded from an environment as it contains a generated JWT authentication token. | ||
| Feel free to hard-code it if you have public access configured, like `url="https://cdn.moq.dev/anon"` | ||
| NOTE: `http` performs an insecure certificate check. You must use `https` in production. | ||
|
|
||
| The broadcast path is overwritten by the ?path query parameter in index.ts. | ||
|
|
||
| NOTE: `reload` will detect when the broadcast goes offline/online and automatically reconnect. | ||
| TODO: Cloudflare doesn't support it yet (SUBSCRIBE_NAMESPACE), so make sure you remove it if you're using Cloudflare. | ||
| --> | ||
| <hang-watch-ui> | ||
| <hang-watch id="watch" url="%VITE_RELAY_URL%" path="bbb" muted buffer="150" reload> | ||
| <video style="width: 100%; height: auto;" autoplay muted></video> | ||
| </hang-watch> | ||
| </hang-watch-ui> | ||
|
|
||
| <!-- Configure the relay URL and broadcast name. Auto-discovers available broadcasts. --> | ||
| <hang-config id="config" url="%VITE_RELAY_URL%" path="bbb"></hang-config> | ||
|
|
||
| <h3>Other demos:</h3> | ||
| <ul> | ||
| <li><a href="index.html">Watch a broadcast (WebCodecs).</a></li> | ||
| <li><a href="publish.html">Publish a broadcast.</a></li> | ||
| <li><a href="meet.html">Watch a room of broadcasts.</a></li> | ||
| <li><a href="support.html">Check browser support.</a></li> | ||
| </ul> | ||
|
|
||
| <h3>Tips:</h3> | ||
| <p> | ||
| This demo uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API">MSE (Media | ||
| Source Extensions)</a> | ||
| via a <code><video></code> element instead of WebCodecs via <code><canvas></code>. | ||
| MSE has broader device support but higher latency. | ||
| </p> | ||
| <p> | ||
| To use MSE, provide a <code><video></code> element instead of a <code><canvas></code> element: | ||
| <pre><code class="language-html"><hang-watch url="https://cdn.moq.dev/anon" path="bbb"> | ||
| <video style="max-width: 100%; height: auto;" autoplay muted></video> | ||
| </hang-watch></code></pre> | ||
| </p> | ||
| </body> | ||
|
|
||
| <script type="module" src="index.ts"></script> | ||
|
|
||
| </html> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put this comment above the video tag.