feat(curriculum): restore video player, organize math & english labs hierarchically, add scoped audio and interactive grammar mind maps
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user