Skip to content

courses-native-player

One lesson in the studio’s app (stage 42). The video player is a prop, so this block depends on no device package: the app passes its own (expo-video, with the signed HLS address), and an offline player can replace it later. What the lesson holds is the host’s (useLesson), the token is the host’s and is asked for again before it expires (usePlayback), and progress is kept by the host only while the student holds the course (useProgress).

Skin native
Pack courses
Add it cos add courses-native-player
Files lesson-screen.tsx, LICENSE
Depends on native-base, content-native-rich-text
Packages @composable-os/pack-courses

Through its hooks; the host decides what each caller may do.

Source: packs/courses/blocks/courses-native-player.