diff --git a/public/views/iframe.html b/public/views/iframe.html
index 58c68b32..09d657c9 100644
--- a/public/views/iframe.html
+++ b/public/views/iframe.html
@@ -20,6 +20,7 @@
screen: 0,
hide: 0,
notify: 0,
+ duration: 'unlimited', // HH:MM:SS
token: null,
width: '100vw',
height: '100vh',
diff --git a/tests/test-api.js b/tests/test-api.js
index 01833850..c28934cb 100644
--- a/tests/test-api.js
+++ b/tests/test-api.js
@@ -143,6 +143,7 @@ describe('test-api', () => {
chat: false,
hide: false,
notify: false,
+ duration: '00:30:00',
token: { username: 'user', password: 'pass', presenter: true, expire: '1h' },
};
@@ -150,7 +151,7 @@ describe('test-api', () => {
const result = serverApi.getJoinURL(data);
result.should.equal(
- 'https://example.com/join?room=room1&name=John%20Doe&avatar=avatar.jpg&audio=true&video=false&screen=false&chat=false&hide=false¬ify=false&token=testToken'
+ 'https://example.com/join?room=room1&name=John%20Doe&avatar=avatar.jpg&audio=true&video=false&screen=false&chat=false&hide=false¬ify=false&duration=00:30:00&token=testToken'
);
tokenStub.restore();
@@ -168,7 +169,7 @@ describe('test-api', () => {
const result = serverApi.getJoinURL({});
result.should.equal(
- 'https://example.com/join?room=room1&name=User-123456&avatar=false&audio=false&video=false&screen=false&chat=false&hide=false¬ify=false'
+ 'https://example.com/join?room=room1&name=User-123456&avatar=false&audio=false&video=false&screen=false&chat=false&hide=false¬ify=false&duration=unlimited'
);
});
});
diff --git a/widgets/example-5.html b/widgets/example-5.html
index f0263403..50dee70d 100644
--- a/widgets/example-5.html
+++ b/widgets/example-5.html
@@ -20,6 +20,7 @@
chat: 0,
hide: 0,
notify: 0,
+ duration: 'unlimited', // HH:MM:SS
token: null,
width: '100vw',
height: '100vh',