private VideoInputConfigBase RebuildInputSource_Lovense(string id, StreamerRebuildContext rebuildContext) { if (PluginContextSetup.IsLoaded()) { return(new VideoInputConfigFull(new InputSetup(Type: PluginContext.PluginName, Input: "", ObjectInput: GetWebBrowserObjectInput(0, 0)))); // h, w set in ClientStreamer } else { return(GetFailedInputSource(id, rebuildContext, InputIssueDesc.PluginIsNotInstalled, $"Lovense plugin is not installed or failed to load")); } }
internal static bool IsLovenseVisible() { PluginContextSetup.TryToLoad(); return(PluginContextSetup.IsLoaded() || PluginContextSetup.IsInstalledForOthers()); }
public static bool IsInstalled(SceneEditingModel model) { return(model.SceneState.IsLocal ? PluginContextSetup.IsLoaded() : (model.SceneState.Device.PluginFlags & ((int)PluginFlags.Lovense)) > 0); }
private void UpdatePluginModel() { bool lovense = PluginContextSetup.IsLoaded(); _coreData.ThisDevice.PluginFlags = lovense ? (int)PluginFlags.Lovense : 0; }