-
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: Add Subtitle Support for Native Player in Fullscreen Mode #64
base: 2U/develop
Are you sure you want to change the base?
Conversation
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
Fixes: LEARNER-10259
if (viewModel.isPlaying == null) { | ||
viewModel.isPlaying = requireArguments().getBoolean(ARG_IS_PLAYING) | ||
} | ||
viewModel.transcripts = stringToObject<Map<String, String>>( | ||
requireArguments().getString(ARG_TRANSCRIPTS, "") | ||
) ?: emptyMap() |
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.
As parameters are parsing from the bundle, better to move in the constructor. (Optional improvement)
val transcriptUrls: String, | ||
@ColumnInfo("transcriptPaths") | ||
val transcriptPaths: String, | ||
@ColumnInfo("transcriptDownloadedStatus") | ||
val transcriptDownloadedStatus: String, |
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.
transcriptPaths
stores the downloaded transcript's local storage path right?
IMO, we can store Empty_String | null
in the transcriptPaths
to check whether the transcripts have been downloaded.
val transcriptUrls: String, | ||
@ColumnInfo("transcriptPaths") | ||
val transcriptPaths: String, |
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.
We need to perform the stress testing on these Columns.
downloadDao.updateDownloadModel( | ||
DownloadModelEntity.createFrom( | ||
downloadTask.copy( | ||
transcriptDownloadedStatus = TranscriptsDownloadedState.DOWNLOADED |
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.
Usecase to mark the Transcripts downloaded when transcriptUrls
list is empty.
@@ -32,7 +32,7 @@ ext { | |||
fragment_version = "1.6.2" | |||
constraintlayout_version = "2.1.4" | |||
viewpager2_version = "1.0.0" | |||
media3_version = "1.1.1" | |||
media3_version = "1.4.1" |
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.
use-case to update the library version?
Description
Technical Changes: