/// <summary> /// Gets the <see cref="CefMediaRouter"/> object associated with the global request context. /// </summary> /// <param name="callback"> /// If <paramref name="callback"/> is non-null it will be executed asnychronously on the CEF UI thread /// after the manager's storage has been initialized. /// </param> /// <returns> /// The <see cref="CefMediaRouter"/> object associated with the global request context. /// </returns> public static unsafe CefMediaRouter GetGlobal(CefCompletionCallback callback) { return(CefMediaRouter.Wrap(CefMediaRouter.Create, CefNativeApi.cef_media_router_get_global(callback is null ? null : callback.GetNativeInstance()))); }
/// <summary> /// Returns the MediaRouter object associated with this context. If |callback| /// is non-NULL it will be executed asnychronously on the UI thread after the /// manager's context has been initialized. /// </summary> public unsafe virtual CefMediaRouter GetMediaRouter(CefCompletionCallback callback) { return(SafeCall(CefMediaRouter.Wrap(CefMediaRouter.Create, NativeInstance->GetMediaRouter((callback != null) ? callback.GetNativeInstance() : null)))); }