Przeglądaj źródła

Merge pull request #1322 from jitsi/livestream_help_link

livestream link help link
j8
yanas 8 lat temu
rodzic
commit
94391234cc

+ 9
- 0
css/components/_link.scss Wyświetl plik

8
         text-decoration: underline;
8
         text-decoration: underline;
9
         @include transition(color .1s ease-in);
9
         @include transition(color .1s ease-in);
10
     }
10
     }
11
+}
12
+
13
+/**
14
+ * Helper links are links that are meant to open a documentation page or more
15
+ * detailed info.
16
+ */
17
+.helper-link {
18
+    @extend .link;
19
+    font-size: 12px;
11
 }
20
 }

+ 3
- 1
interface_config.js Wyświetl plik

70
     AUDIO_LEVEL_SECONDARY_COLOR: "rgba(255,255,255,0.2)",
70
     AUDIO_LEVEL_SECONDARY_COLOR: "rgba(255,255,255,0.2)",
71
     POLICY_LOGO: null,
71
     POLICY_LOGO: null,
72
     LOCAL_THUMBNAIL_RATIO: 16/9, //16:9
72
     LOCAL_THUMBNAIL_RATIO: 16/9, //16:9
73
-    REMOTE_THUMBNAIL_RATIO: 1 //1:1
73
+    REMOTE_THUMBNAIL_RATIO: 1, //1:1
74
+    // Documentation reference for the live streaming feature.
75
+    LIVE_STREAMING_HELP_LINK: "https://jitsi.org/live"
74
 };
76
 };

+ 1
- 0
lang/main.json Wyświetl plik

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

+ 8
- 1
modules/UI/recording/Recording.js Wyświetl plik

51
     const streamIdRequired
51
     const streamIdRequired
52
         = APP.translation.generateTranslationHTML(
52
         = APP.translation.generateTranslationHTML(
53
             "liveStreaming.streamIdRequired");
53
             "liveStreaming.streamIdRequired");
54
+    const streamIdHelp
55
+        = APP.translation.generateTranslationHTML(
56
+            "liveStreaming.streamIdHelp");
54
 
57
 
55
     return new Promise(function (resolve, reject) {
58
     return new Promise(function (resolve, reject) {
56
         dialog = APP.UI.messageHandler.openDialogWithStates({
59
         dialog = APP.UI.messageHandler.openDialogWithStates({
60
                     `<input  class="input-control"
63
                     `<input  class="input-control"
61
                     name="streamId" type="text"
64
                     name="streamId" type="text"
62
                     data-i18n="[placeholder]dialog.streamKey"
65
                     data-i18n="[placeholder]dialog.streamKey"
63
-                    autofocus>`,
66
+                    autofocus><div style="text-align: right">
67
+                    <a class="helper-link" target="_new" 
68
+                    href="${interfaceConfig.LIVE_STREAMING_HELP_LINK}">`
69
+                        + streamIdHelp
70
+                        + `</a></div>`,
64
                 persistent: false,
71
                 persistent: false,
65
                 buttons: [
72
                 buttons: [
66
                     {title: cancelButton, value: false},
73
                     {title: cancelButton, value: false},

Ładowanie…
Anuluj
Zapisz