' +
@@ -339,7 +339,7 @@ $(document).ready(function() {
if(localVideos === 0) {
// No video, at least for now: show a placeholder
if($('#videolocal .no-video-container').length === 0) {
- $('#videolocal').append(
+ $('#videolocal').prepend(
'
' +
'
' +
'
No webcam available' +
@@ -355,7 +355,7 @@ $(document).ready(function() {
Janus.log("Created local stream:", stream);
Janus.log(stream.getTracks());
Janus.log(stream.getVideoTracks());
- $('#videolocal').append('
');
+ $('#videolocal').prepend('
');
Janus.attachMediaStream($('#myvideo' + trackId).get(0), stream);
}
if(sfutest.webrtcStuff.pc.iceConnectionState !== "completed" &&
diff --git a/html/demos/videoroom.js b/html/demos/videoroom.js
index 1e5e8ba690..a1cc61f253 100644
--- a/html/demos/videoroom.js
+++ b/html/demos/videoroom.js
@@ -274,7 +274,7 @@ $(document).ready(function() {
toastr.warning("Our video stream has been rejected, viewers won't see us");
// Hide the webcam video
$('#myvideo').addClass('hide');
- $('#videolocal').append(
+ $('#videolocal').prepend(
'
' +
'
' +
'
Video rejected, no webcam' +
@@ -305,7 +305,7 @@ $(document).ready(function() {
if(localVideos === 0) {
// No video, at least for now: show a placeholder
if($('#videolocal .no-video-container').length === 0) {
- $('#videolocal').append(
+ $('#videolocal').prepend(
'
' +
'
' +
'
No webcam available' +
@@ -336,7 +336,7 @@ $(document).ready(function() {
if(localVideos === 0) {
// No video, at least for now: show a placeholder
if($('#videolocal .no-video-container').length === 0) {
- $('#videolocal').append(
+ $('#videolocal').prepend(
'
' +
'' +
'No webcam available' +
@@ -352,7 +352,7 @@ $(document).ready(function() {
Janus.log("Created local stream:", stream);
Janus.log(stream.getTracks());
Janus.log(stream.getVideoTracks());
- $('#videolocal').append('');
+ $('#videolocal').prepend('');
Janus.attachMediaStream($('#myvideo' + trackId).get(0), stream);
}
if(sfutest.webrtcStuff.pc.iceConnectionState !== "completed" &&