Exemplo n.º 1
0
        /// <summary>
        /// Returns a MediaSource object for the specified media source URN. Supported
        /// URN schemes include &quot;cast:&quot; and &quot;dial:&quot;, and will be already known by the
        /// client application (e.g. &quot;cast:
        /// &lt;appId
        /// &gt;?clientId=
        /// &lt;clientId
        /// &gt;&quot;).
        /// </summary>
        public unsafe virtual CefMediaSource GetSource(string urn)
        {
            fixed(char *s0 = urn)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = urn != null ? urn.Length : 0
                };

                return(SafeCall(CefMediaSource.Wrap(CefMediaSource.Create, NativeInstance->GetSource(&cstr0))));
            }
        }
Exemplo n.º 2
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.º 3
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);
 }