Learn how to integrate Fermion live sessions into your website using the SDK or manual iframe embedding, with support for both instructor WebRTC mode and student view-only mode.
6779080e80ec97e953a17971
. You will be able to create a Live session from your dashboard.
First, create a new live event.
Live events
tab in your dashboard, go to Manage features
tab at the top and enable live events.Manage sessions
to create a new session inside a live event:
jsonwebtoken
package:
payloadObject
must conform to the following zod schema:
FERMION_API_KEY
with your actual API key -
Provide a unique user ID for each viewer - playbackOptions
is optional. If
you do not pass this object we will use the defaults as mentioned above.get-signed-url-data-for-live-event-session
API endpoint from your backend
server with your Fermion API key. Refer to the API
documentation
for more information.getPrivateEmbedPlaybackIframeCode
. They are not available when using
manual M3U8 playback with custom players.Feature | Iframe Embed (Recommended) | Custom M3U8 Playback (Advanced) |
---|---|---|
DRM Protection | ✅ Full DRM support | ❌ No DRM support |
Player Experience | ✅ Fully-built player with buffering, quality switching, error handling | ⚠️ Requires custom implementation |
Setup Complexity | ✅ Zero configuration, works out of the box | ⚠️ Additional complexity and dependencies |
UI/UX Consistency | ✅ Consistent, tested experience | ⚠️ Custom UI development required |
Maintenance | ✅ Automatic updates and improvements | ⚠️ Manual maintenance and bug fixes |
Customization | ⚠️ Limited to Fermion player interface | ✅ Full control over player and behavior |
WebRTC Support | ✅ Full WebRTC support for instructors | ❌ No WebRTC support (viewers only) |
Best For | Most production use cases, content protection, instructors | Advanced customization, existing player integration, viewers only |
modify-user-state-in-live-event-session
private API endpoint. Check the documentation for it.