Learnerfast Logo
FeaturesPricingDocs

Start Here

Welcome to LearnerFastGetting Started

Your Dashboard

Finding Your Way AroundHome — Your Business at a Glance

Features

Communication HubConfig — Payments & VideoCourse BuilderCoursesDesignCustom DomainsResetting Your PasswordPurchasesCreating Your AccountSearchSettingsSigning InVisual Website EditorSubscriptionThemesUsers & AnalyticsVideo HostingCourse VideosWebsites

How-To Guides

Common WorkflowsCreating Things — Quick ReferenceDNS Setup GuideEditing & Deleting — Quick Reference

Video Hosting

Where: left menu → Video Hosting → All Videos. This module uses LearnerFast's video service at https://apiv1.learnerfast.com and configured private video storage.

LearnerFast keeps each upload in private storage and delivers it through the protected video service. Creators upload videos, organize folders, edit title/description/tags/poster, preview secure playback, and open Embed on a ready video. Uploads are processed into encrypted HLS before they can play. The library shows uploading, queued, processing, ready, or failed; retry is available for failed processing.

Plans

Video hosting is sold separately from platform plans. On Pricing (or Dashboard → Subscription), choose a platform plan as usual; below it, add a video hosting plan to the same payment, skip it, or buy video hosting alone. Coupons apply to the platform plan only. Buying a new video hosting plan replaces your current one, and existing customers keep the storage their plan included until that plan ends. Without an active video hosting plan you can't upload, but videos you already uploaded keep playing.

Server integration: Custom Backend

Use this when your website or app decides which viewer may watch. Open Video Hosting → All Videos → Embed → Custom Backend, generate the video's server key, and copy it immediately. Each video has its own key; rotating it stops new sessions using the old key. Keep it on your server.

After your backend checks the viewer's access, request a playback session:

curl -X POST 'https://apiv1.learnerfast.com/v1/embed/VIDEO_ID/playback' \
  -H "Authorization: Bearer $LEARNERFAST_VIDEO_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"viewerId":"viewer-123","watermark":"Viewer 123"}'

The response contains playerUrl, manifestUrl, expiresIn: 300, and watermark. Send only playerUrl to the authorized viewer. The session link must be opened within five minutes; once opened, the player receives a separate playback token for the stream. The Embed screen also provides ready-to-copy cURL, Node.js, PHP, Python, Ruby, and C# examples. This API uses a per-video Bearer key.

Store that key in a server-side secret store or environment variable. Never include it in browser JavaScript, iframe markup, a public repository, or a support request. Check the viewer's permission on every request before asking the video service for a new session. Treat each playerUrl as a temporary access link and avoid logging or sharing it.

Player: iframe embed

<iframe
  src="PLAYER_URL_RETURNED_BY_YOUR_BACKEND"
  title="Video"
  style="border:0;width:100%;aspect-ratio:16/9"
  allow="encrypted-media; fullscreen"
  allowfullscreen
></iframe>

The iframe player uses adaptive HLS with standard play, pause, seek, volume, and fullscreen controls. The dashboard preview also offers a quality selector. Watermark text is displayed over playback. The service checks the signed playback token before serving the manifest, segments, and encryption key. Do not reuse an expired playerUrl; ask your backend for a new session. This is token-gated AES-128 HLS, not device-level DRM, and screen recording remains possible.

Player: Quick Embed

Open Embed → Quick Embed to generate an iframe or complete static HTML snippet. Set an expiry of 1–1440 minutes, an optional domain whitelist, one allowed IP, and/or comma-separated two-letter country codes. Watermark options include copyright text, viewer IP, time, text color, size, opacity, movement interval, and skip interval. JSON mode exports the generated URL and settings. These settings apply to that generated embed only.

In the domain whitelist you can paste a domain or a full URL: https://, www. and a trailing / are ignored, so example.com also allows www.example.com. For several domains, use (example.com|example.org); add a path (example.com/course) to allow only those pages.

Use Quick Embed for a short-lived share or preview. Use Custom Backend when your own users need repeat access: your server can authorize each visit and mint a fresh session. Domain rules use the embedding page's referrer. A path-specific domain rule requires the full referrer; IP/country rules require trusted location headers on the video service. Missing required location data denies playback.

Quick Embed links can be forwarded during their lifetime. Use short expiry times and Custom Backend for paid or private content; a domain whitelist alone does not confirm who the viewer is.

Analytics

Video Hosting → Analytics has Bandwidth, Video Usage, Views, Per Video Views, Watch Time Tracking, User Device Analytics, and Blocked Playback. Pick 7, 30, or 90 days. Watch time is estimated from active player heartbeats; device type comes from the request user agent. Blocked Playback counts attempts rejected by domain, IP, or country rules when the video can be identified. Those three metrics start collecting after tracking is deployed; past sessions cannot be reconstructed. Bandwidth can be understated when object storage redirects segment requests because the service cannot observe the delivered bytes.

Troubleshooting

Problem What to check
Storage is not configured Check Admin → Video Storage: built-in storage or an R2, S3, or Azure provider must be working; contact support if the problem persists
Video is processing or failed Wait for processing; use Retry on a failed video
Embed says domain/IP/country not allowed Check the Quick Embed restrictions and the embedding page's referrer/location headers
Custom Backend returns 401 Check the per-video server key; rotate it if lost, then update your backend
Analytics fails to load after deployment Apply the Video Hosting database schema update described in the service README