livestream link to provide more context to users on where to retrieve their stream key

This commit is contained in:
Aaron van Meerten 2017-02-14 16:07:12 -06:00
parent f7dcd1ba2c
commit 732a433ec1
2 changed files with 6 additions and 1 deletions

View File

@ -387,6 +387,7 @@
"failedToStart": "Live streaming failed to start",
"buttonTooltip": "Start / Stop live stream",
"streamIdRequired": "Please fill in the stream id in order to launch the live streaming.",
"streamIdHelp": "Where do I find this?",
"error": "Live streaming failed. Please try again.",
"busy": "All recorders are currently busy. Please try again later."
}

View File

@ -51,6 +51,9 @@ function _requestLiveStreamId() {
const streamIdRequired
= APP.translation.generateTranslationHTML(
"liveStreaming.streamIdRequired");
const streamIdHelp
= APP.translation.generateTranslationHTML(
"liveStreaming.streamIdHelp");
return new Promise(function (resolve, reject) {
dialog = APP.UI.messageHandler.openDialogWithStates({
@ -60,7 +63,8 @@ function _requestLiveStreamId() {
`<input class="input-control"
name="streamId" type="text"
data-i18n="[placeholder]dialog.streamKey"
autofocus>`,
autofocus><div style="text-align: right">
<a class="link" target="_new" href="https://jitsi.org/live">`+streamIdHelp+`</a></div>`,
persistent: false,
buttons: [
{title: cancelButton, value: false},