Revision 9ff58c88

View differences:

Public/assets/mysource.js
128 128
									var videoTracks = stream.getVideoTracks();
129 129
									if(videoTracks === null || videoTracks === undefined || videoTracks.length === 0) {
130 130
										// No webcam
131
										$('#myvideo').append(
131
										$('#plugin').append(
132 132
											'<div class="no-video-container">' +
133 133
												'<i class="fa fa-video-camera fa-5 no-video-icon" style="height: 100%;"></i>' +
134 134
												'<span class="no-video-text" style="font-size: 16px;">No webcam available</span>' +
......
167 167
	xhttp.onreadystatechange = function() {
168 168
		if (this.readyState == 4 && this.status == 200) {
169 169
			set_state("Streaming " + description);
170
			var btn = document.getElementById("submit");
171
			btn.onclick = function(){	
172
				alert("Already streaming");
173
			};
170
			$('#creation_form').hide();
174 171
		}
175 172
		if (this.readyState == 4 && this.status != 200) {
176 173
			set_state("&lt;An error occurred with the streaming process&gt;");
Public/assets/player.js
125 125
										if(spinner !== null && spinner !== undefined)
126 126
											spinner.stop();
127 127
										spinner = null;
128
										$('#waitingvideo').hide();
128 129
										var videoTracks = stream.getVideoTracks();
129 130
										if(videoTracks === null || videoTracks === undefined || videoTracks.length === 0)
130 131
											return;
Public/mysource.html
53 53
		<div class="row center-block">
54 54
			<h2 id="player-title" class="text-center">&lt;Prova&gt;</h2>
55 55
		</div>
56
		<div class="row center-block" id="creation_form">
56
		<div class="row text-center" id="creation_form">
57 57
			<input type=text id="description" value="My Channel"/>
58 58
			<input type=button id="submit" value="Create channel"/>
59 59
		</div>
60 60
		<div id="plugin" class="row text-center" >
61 61
						<div class="panel-body" id="stream"></div>
62
						<video class="rounded centered" id="myvideo" width="800" height="600" autoplay />
62
						<video class="rounded centered" id="myvideo" width="400" height="300" autoplay />
63 63
						<span id="status"></span>
64 64
		</div>
65 65
	</div>
src/pstreamer.c
30 30

  
31 31
#define MAX_PSINSTANCE_CONFIG_LENGTH 255
32 32
#define STREAMER_PEER_CONF "port=%d,dechunkiser=rtp,audio=%d,video=%d,addr=%s"
33
#define STREAMER_SOURCE_CONF "port=%d,chunkiser=rtp,audio=%d,video=%d,addr=%s,max_delay_ms=5,chunk_size=20"
33
#define STREAMER_SOURCE_CONF "port=%d,chunkiser=rtp,audio=%d,video=%d,addr=%s,max_delay_ms=5,rfc3551=1,chunk_size=1000"
34 34
//#define STREAMER_SOURCE_CONF "port=%d,chunkiser=rtp,base=%d,addr=%s,max_delay_ms=5,chunk_size=200,rfc3551=1"
35 35

  
36 36
struct pstreamer {

Also available in: Unified diff