From 59d37abc2bf616009f2d47969639b66095769a57 Mon Sep 17 00:00:00 2001 From: Winlin Date: Mon, 21 Nov 2022 19:00:33 +0800 Subject: [PATCH] Player: Use H5 native to play mp4. (#3262) --- trunk/research/players/srs_player.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trunk/research/players/srs_player.html b/trunk/research/players/srs_player.html index c25533ab3..e7f47a5de 100755 --- a/trunk/research/players/srs_player.html +++ b/trunk/research/players/srs_player.html @@ -169,6 +169,12 @@ stopPlayers(); if (!r) return; + // Use H5 native to play mp4. + if (r.stream.indexOf('.mp4') > 0) { + $('#video_player').attr('src', r.url).show(); + return; + } + // Start play HTTP-FLV. if (r.stream.indexOf('.flv') > 0) { if (!flvjs.isSupported()) {