-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: native-pipeline #49
base: main
Are you sure you want to change the base?
Conversation
Note Urls will be available only after netlify deploy. PreviewApi Reference
Demo |
❌ Deploy Preview for videojsdev failed. Why did it fail? →
|
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
+ Coverage 63.95% 65.96% +2.00%
==========================================
Files 114 117 +3
Lines 4830 4918 +88
Branches 633 686 +53
==========================================
+ Hits 3089 3244 +155
+ Misses 1733 1666 -67
Partials 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Disabled = 'disabled', | ||
Hidden = 'hidden', | ||
Showing = 'showing', | ||
} |
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.
these 2 seem to match default text track interfaces, so you can simply use interfaces globally available in typescript via dom
} as TextTrack; | ||
videoElement.textTracks[videoElement.textTracks.length] = textTrack; | ||
return textTrack; | ||
}; |
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.
you can use mockito, or simply videoElement = { addTextTrack: vi.fn() }
in beforeEach
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.
The only issue I have with mocking this with an empty vi.fn is that it doubles as a test utility. If this is mocked with vi, the text track would need to be added manually in each test.
} | ||
} | ||
return null; | ||
}; |
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.
same
I see this PR is mostly about text tracks, could we please verify that load flow works as expected and native playback works fine, eg: some basic mp4 file in chrome/firefox/safari and hls in safari? |
Description
Add native-pipeline and associated tests.
Specific Changes proposed
Implement a basic native pipeline.
Requirements Checklist