Video Streaming

HLS Video Streaming for Course Platforms — Open Source

Enterprise-grade video infrastructure without enterprise costs.

DGateway integrates MediaKit, an open-source video processing toolkit, to deliver adaptive-bitrate HLS streaming for your course platform. Upload a video, and MediaKit transcodes it into multiple resolutions (360p to 1080p) with HLS segmentation. Students on slow connections in rural Uganda get smooth playback at lower quality, while those on fast networks get full HD. No Vimeo subscription, no YouTube branding — your content, your infrastructure.

MediaKit Integration & HLS Transcoding

MediaKit is the open-source video engine behind DGateway's streaming. When you upload a video, MediaKit transcodes it into HLS segments at multiple resolutions — 360p, 480p, 720p, and 1080p. The output is a standard .m3u8 manifest file served from S3, R2, or MinIO. No proprietary formats, no vendor lock-in. You own your video pipeline.

  • Open-source MediaKit video engine
  • HLS transcoding: 360p, 480p, 720p, 1080p
  • Standard .m3u8 manifest files
  • Storage on S3, Cloudflare R2, or self-hosted MinIO

Adaptive Bitrate for Any Connection

HLS adaptive bitrate streaming automatically adjusts video quality based on the viewer's bandwidth. A student watching on MTN 3G in Gulu gets 360p without buffering. Another student on fiber in Kampala gets 1080p. The player switches resolutions seamlessly mid-stream — no manual quality selector needed. This is critical for course platforms serving students across Uganda and East Africa.

  • Automatic quality switching based on bandwidth
  • Smooth playback on MTN 3G, Airtel 4G, and fiber
  • No buffering — video adapts to the connection
  • Critical for reaching students in rural East Africa

PlyrPlayer with Progress Resume

DGateway ships with PlyrPlayer, a beautiful, accessible video player that supports HLS streams natively. Students can pause a lesson, close their browser, and resume exactly where they left off. The player supports keyboard shortcuts, fullscreen, playback speed controls, and captions. It's mobile-optimized and works on every browser.

  • PlyrPlayer with native HLS support
  • Progress resume — pick up where you left off
  • Playback speed controls (0.5x to 2x)
  • Caption/subtitle support (SRT, VTT)

AI Chapters & Sprite Previews

MediaKit can generate AI-powered chapter markers from your video content, letting students jump to specific topics without scrubbing through the entire lesson. Sprite previews show thumbnail strips on the timeline — hover over any point to see a frame preview before clicking. These features make long-form course content navigable and student-friendly.

  • AI-generated chapter markers from video content
  • One-click jump to any chapter or topic
  • Sprite timeline previews on hover
  • Thumbnail generation for video galleries

Frequently Asked Questions

What is MediaKit?
MediaKit is an open-source video processing toolkit that handles transcoding, HLS segmentation, thumbnail generation, and sprite previews. DGateway integrates it as the video engine for course platforms.
Does adaptive bitrate really work on MTN 3G?
Yes. HLS adaptive bitrate is specifically designed for variable connections. The player starts at a lower resolution and scales up as bandwidth allows. Students on MTN 3G in rural areas get smooth 360p playback without buffering.
Where are videos stored?
Transcoded HLS segments are stored on your configured object storage — Amazon S3, Cloudflare R2, or self-hosted MinIO. You control the storage and costs.
Can I use this without the course platform?
Yes. The video streaming infrastructure (MediaKit + HLS) works independently. You can use the API to transcode and serve videos for any use case — not just courses.
Is there a file size limit for uploads?
No hard limit from DGateway. Upload limits depend on your storage provider and server configuration. Most setups handle files up to 5 GB without issues.

Ready to get started?

Create your free account and start accepting payments in under 5 minutes.

Start Streaming