forked from nanostream/nanoplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer-snippet.html
More file actions
48 lines (45 loc) · 1.53 KB
/
player-snippet.html
File metadata and controls
48 lines (45 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!--
nanoStream H5Live Player
(c) 2018-2020, nanocosmos gmbh
http://www.nanocosmos.de
sales@nanocosmos.de
LEGAL NOTICE:
This material is subject to the terms and conditions defined in
separate license conditions ('LICENSE.txt' / nanocosmos.de/terms)
All information contained herein is, and remains the property
of nanocosmos GmbH and its suppliers if any. The intellectual and technical concepts
contained herein are proprietary to nanocosmos GmbH, and are protected by trade secret
or copyright law. Dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained from nanocosmos.
All modifications will remain property of nanocosmos.
-->
<div id="playerDiv"></div>
<script src="https://demo.nanocosmos.de/nanoplayer/api/release/nanoplayer.4.min.js?20190711"></script>
<script>
var player;
var config = {
"source": {
"bintu": {
"streamid": "859b1a11-5458-404a-bd10-5fcd5a9228f1"
},
},
"playback": {
"autoplay": true,
"automute": true,
"muted": false,
"flashplayer": "https://demo.nanocosmos.de/nanoplayer/nano.player.swf"
},
"style": {
"controls": true
}
};
document.addEventListener('DOMContentLoaded', function () {
player = new NanoPlayer("playerDiv");
player.setup(config).then(function (config) {
console.log("setup success");
console.log("config: " + JSON.stringify(config, undefined, 4));
}, function (error) {
alert(error.message);
});
});
</script>