3.13.2 • Published 4 years ago
@inlasningstjanst/begreppa-video v3.13.2
Begreppa video player
Begreppa video player is a module for showing videos from Inlasningstjanst.se
Installation
Use the package manager npm to install Begreppa video player.
npm install @inlasningstjanst/begreppa-video
Usage
Javascript
// If you use ES Modules
import VideoContainer from '@inlasningstjanst/begreppa-video'
// You'll need a css-loader to import
// the css for the videoplayer for example: "sass-loader"
import '@inlasningstjanst/begreppa-video/dist/style.css'
var authToken = 'token'
var elementID = 'film_container'
var domain = 'xxxxxxxx.inlasningstjanst.se'
var videoID = 1
var video = new VideoContainer()
video.init(authToken, videoID, domain, elementID)
// Video can also be initialized with an optional parameter "options"
// Example
var options = {
'extraButtons': ['theatre','subtitleSize'],
'theatreContainerID': 'theatre_container',
'disabledLanguageTooltip': 'Example text'
}
// 'theatreContainerID' must be defined if 'extraButtons' contains 'theatre'
video.init(authToken, videoID, domain, elementID, options)
HTML
<!DOCTYPE html>
<html>
<script type="text/javascript" src="path/to/js"></script>
<link rel="stylesheet" type="text/css" href="path/to/css">
<body>
<div id="film_container"></div>
</body>
</html>
HTML (with theatreContainerID)
<!DOCTYPE html>
<html>
<script type="text/javascript" src="path/to/js"></script>
<link rel="stylesheet" type="text/css" href="path/to/css">
<body>
<div id="theatre_container">
<div id="film_container"></div>
<div id="optional_additional_container">For example a list of films</div>
</div>
</body>
</html>
3.13.2
4 years ago
3.13.1
4 years ago
3.13.0
5 years ago
3.12.1
5 years ago
3.12.0
5 years ago
3.11.11
5 years ago
3.11.10
5 years ago
3.11.9
6 years ago
3.11.8
6 years ago
3.11.7
6 years ago
3.11.6
6 years ago
3.11.5
6 years ago
3.11.4
6 years ago
3.11.3
6 years ago
3.11.1
6 years ago
3.11.0
6 years ago
3.10.9
6 years ago
3.10.8
6 years ago
3.10.7
6 years ago
3.10.6
6 years ago
3.10.5
6 years ago
3.10.4
6 years ago
3.10.3
6 years ago
3.10.2
6 years ago
3.10.1
6 years ago
3.10.0
6 years ago