Add webinar recording page with embedded video player

Changes:
- Create WebinarRecording page with embedded video player
- Supports YouTube, Vimeo, Google Drive, and direct MP4
- Check access via user_access or paid orders
- Update webinar recording buttons to navigate to page instead of new tab
- Add route /webinar/:slug

This keeps users on the platform for better UX instead of
redirecting to external video sites.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2025-12-25 23:05:32 +07:00
parent e347a780f8
commit 2dd9d544ee
5 changed files with 202 additions and 11 deletions

View File

@@ -157,7 +157,10 @@ export default function MemberDashboard() {
case "consulting":
return { label: "Jadwalkan", icon: Calendar, href: item.product.meeting_link };
case "webinar":
return { label: "Tonton", icon: Video, href: item.product.recording_url || item.product.meeting_link };
if (item.product.recording_url) {
return { label: "Tonton", icon: Video, route: `/webinar/${item.product.slug}` };
}
return { label: "Gabung", icon: Video, href: item.product.meeting_link };
case "bootcamp":
return { label: "Lanjutkan", icon: BookOpen, route: `/bootcamp/${item.product.slug}` };
default: