mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-16 08:08:28 +00:00
Update main.js
This commit is contained in:
parent
7ef903d6b5
commit
20d9339c14
19
main.js
19
main.js
@ -220,21 +220,8 @@ if (window.obsstudio){
|
||||
log("macOS: "+navigator.userAgent.indexOf('Mac OS X') != -1);
|
||||
log(window.obsstudio);
|
||||
|
||||
if (!(urlParams.has('streamlabs'))){
|
||||
|
||||
var ver1 = window.obsstudio.pluginVersion;
|
||||
ver1 = ver1.split(".");
|
||||
updateURL("streamlabs");
|
||||
if (ver1.length == 3){ // Should be 3, but disabled3
|
||||
if ((ver1.length == 3) && (parseInt(ver1[0])==2) && (parseInt(ver1[1])>4) && (navigator.userAgent.indexOf('Mac OS X') != -1)){
|
||||
getById("main").innerHTML = "<div style='background-color:black;color:white;' data-translate='obs-macos-not-supported'><h1>On macOS, Please use the <a href='https://github.com/steveseguin/electroncapture'>Electron Capture app</a>, or OBS v23, as newer versions of OBS are not supported currently on macOS.</h1>\
|
||||
<br /><h2> You can find details <u><a href='https://github.com/steveseguin/obsninja/wiki/FAQ#mac-os'>within our wiki guide - https://github.com/steveseguin/obsninja/wiki/FAQ#mac-os</a></u></h2>\
|
||||
<br /> If using OBS v23 or Streamlabs, you can bypass this error message by refreshing, <a href='"+ window.location.href +"'> Clicking Here,</a> or by adding <i>&streamlabs</i> to the URL.\
|
||||
<br /> Please report this problem to steve@seguin.email if you feel it is an error.\
|
||||
</div>";
|
||||
}
|
||||
}
|
||||
}
|
||||
// Upgrade to OBS v26.1.2 to obtain native support for OBS.Ninja.
|
||||
|
||||
} catch(e){errorlog(e);}
|
||||
|
||||
window.addEventListener('obsSceneChanged', function(event){
|
||||
@ -6135,4 +6122,4 @@ function recordVideo(target, event, videoKbps = false, interval=30){ // event.c
|
||||
video.recorder.mediaRecorder.start(100); // 100ms chunks
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user