header('Content-Disposition: attachment; filename="' . $video_name . '"');
Refresh the page and play the video. Look for a link appearing in the list; this is the direct stream.
To protect your video files from direct download, you can place them outside of your webroot. This way, direct access to the files is blocked by the server.
Allow users to obtain a direct, secure download link for videos served via the XHAccess system so they can download videos for offline use while preserving access controls and auditability.
If you have a paid subscription: