0

H264 stream over RTSP in a HTML

Good morning,

I am trying to embed a H264 RTSP stream in a HTML. Please find my very basic html file below. The server is an Axis camera and the stream works in VLC. What happens is that the first frame is loaded and freezes so I see the same image forever on the screen. I am using LS425 and I tried a couple of settings but native video playback is always on. Does anyone have a working example of an HTML with a H264 RTSP stream?

 

<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RTSP Stream</title>
    <style>
        video {
            width: 100%;
            height: auto;
        }
    </style>
</head>
<body>
    <video src="rtsp://192.168.201.152:554/axis-media/media.amp" x-bs-stream-timeout="0" hwz="on">
        RTSP stream should appear here
    </video>
</body>
</html>

1 comment

  • 0
    Avatar
    Beni Mahler

    Also if I use the stream URL in a streaming-video-widget, it works fine.

Please sign in to leave a comment.