Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created December 18, 2019 09:34
Show Gist options
  • Select an option

  • Save phpfiddle/b573ff46c310b81fb3d7694d1035f362 to your computer and use it in GitHub Desktop.

Select an option

Save phpfiddle/b573ff46c310b81fb3d7694d1035f362 to your computer and use it in GitHub Desktop.
[ Posted by Guest ] flowplayer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-2">
<meta charset="utf-8">
<title>
Norwid
</title>
<link rel="stylesheet" href="//releases.flowplayer.org/7.2.4/skin/skin.css">
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="//releases.flowplayer.org/7.2.4/flowplayer.min.js"></script>
<script src="//releases.flowplayer.org/hlsjs/flowplayer.hlsjs.light.min.js"></script>
<script src="//releases.flowplayer.org/audio/flowplayer.audio.min.js"></script>
<script>
flowplayer.conf = {
live: true, // mandatory with live streams
rtmp: "rtmp://serwer/live/livestream1",
ratio: 9/16
};
flowplayer(function (api, root) {
api.bind("load", function (e, api, video) {
$("#vtype").text(video.type);
// announce missing stream
}
).bind("error", function (e, api, err) {
if (err.code === 4 || err.code === 9) {
$(".fp-message p", root).text("Przepraszamy, obraz jest chwilowo niedostepny, sprobuj ponownie za chwile...");
}
}
);
}
);
</script>
</head>
<body>
<div class="flowplayer" style="width:100%px; height:100%px"data-fullscreen="true">
<video autoplay>
<source type="application/x-mpegurl" src="http://207.110.52.62:8080/s//hls/5/9584/polsat_266/1/1/index.m3u8">
<source type="video/flash" src="rtmp://51.75.67.172/live/cfilm?email=adrianjankiewicz9@gmail.com&pass=adis1227">
</video>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment