GithubHelp home page GithubHelp logo

foggysq / hsldash-player Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 23 KB

Online player for HSL and MPEG-DASH

Home Page: http://fous.name/player

License: Apache License 2.0

JavaScript 67.04% HTML 17.87% CSS 15.09%

hsldash-player's Introduction

HSL/MPEG-DASH Player

Online player for HSL and MPEG-DASH. Download repository because DEMO can be changed. Then place it under a web server (do not try to run from the file system) to run DEMO.

Quick Start for Users

Attach video player styles:

<link rel="stylesheet" href="style.css">

Insert this code where player should be (e.g. id = 'dipl'):

<!-- Player / Плеер -->
<div id="dipl" class="di_player">
	<div class="di_alert">To launch video player Javascript is needed.<br \>Для проигрывания видео необходим Javascript.</div>
	<video></video>
	<div class="di_panel">
		<div class="di_ppause">
			<a class="di_play"></a>
		</div>
		<div class="di_ctime">00:00:00</div>
		<div class="di_progress">
			<div class="di_pb" style="width: 1%;"></div>
		</div>
		<div class="di_ft">00:00:00</div>
	</div>
</div>

And add this at the end of the body, like this:

<body>
...
	<!-- Libraries -->
	<script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
	<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
	<script src="ess.3.2.js"></script>
	<!-- Player -->
	<script type="text/javascript" src="hlsmpd.js"></script>
	<script type="text/javascript">
		var url = 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8';
		var autoplay = false;
		var player = new hlsmpd('dipl', url, autoplay);
	</script>
</body>

For more information see: DEMO, index.html and hlsmpd.js in Git.

Using: hls.js и dash.js

hsldash-player's People

Contributors

foggysq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.