Skip to content

Commit

Permalink
fix: issue to load the video through chrome-cast device
Browse files Browse the repository at this point in the history
fixes: LEARNER-10350
  • Loading branch information
farhan-arshad-dev committed Jan 14, 2025
1 parent 2613dd0 commit 8099571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class EncodedVideoUnitViewModel(
val executor = Executors.newSingleThreadExecutor()
CastContext.getSharedInstance(context, executor).addOnSuccessListener { castContext ->
castPlayer = CastPlayer(castContext)
_isUpdated.value = true
}.addOnFailureListener {
logger.e(it, true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ open class VideoUnitViewModel(
val currentVideoTime: LiveData<Long>
get() = _currentVideoTime

private val _isUpdated = MutableLiveData(true)
protected val _isUpdated = MutableLiveData(true)
val isUpdated: LiveData<Boolean>
get() = _isUpdated

Expand Down

0 comments on commit 8099571

Please sign in to comment.