Escolar Documentos
Profissional Documentos
Cultura Documentos
Table of Contents
Cover .......................................................................................................................................................... 1
Wowza Streaming Engine VOD Edge ABR (SMIL) with JWPlayer ........................................................ 7
2
A. Environment & Initial Setup
3
B. Install & Configuration
a. Create HTML file (player.html)on root folder (NGINX) to embedded JWPlayer and Wowza
Streaming Engine script
4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JW Player</title>
<script src="jwplayer-x.xx.x/jwplayer.js"></script>
<script>jwplayer.key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";</script>
</head>
<body>
<div id="player"></div>
<script>
jwplayer("player").setup({
sources: [{
file: "rtmp://192.168.124.106:1935/edge/_definst_/mp4:path2/sample.mp4"
},{
file: "http://192.168.124.106:1935/edge/_definst_/mp4:path2/sample.mp4/manifest.f4m"
},{
file: "http://192.168.124.106:1935/edge/_definst_/mp4:path2/sample.mp4/manifest.mpd"
},{
file: "http://192.168.124.106:1935/edge/_definst_/mp4:path2/sample.mp4/playlist.m3u8"
},{
file: "rstp://192.168.124.106:1935/edge/_definst_/mp4:path2/sample.mp4"
}],
width: 640,
height: 360
});
</script>
</body>
</html>
5
Notes :
1. Red : Script Source from location of your jwplayer.js and jwplayer key from your jwplayer
account (ex. /usr/share/nginx/html/jwplayer-7.11.3/jwplayer.js)
2. Green : Adobe RTMP
3. Blue : Adobe HDS
4. Orange : MPEG Dash
5. Purple : Apple HLS / iOS
6. Light Blue : Android
6
Wowza Streaming Engine VOD Edge ABR (SMIL) with JWPlayer
7
b. Create HTML file (player2.html) on JWPlayer root folder :
<DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JW Player</title>
<script src="jwplayer-x.xx.x/jwplayer.js"></script>
<script>jwplayer.key = "xxxx-xxxx-xxxxx-xxxx-xxxxx";</script>
</head>
<body>
<div id="player"></div>
<script>
jwplayer("player").setup({
sources: [{
file: "http://192.168.124.106:1935/edge/_definst_/smil:path2/bigbuckbunny.smil/jwplayer.smil",
type: "rtmp"
},{
file: "http://192.168.124.106:1935/edge/_definst_/smil:path2/bigbuckbunny.smil/manifest.f4m"
},{
file: "http://192.168.124.106:1935/edge/_definst_/smil:path2/bigbuckbunny.smil/manifest.mpd"
},{
file: "http://192.168.124.106:1935/edge/_definst_/smil:path2/bigbuckbunny.smil/playlist.m3u8"
},{
file: "rstp://192.168.124.106:1935/edge/_definst_/smil:path2/bigbuckbunny.smil"
}],
width: 640,
height: 360
});
</script>
</body>
</html>
8
Notes :
1. Red : Script Source from location of your jwplayer.js and jwplayer key from your jwplayer
account (ex. /usr/share/nginx/html/jwplayer-7.11.3/jwplayer.js)
2. Green : Adobe RTMP
3. Blue : Adobe HDS
4. Orange : MPEG Dash
5. Purple : Apple HLS / iOS
6. Light Blue : Android