示例#1
0
        private void on_sinks(cef_media_observer_t *self, UIntPtr sinksCount, cef_media_sink_t **sinks)
        {
            CheckSelf(self);

            var mSinksCount = checked ((int)sinksCount);
            var mSinks      = new CefMediaSink[mSinksCount];

            for (var i = 0; i < mSinksCount; i++)
            {
                mSinks[i] = CefMediaSink.FromNative(sinks[i]);
            }

            OnSinks(mSinks);
        }
示例#2
0
 /// <summary>
 /// Returns the sink associated with this route.
 /// </summary>
 public CefMediaSink GetSink()
 {
     return(CefMediaSink.FromNative(
                cef_media_route_t.get_sink(_self)
                ));
 }