Skip to content

v1.0.53 - YouTube Video Pipeline Resilience, Player Fallback & PIN Security

Choose a tag to compare

@parthasdey2304 parthasdey2304 released this 09 Sep 18:18
· 11 commits to main since this release
976d705

Vastavik Learning v1.0.53 Release Notes

馃幀 YouTube Video Lecture Pipeline & Player Enhancements

1. Robust Multi-Format YouTube Video ID Extraction (HmacUtil.kt)

  • Full support for:
    • Direct 11-character video IDs (with leading/trailing whitespace trimming)
    • Standard watch URLs (youtube.com/watch?...v=ID regardless of query parameter order)
    • Shortened URLs (youtu.be/ID with or without ?si= tracking parameters)
    • YouTube Shorts (youtube.com/shorts/ID)
    • Embeds and Live stream URLs (youtube.com/embed/ID, youtube.com/live/ID)
  • Prevents unlisted or mobile-shared URLs from failing video ID resolution.

2. Dual Naming Persistence & Resilient Deserialization (CourseModel.kt & admin_dashboard.py)

  • Upgraded LessonModel.fromSnapshot() to parse both snake_case (youtube_url, youtube_video_id, duration_sec, video_format) and camelCase (youtubeUrl, youtubeVideoId, durationSec, videoFormat) Firestore attributes.
  • Fixed root cause where admin web uploads stored in snake_case resolved to empty video IDs in direct Firestore stream listeners.
  • Backend /admin/videos now persists both naming conventions simultaneously.

3. Fail-Safe Video Player with Direct Fallback (VastavikYouTubePlayer.kt)

  • Added resilient video ID resolution directly in the player composable.
  • If YouTube's embedded player encounters an embedding block (e.g. "Allow embedding" not yet saved by creator) or temporary playback error, the player displays an informative message along with an "Open Video" button that seamlessly opens the lecture in the YouTube app or browser so students are never blocked.

4. Emulator Security PIN UI Cleanup (EmulatorSecurityCurtain.kt)

  • Removed hardcoded vastavik2026 password from the UI placeholder and error messages while keeping the admin bypass PIN active for developer testing.

馃摝 Release Assets

  1. vastavikLearning-v1.0.53.apk: Main Android Application (versionCode = 53)
  2. vastavik-codeoss-extension.apk: CodeOSS Companion Extension (versionCode = 20)
  3. source_v1.0.53.zip: Complete source code archive (.zip)
  4. source_v1.0.53.tar.gz: Complete source code archive (.tar.gz)