Exemplo n.º 1
0
 /// <summary>
 /// Returns true (1) if this sink is compatible with |source|.
 /// </summary>
 public unsafe virtual bool IsCompatibleWith(CefMediaSource source)
 {
     return(SafeCall(NativeInstance->IsCompatibleWith((source != null) ? source.GetNativeInstance() : null) != 0));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new route between |source| and |sink|. Source and sink must be
 /// valid, compatible (as reported by cef_media_sink_t::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 cef_media_observer_t::OnRoutes on all registered
 /// observers.
 /// </summary>
 public unsafe virtual void CreateRoute(CefMediaSource source, CefMediaSink sink, CefMediaRouteCreateCallback callback)
 {
     NativeInstance->CreateRoute((source != null) ? source.GetNativeInstance() : null, (sink != null) ? sink.GetNativeInstance() : null, (callback != null) ? callback.GetNativeInstance() : null);
     GC.KeepAlive(this);
 }