Esempio n. 1
0
        /// <summary>
        /// Returns the MediaRouter object associated with the global request context.
        /// If |callback| is non-NULL it will be executed asnychronously on the UI
        /// thread after the manager's storage has been initialized. Equivalent to
        /// calling CefRequestContext::GetGlobalContext()->GetMediaRouter().
        /// </summary>
        public static CefMediaRouter GetGlobalMediaRouter(CefCompletionCallback?callback)
        {
            var nCallback = callback != null?callback.ToNative() : null;

            var nResult = cef_media_router_t.get_global(nCallback);

            return(CefMediaRouter.FromNative(nResult));
        }
Esempio n. 2
0
 /// <summary>
 /// Returns the MediaRouter object associated with the global request context.
 /// Equivalent to calling
 /// CefRequestContext::GetGlobalContext()->GetMediaRouter().
 /// </summary>
 public static CefMediaRouter GetGlobalMediaRouter()
 {
     return(CefMediaRouter.FromNative(
                cef_media_router_t.get_global()
                ));
 }