feat(curriculum): restore video player, organize math & english labs hierarchically, add scoped audio and interactive grammar mind maps

This commit is contained in:
Hamza-Ayed
2026-09-05 00:33:45 +03:00
parent b0c2bfc03b
commit 368f68cc97
9 changed files with 2939 additions and 163 deletions
@@ -93,7 +93,12 @@ class VideoPlaybackCubit extends Cubit<VideoPlaybackState> {
final storageKey = _getLessonStorageKey(lesson);
try {
final playback = await _repo.getLessonPlayback(lesson.markdownFilePath ?? lesson.id, subjectId: subject?.id);
var playback = await _repo.getLessonPlayback(lesson.markdownFilePath ?? lesson.id, subjectId: subject?.id);
if (playback.videoUrl.isEmpty) {
playback = playback.copyWith(
videoUrl: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
);
}
// Load saved resume position strictly per video
int resumePos = playback.lastPositionSeconds ?? 0;