Revision 7423bfb7

View differences:

Public/assets/psng.js
4 4
	set_state(ch.name);
5 5
	channel = ch.id;
6 6
	var p = document.getElementById("video-player");
7
	var videlem = document.getElementById("video");
8

  
9
	if (videlem) {
10
		videlem.outerHTML = "";
11
		delete videlem;
12
	}
13

  
7 14
	var videlem = document.createElement("video");
8 15
	var sourceMP4 = document.createElement("source");
9 16

  
......
11 18
	videlem.autoplay = true;
12 19
	videlem.width = "720";
13 20
	videlem.height = "480";
21
	videlem.id = "video";
14 22

  
15 23
	if (videlem.canPlayType("video/mp4")) {
16 24
		sourceMP4.type = "video/mp4";
17
		// sourceMP4.src = "channels/" + channel + ".mp4"
18
		sourceMP4.src = "channels/" + channel
25
		sourceMP4.src = "channels/" + channel + ".mp4"
26
		// sourceMP4.src = "channels/" + channel
19 27
		videlem.appendChild(sourceMP4);
20 28

  
21 29
		p.appendChild(videlem);
22 30
	}
23

  
24
	var d = document.getElementById("video-player-alt");
25
	d.innerHTML = "Alternatively, you can use an external player opening this temporary URI: <strong>http://" + location.host + "/" +  ch.sdpfile + "</strong>. The streaming will terminate if you close this web page.";
26

  
27 31
}
28 32

  
29 33
function set_state(s)
Public/player.html
46 46
			</div>
47 47
			<div id="video-player" class="row text-center" >
48 48
			</div>
49
			<div class="row center-block">
50
				<div class="col-md-3"></div>
51
				<div class="col-md-6">
52
					<p id="video-player-alt"></p>
53
				</div>
54
				<div class="col-md-3"></div>
55
			</div>
56 49
		</div>
57 50
		<div class="col-md-2">
58 51
			<div class="row center-block">

Also available in: Unified diff