-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implement BufferAPI via Player.buffer
#298
Conversation
Player.buffer
namespace
They will be put in a different docs-centric PR
…into bufferapi-namespace
Co-authored-by: Roland Kákonyi <[email protected]>
…ad' into bufferapi-namespace
android/src/main/java/com/bitmovin/player/reactnative/BufferModule.kt
Outdated
Show resolved
Hide resolved
…ngs instead of Int
On iOS it should not be needed as the value is just passed through because iOS just support combined audio+video MediaType
We should explain why that object is there and its importance
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.
Good job!
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.
Very nice improvements! 💪
I've added some additional comments. In my opinion this PR is ready after the 2 comments are addressed 🙂
as JSON handlers shouldn't handle logic, and this forces the kotlin compiler to tell us to cover every case (so it is safer to handle new cases added in the future)
Player.buffer
namespacePlayer.buffer
Player.buffer
Player.buffer
We should take advantage of compilers to get compile time errors when a new value isn't handled instead of using default.
Player.buffer
Player.buffer
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.
Looks good! Great job 💪
Description
Implement Buffer APIs to configure buffer settings and to query the current buffer state.
Changes
Player.buffer
namespaceBufferApi
BufferType
,BufferLevel
, andMediaType
Testing
Apply this patch, open Basic Playback, and look at the logs on Metro:
patch.diff.txt
Checks
level
updates correctlytargetLevel
is set to300
media
type and buffertype
serialise correctlyChecklist
CHANGELOG
entry