education: stream lessons from self-hosted R2 instead of youtube
- Commit
26ffbd8f54f9f8a9903bb84606f03326d0d02dee- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-23 19:29 UTC (1 month ago)
- Parents
ac1e3b0
Diff
education/build.gradle.kts
diff --git a/education/build.gradle.kts b/education/build.gradle.ktsindex a4295ba1a3..9fa3c652f1 100644--- a/education/build.gradle.kts+++ b/education/build.gradle.kts@@ -20,10 +20,8 @@ dependencies { implementRoom(libs) implementation(project(":library:room")) - // Video playback (Khan/YouTube streaming via NewPipe + media3), like :youpipe.- implementation(project(":youpipe:extractor"))+ // Direct MP4 video playback (self-hosted R2) via media3. implementation(libs.androidx.media3.exoplayer) implementation(libs.androidx.media3.ui.compose.material3)- implementation(project(":library:network")) }
education/src/main/assets/content/biology_scholar.json
diff --git a/education/src/main/assets/content/biology_scholar.json b/education/src/main/assets/content/biology_scholar.jsonindex e4b730ad28..efd2ae038b 100644--- a/education/src/main/assets/content/biology_scholar.json+++ b/education/src/main/assets/content/biology_scholar.json@@ -23,7 +23,7 @@ "id": "lesson.cell-theory", "title": "Cell theory", "videos": [- { "youtubeId": "5KfHxF6Vhps", "title": "Introduction to the cell", "durationSeconds": 351 }+ { "videoUrl": "https://education.maproj.org/5KfHxF6Vhps.mp4", "title": "Introduction to the cell", "durationSeconds": 351 } ], "exercise": { "id": "ex.cell-theory",@@ -35,7 +35,7 @@ "id": "lesson.organelles", "title": "Organelles", "videos": [- { "youtubeId": "Hmwvj9X4GNY", "title": "Parts of a cell", "durationSeconds": 1263 }+ { "videoUrl": "https://education.maproj.org/Hmwvj9X4GNY.mp4", "title": "Parts of a cell", "durationSeconds": 1263 } ], "exercise": { "id": "ex.organelles",
education/src/main/assets/content/math_core.json
diff --git a/education/src/main/assets/content/math_core.json b/education/src/main/assets/content/math_core.jsonindex 2d97bb7b71..35b1de06a5 100644--- a/education/src/main/assets/content/math_core.json+++ b/education/src/main/assets/content/math_core.json@@ -24,7 +24,7 @@ "id": "lesson.one-step", "title": "One-step equations", "videos": [- { "youtubeId": "jWpiMu5LNdg", "title": "How to solve one-step equations", "durationSeconds": 129 }+ { "videoUrl": "https://education.maproj.org/jWpiMu5LNdg.mp4", "title": "How to solve one-step equations", "durationSeconds": 129 } ], "exercise": { "id": "ex.one-step",@@ -36,7 +36,7 @@ "id": "lesson.two-step", "title": "Two-step equations", "videos": [- { "youtubeId": "_y_Q3_B2Vh8", "title": "Solving two-step equations", "durationSeconds": 312 }+ { "videoUrl": "https://education.maproj.org/_y_Q3_B2Vh8.mp4", "title": "Solving two-step equations", "durationSeconds": 312 } ], "exercise": { "id": "ex.two-step",
education/src/main/assets/content/math_elementary.json
diff --git a/education/src/main/assets/content/math_elementary.json b/education/src/main/assets/content/math_elementary.jsonindex 3e7f35b1d9..a68032bf2a 100644--- a/education/src/main/assets/content/math_elementary.json+++ b/education/src/main/assets/content/math_elementary.json@@ -24,7 +24,7 @@ "id": "lesson.mult-meaning", "title": "What is multiplication?", "videos": [- { "youtubeId": "RNxwasijbAo", "title": "Intro to multiplication", "durationSeconds": 0 }+ { "videoUrl": "https://education.maproj.org/RNxwasijbAo.mp4", "title": "Intro to multiplication", "durationSeconds": 0 } ], "exercise": { "id": "ex.mult-meaning",@@ -36,7 +36,7 @@ "id": "lesson.mult-facts", "title": "Times tables", "videos": [- { "youtubeId": "mvOkMYCygps", "title": "Basic multiplication", "durationSeconds": 0 }+ { "videoUrl": "https://education.maproj.org/mvOkMYCygps.mp4", "title": "Basic multiplication", "durationSeconds": 0 } ], "exercise": { "id": "ex.mult-facts",@@ -60,7 +60,7 @@ "id": "lesson.frac-intro", "title": "What is a fraction?", "videos": [- { "youtubeId": "kZzoVCmUyKg", "title": "Introduction to fractions", "durationSeconds": 341 }+ { "videoUrl": "https://education.maproj.org/kZzoVCmUyKg.mp4", "title": "Introduction to fractions", "durationSeconds": 341 } ], "exercise": { "id": "ex.frac-intro",
education/src/main/assets/content/math_k2.json
diff --git a/education/src/main/assets/content/math_k2.json b/education/src/main/assets/content/math_k2.jsonindex 8995b4fb70..f8e48d59dd 100644--- a/education/src/main/assets/content/math_k2.json+++ b/education/src/main/assets/content/math_k2.json@@ -25,7 +25,7 @@ "id": "lesson.k-count", "title": "Count to 5", "videos": [- { "youtubeId": "y2-uaPiyoxc", "title": "Counting with small numbers", "durationSeconds": 0 }+ { "videoUrl": "https://education.maproj.org/y2-uaPiyoxc.mp4", "title": "Counting with small numbers", "durationSeconds": 0 } ], "exercise": { "id": "ex.k-count",@@ -44,7 +44,7 @@ "id": "lesson.k-shapes", "title": "Find the shape", "videos": [- { "youtubeId": "10dTx1Zy_4w", "title": "Recognizing shapes", "durationSeconds": 0 }+ { "videoUrl": "https://education.maproj.org/10dTx1Zy_4w.mp4", "title": "Recognizing shapes", "durationSeconds": 0 } ], "exercise": { "id": "ex.k-shapes",@@ -63,7 +63,7 @@ "id": "lesson.k-trace", "title": "Trace 1, 2, 3", "videos": [- { "youtubeId": "eLRMI2ZX5Qw", "title": "Writing numbers", "durationSeconds": 0 }+ { "videoUrl": "https://education.maproj.org/eLRMI2ZX5Qw.mp4", "title": "Writing numbers", "durationSeconds": 0 } ], "exercise": { "id": "ex.k-trace",
education/src/main/assets/content/reading_elementary.json
diff --git a/education/src/main/assets/content/reading_elementary.json b/education/src/main/assets/content/reading_elementary.jsonindex d855bfbf3b..de4cbb2e1b 100644--- a/education/src/main/assets/content/reading_elementary.json+++ b/education/src/main/assets/content/reading_elementary.json@@ -23,7 +23,7 @@ "id": "lesson.main-idea", "title": "Main idea and details", "videos": [- { "youtubeId": "4swFGRhQoMI", "title": "What is a main idea?", "durationSeconds": 0 }+ { "videoUrl": "https://education.maproj.org/4swFGRhQoMI.mp4", "title": "What is a main idea?", "durationSeconds": 0 } ], "exercise": { "id": "ex.reading",
education/src/main/assets/content/science_elementary.json
diff --git a/education/src/main/assets/content/science_elementary.json b/education/src/main/assets/content/science_elementary.jsonindex 5ed0b9a858..f8980707c2 100644--- a/education/src/main/assets/content/science_elementary.json+++ b/education/src/main/assets/content/science_elementary.json@@ -23,7 +23,7 @@ "id": "lesson.butterfly", "title": "The frog life cycle", "videos": [- { "youtubeId": "Q_mpfkhVIOY", "title": "Life cycle of a frog", "durationSeconds": 247 }+ { "videoUrl": "https://education.maproj.org/Q_mpfkhVIOY.mp4", "title": "Life cycle of a frog", "durationSeconds": 247 } ], "exercise": { "id": "ex.life-cycles",@@ -47,7 +47,7 @@ "id": "lesson.states", "title": "Solid, liquid, gas", "videos": [- { "youtubeId": "gBiF-OLUVTY", "title": "States of matter", "durationSeconds": 0 }+ { "videoUrl": "https://education.maproj.org/gBiF-OLUVTY.mp4", "title": "States of matter", "durationSeconds": 0 } ], "exercise": { "id": "ex.matter",
education/src/main/java/com/vayunmathur/education/MainActivity.kt
diff --git a/education/src/main/java/com/vayunmathur/education/MainActivity.kt b/education/src/main/java/com/vayunmathur/education/MainActivity.ktindex 136b7a2af2..6e72f7c445 100644--- a/education/src/main/java/com/vayunmathur/education/MainActivity.kt+++ b/education/src/main/java/com/vayunmathur/education/MainActivity.kt@@ -87,7 +87,7 @@ sealed interface Route : NavKey { @Serializable data class Quiz(val exerciseId: String) : Route @Serializable- data class VideoPlayer(val youtubeId: String, val title: String) : Route+ data class VideoPlayer(val videoUrl: String, val title: String) : Route @Serializable data class K2Lesson(val lessonId: String) : Route @Serializable@@ -143,7 +143,7 @@ fun MainGraph(viewModel: EducationViewModel) { } // Quiz/Results are exercises off a lesson, not catalog details. entry<Route.Quiz>(metadata = ListDetailPage()) { QuizPage(backStack, viewModel, it.exerciseId) }- entry<Route.VideoPlayer>(metadata = FullscreenPage()) { VideoPlayerPage(backStack, it.youtubeId, it.title) }+ entry<Route.VideoPlayer>(metadata = FullscreenPage()) { VideoPlayerPage(backStack, it.videoUrl, it.title) } entry<Route.K2Lesson>(metadata = ListDetailPage()) { K2LessonPage(backStack, viewModel, it.lessonId) } entry<Route.K2Quiz>(metadata = ListDetailPage()) { K2QuizPage(backStack, viewModel, it.exerciseId) } entry<Route.K2Reward>(metadata = ListDetailPage()) { K2RewardPage(backStack, it.stars) }
education/src/main/java/com/vayunmathur/education/content/ContentModel.kt
diff --git a/education/src/main/java/com/vayunmathur/education/content/ContentModel.kt b/education/src/main/java/com/vayunmathur/education/content/ContentModel.ktindex 27773d2f0b..d7f87b137d 100644--- a/education/src/main/java/com/vayunmathur/education/content/ContentModel.kt+++ b/education/src/main/java/com/vayunmathur/education/content/ContentModel.kt@@ -93,10 +93,10 @@ data class Lesson( val exercise: Exercise? = null, ) -/** Reference to a Khan Academy video streamed from YouTube. */+/** Reference to a lesson video streamed from the self-hosted R2 mirror. */ @Serializable data class VideoRef(- val youtubeId: String,+ val videoUrl: String, val title: String, val durationSeconds: Int = 0, )
education/src/main/java/com/vayunmathur/education/content/ContentValidator.kt
diff --git a/education/src/main/java/com/vayunmathur/education/content/ContentValidator.kt b/education/src/main/java/com/vayunmathur/education/content/ContentValidator.ktindex 4b70adc715..945f2a9017 100644--- a/education/src/main/java/com/vayunmathur/education/content/ContentValidator.kt+++ b/education/src/main/java/com/vayunmathur/education/content/ContentValidator.kt@@ -64,8 +64,8 @@ object ContentValidator { for (lesson in unit.lessons) { lesson.exercise?.let { errors += checkExercise(it, questionIdSet) } for (v in lesson.videos) {- if (v.youtubeId.isBlank()) {- errors += "Lesson '${lesson.id}' has a video with a blank youtubeId"+ if (v.videoUrl.isBlank()) {+ errors += "Lesson '${lesson.id}' has a video with a blank videoUrl" } } }
education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt b/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.ktindex 30d7983f3b..1c49c482cc 100644--- a/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt@@ -65,7 +65,7 @@ fun K2LessonPage(backStack: NavBackStack<Route>, viewModel: EducationViewModel, contentColor = MaterialTheme.colorScheme.onPrimaryContainer, onClick = { narrator?.stop()- backStack.add(Route.VideoPlayer(video.youtubeId, video.title))+ backStack.add(Route.VideoPlayer(video.videoUrl, video.title)) }, ) }
education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt b/education/src/main/java/com/vayunmathur/education/ui/LessonPage.ktindex de9a8d2659..ea4bdc55e0 100644--- a/education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt@@ -66,7 +66,7 @@ fun LessonPage(backStack: NavBackStack<Route>, viewModel: EducationViewModel, le Text(stringResource(R.string.watch), style = MaterialTheme.typography.titleMedium) lesson.videos.forEach { video -> VideoRow(video) {- backStack.add(Route.VideoPlayer(video.youtubeId, video.title))+ backStack.add(Route.VideoPlayer(video.videoUrl, video.title)) } } }
education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt b/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.ktindex f982fe1fa1..9819b2caa5 100644--- a/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt@@ -1,9 +1,7 @@ package com.vayunmathur.education.ui -import android.content.Intent import android.text.format.DateUtils import androidx.compose.runtime.setValue-import com.vayunmathur.library.log.Log import androidx.annotation.OptIn import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box@@ -25,57 +23,39 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableLongStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember-import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.unit.dp-import androidx.core.net.toUri import androidx.media3.common.MediaItem+import androidx.media3.common.PlaybackException+import androidx.media3.common.Player import androidx.media3.common.util.UnstableApi import androidx.media3.datasource.DefaultHttpDataSource import androidx.media3.exoplayer.ExoPlayer-import androidx.media3.exoplayer.source.MergingMediaSource import androidx.media3.exoplayer.source.ProgressiveMediaSource import androidx.media3.ui.compose.PlayerSurface import androidx.media3.ui.compose.SURFACE_TYPE_TEXTURE_VIEW import androidx.media3.ui.compose.material3.buttons.PlayPauseButton import com.vayunmathur.education.Route-import com.vayunmathur.education.util.ResolvedStreams-import com.vayunmathur.education.util.VideoExtractor import com.vayunmathur.library.util.NavBackStack import kotlinx.coroutines.delay import androidx.compose.ui.res.stringResource import com.vayunmathur.education.R -private sealed interface PlayerUiState {- data object Loading : PlayerUiState- data class Ready(val streams: ResolvedStreams) : PlayerUiState- data object Failed : PlayerUiState-}- @kotlin.OptIn(ExperimentalMaterial3Api::class) @Composable fun VideoPlayerPage( backStack: NavBackStack<Route>,- youtubeId: String,+ videoUrl: String, title: String, ) {- var state by remember(youtubeId) { mutableStateOf<PlayerUiState>(PlayerUiState.Loading) }- // Broad catch is deliberate: the extractor throws undocumented RuntimeExceptions- // (not just IOException) on malformed responses, which read as "unplayable".- @Suppress("TooGenericExceptionCaught")- LaunchedEffect(youtubeId) {- state = try {- PlayerUiState.Ready(VideoExtractor.resolve(youtubeId))- } catch (e: Exception) {- Log.status("VideoPlayer", "could not resolve $youtubeId", e)- PlayerUiState.Failed- }- }+ var failed by remember(videoUrl) { mutableStateOf(false) }+ var retryCount by remember(videoUrl) { mutableIntStateOf(0) } AppScaffold( title = { Text(title, maxLines = 1) },@@ -88,10 +68,10 @@ fun VideoPlayerPage( .padding(padding), contentAlignment = Alignment.Center, ) {- when (val s = state) {- PlayerUiState.Loading -> CircularProgressIndicator()- is PlayerUiState.Ready -> VideoSurface(s.streams)- PlayerUiState.Failed -> VideoError(youtubeId)+ if (failed) {+ VideoError { failed = false; retryCount++ }+ } else {+ VideoSurface(videoUrl, retryCount, onError = { failed = true }) } } }@@ -99,24 +79,30 @@ fun VideoPlayerPage( @OptIn(UnstableApi::class) @Composable-private fun VideoSurface(streams: ResolvedStreams) {+private fun VideoSurface(videoUrl: String, retryCount: Int, onError: () -> Unit) { val context = LocalContext.current- val player = remember { ExoPlayer.Builder(context).build() }+ val player = remember(videoUrl) { ExoPlayer.Builder(context).build() }+ var buffering by remember(videoUrl) { mutableStateOf(true) } - DisposableEffect(streams) {- val factory = ProgressiveMediaSource.Factory(DefaultHttpDataSource.Factory())- val source = if (streams.audioUrl == null) {- factory.createMediaSource(MediaItem.fromUri(streams.videoUrl))- } else {- MergingMediaSource(- factory.createMediaSource(MediaItem.fromUri(streams.videoUrl)),- factory.createMediaSource(MediaItem.fromUri(streams.audioUrl)),- )+ DisposableEffect(videoUrl, retryCount) {+ val listener = object : Player.Listener {+ override fun onPlaybackStateChanged(state: Int) {+ if (state == Player.STATE_READY) buffering = false+ }++ override fun onPlayerError(error: PlaybackException) {+ onError()+ } }- player.setMediaSource(source)+ player.addListener(listener)+ val factory = ProgressiveMediaSource.Factory(DefaultHttpDataSource.Factory())+ player.setMediaSource(factory.createMediaSource(MediaItem.fromUri(videoUrl))) player.prepare() player.playWhenReady = true- onDispose { player.release() }+ onDispose {+ player.removeListener(listener)+ player.release()+ } } var position by remember { mutableLongStateOf(0L) }@@ -143,11 +129,15 @@ private fun VideoSurface(streams: ResolvedStreams) { modifier = Modifier.fillMaxSize(), surfaceType = SURFACE_TYPE_TEXTURE_VIEW, )- PlayPauseButton(- player = player,- modifier = Modifier- .align(Alignment.Center),- )+ if (buffering) {+ CircularProgressIndicator(modifier = Modifier.align(Alignment.Center))+ } else {+ PlayPauseButton(+ player = player,+ modifier = Modifier+ .align(Alignment.Center),+ )+ } } Row( Modifier@@ -171,8 +161,7 @@ private fun VideoSurface(streams: ResolvedStreams) { } @Composable-private fun VideoError(youtubeId: String) {- val context = LocalContext.current+private fun VideoError(onRetry: () -> Unit) { Column( Modifier.padding(24.dp), horizontalAlignment = Alignment.CenterHorizontally,@@ -180,13 +169,10 @@ private fun VideoError(youtubeId: String) { ) { Text(stringResource(R.string.couldn_t_load_this_video), color = MaterialTheme.colorScheme.onSurface) Text(- stringResource(R.string.check_your_connection_or_open_it_in_yout),+ stringResource(R.string.check_your_connection_and_try_again), style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant, )- Button(onClick = {- val uri = "https://www.youtube.com/watch?v=$youtubeId".toUri()- context.startActivity(Intent(Intent.ACTION_VIEW, uri))- }) { Text(stringResource(R.string.open_in_youtube)) }+ Button(onClick = onRetry) { Text(stringResource(R.string.retry)) } } }
education/src/main/java/com/vayunmathur/education/util/EducationDownloader.kt
diff --git a/education/src/main/java/com/vayunmathur/education/util/EducationDownloader.kt b/education/src/main/java/com/vayunmathur/education/util/EducationDownloader.ktdeleted file mode 100644index d5af786957..0000000000--- a/education/src/main/java/com/vayunmathur/education/util/EducationDownloader.kt+++ /dev/null@@ -1,26 +0,0 @@-package com.vayunmathur.education.util--import com.vayunmathur.library.network.NetworkClient-import kotlinx.coroutines.runBlocking-import org.schabi.newpipe.extractor.downloader.Downloader-import org.schabi.newpipe.extractor.downloader.Request-import org.schabi.newpipe.extractor.downloader.Response--/** NewPipe downloader backed by the shared [NetworkClient]. Mirrors :youpipe. */-class EducationDownloader : Downloader() {- override fun execute(request: Request): Response = runBlocking {- val response = NetworkClient.performRequest(- url = request.url,- method = request.httpMethod,- headers = request.headers,- body = request.dataToSend,- )- Response(- response.status,- response.statusMessage,- response.headers,- response.body,- response.url,- )- }-}
education/src/main/java/com/vayunmathur/education/util/VideoExtractor.kt
diff --git a/education/src/main/java/com/vayunmathur/education/util/VideoExtractor.kt b/education/src/main/java/com/vayunmathur/education/util/VideoExtractor.ktdeleted file mode 100644index a23d649c63..0000000000--- a/education/src/main/java/com/vayunmathur/education/util/VideoExtractor.kt+++ /dev/null@@ -1,42 +0,0 @@-package com.vayunmathur.education.util--import kotlinx.coroutines.Dispatchers-import kotlinx.coroutines.withContext-import org.schabi.newpipe.extractor.ServiceList--/**- * Streams resolved for playback. If [audioUrl] is null, [videoUrl] is a muxed- * (progressive) stream; otherwise the two are combined at playback time.- */-data class ResolvedStreams(- val title: String,- val videoUrl: String,- val audioUrl: String?,-)--/**- * Resolves a YouTube video id to playable stream URLs via the NewPipe- * extractor (FOSS, no Google APIs) — same mechanism :youpipe uses.- */-object VideoExtractor {- suspend fun resolve(youtubeId: String): ResolvedStreams = withContext(Dispatchers.IO) {- val ex = ServiceList.YouTube.getStreamExtractor("https://www.youtube.com/watch?v=$youtubeId")- ex.fetchPage()-- // The extractor is Kotlin now, so these are plain functions — there is no synthetic- // property sugar (that only applies to Java getters) and no nullable elements.- // Prefer a single muxed progressive stream (simplest to play).- val muxed = ex.getVideoStreams().filter { it.getContent().isNotBlank() }- if (muxed.isNotEmpty()) {- val best = muxed.maxByOrNull { it.getHeight() }!!- return@withContext ResolvedStreams(ex.getName(), best.getContent(), null)- }-- // Otherwise combine the best video-only + audio streams.- val video = ex.getVideoOnlyStreams().filter { it.getContent().isNotBlank() }- .maxByOrNull { it.getHeight() } ?: error("No playable video stream")- val audio = ex.getAudioStreams().filter { it.getContent().isNotBlank() }- .maxByOrNull { it.getBitrate() }- ResolvedStreams(ex.getName(), video.getContent(), audio?.getContent())- }-}
education/src/main/res/values/strings.xml
diff --git a/education/src/main/res/values/strings.xml b/education/src/main/res/values/strings.xmlindex 0f7839ae11..a3d033dc4a 100644--- a/education/src/main/res/values/strings.xml+++ b/education/src/main/res/values/strings.xml@@ -67,8 +67,8 @@ <string name="home">Home</string> <!-- VideoPlayerPage: Error message when video cannot be loaded --> <string name="couldn_t_load_this_video">Couldn\'t load this video.</string>- <!-- VideoPlayerPage: Button to open video in YouTube app as fallback. Verb phrase -->- <string name="open_in_youtube">Open in YouTube</string>+ <!-- VideoPlayerPage: Button to retry loading the video. Verb -->+ <string name="retry">Retry</string> <!-- BadgesPage K2 variant: Title for K2 children where badges are called stickers. Child-friendly --> <string name="my_stickers">My Stickers</string>@@ -157,8 +157,8 @@ <string name="exercise"> · exercise</string> <!-- UnitPage: Button/fallback for unit-final quiz challenge. Noun phrase --> <string name="unit_quiz">Unit quiz</string>- <!-- VideoPlayerPage: Subtitle under video error, suggesting to open in YouTube -->- <string name="check_your_connection_or_open_it_in_yout">Check your connection, or open it in YouTube.</string>+ <!-- VideoPlayerPage: Subtitle under video error, suggesting to retry -->+ <string name="check_your_connection_and_try_again">Check your connection and try again.</string> <!-- HomePage Scholar: Section header for deadline chips when units due soon. Adjective phrase --> <string name="due_soon">Due soon</string>