🚸 Heads-up that webrtc is still considered beta
After a discussion on discord, better warn users that they might have to expect disruption here down the line while things are getting figured out.
This commit is contained in:
1 parent
b4b38133ad
commit
a51245eb76
2 files changed
+8
-2
No files matched your search
@@ -311,6 +311,9 @@ $(function () {
|
||||
self.webcam_ffmpegPathOk(false);
|
||||
self.webcam_ffmpegPathBroken(false);
|
||||
};
|
||||
self.webcam_streamType = ko.pureComputed(function () {
|
||||
return determineWebcamStreamType(self.webcam_streamUrl());
|
||||
});
|
||||
|
||||
self.server_onlineCheckText = ko.observable();
|
||||
self.server_onlineCheckOk = ko.observable(false);
|
||||
@@ -442,7 +445,7 @@ $(function () {
|
||||
var text = gettext(
|
||||
"If you see your webcam stream below, the entered stream URL is ok."
|
||||
);
|
||||
var streamType = determineWebcamStreamType(self.webcam_streamUrl());
|
||||
var streamType = self.webcam_streamType();
|
||||
var webcam_element;
|
||||
var webrtc_peer_connection;
|
||||
if (streamType == "mjpg") {
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
<input type="text" class="input-block-level" data-bind="value: webcam_streamUrl, valueUpdate: 'afterkeydown'" id="settings-webcamStreamUrl">
|
||||
<button class="btn" type="button" data-bind="click: testWebcamStreamUrl, enable: webcam_streamUrl() && !testWebcamStreamUrlBusy(), css: {disabled: !webcam_streamUrl() || testWebcamStreamUrlBusy()}"><i class="fas fa-spinner fa-spin" data-bind="visible: testWebcamStreamUrlBusy"></i> {{ _('Test') }}</button>
|
||||
</div>
|
||||
<span class="help-block">{% trans %}Needs to be reachable from the browser displaying the OctoPrint UI, used to embed the webcam stream into the page.{% endtrans %}</span>
|
||||
<span class="help-block">
|
||||
<p>{% trans %}Needs to be reachable from the browser displaying the OctoPrint UI, used to embed the webcam stream into the page.{% endtrans %}</p>
|
||||
<p data-bind="visible: webcam_streamType() === 'webrtc'">{% trans %}<strong>Heads-up!</strong> WebRTC support is still in beta and subject to change, monitor the changelog of future versions closely for heads-ups regarding the WebRTC support in OctoPrint.{% endtrans %}</p>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user