/// <summary> /// Create a new route between |source| and |sink|. Source and sink must be /// valid, compatible (as reported by CefMediaSink::IsCompatibleWith), and a /// route between them must not already exist. |callback| will be executed /// on success or failure. If route creation succeeds it will also trigger an /// asynchronous call to CefMediaObserver::OnRoutes on all registered /// observers. /// </summary> public void CreateRoute(CefMediaSource source, CefMediaSink sink, CefMediaRouteCreateCallback callback) { cef_media_router_t.create_route(_self, source.ToNative(), sink.ToNative(), callback.ToNative()); }
/// <summary> /// Returns true if this sink is compatible with |source|. /// </summary> public bool IsCompatibleWith(CefMediaSource source) { return(cef_media_sink_t.is_compatible_with(_self, source.ToNative()) != 0); }