-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Add initial playback capability testing #3062
Add initial playback capability testing #3062
Conversation
val sampleRate: Int, | ||
) : MediaStreamTrack | ||
|
||
// TODO: Add Video/Subtitle tracks |
Check warning
Code scanning / detekt
Flags a forbidden comment.
"vobsub" to MimeTypes.APPLICATION_VOBSUB, | ||
"wav" to MimeTypes.AUDIO_WAV, | ||
"webm" to MimeTypes.APPLICATION_WEBM, | ||
// TODO: Find mime types for all these formats... |
Check warning
Code scanning / detekt
Flags a forbidden comment.
"pcm_mulaw" to MimeTypes.AUDIO_MLAW, | ||
"truehd" to MimeTypes.AUDIO_TRUEHD, | ||
"vorbis" to MimeTypes.AUDIO_VORBIS, | ||
// TODO: Find mime types for all these codecs... |
Check warning
Code scanning / detekt
Flags a forbidden comment.
else -> null | ||
} | ||
|
||
private fun hardwareAccelerationFromFlags(flags: Int) = when (RendererCapabilities.getHardwareAccelerationSupport(flags)) { |
Check warning
Code scanning / detekt
Line detected, which is longer than the defined maximum line length in the code style.
) | ||
|
||
// TODO Implement Video track type | ||
private fun getVideooTrack(stream: MediaStream) = null |
Check warning
Code scanning / detekt
A function that only returns a constant is misleading. Consider declaring a constant instead.
private fun getVideooTrack(stream: MediaStream) = null | ||
|
||
// TODO Implement Subtitle track type | ||
private fun getSubtitleTrack(stream: MediaStream) = null |
Check warning
Code scanning / detekt
A function that only returns a constant is misleading. Consider declaring a constant instead.
) | ||
|
||
// TODO Implement Video track type | ||
private fun getVideooTrack(stream: MediaStream) = null |
Check warning
Code scanning / detekt
Function parameter is unused and should be removed.
private fun getVideooTrack(stream: MediaStream) = null | ||
|
||
// TODO Implement Subtitle track type | ||
private fun getSubtitleTrack(stream: MediaStream) = null |
Check warning
Code scanning / detekt
Function parameter is unused and should be removed.
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.
mapping will be ..fun to populate
Changes
This PR adds a few things:
supportsStream
function to backendSome future changes that are likely to happen:
supportsStream
function instead of a full MediaStream instance. This way we can query the backend before building the stream URL etc.Issues
Important part of #1057