Ejemplo n.º 1
0
        private void on_route_state_changed(cef_media_observer_t *self, cef_media_route_t *route, CefMediaRouteConnectionState state)
        {
            CheckSelf(self);

            var mRoute = CefMediaRoute.FromNative(route);

            OnRouteStateChanged(mRoute, state);
        }
Ejemplo n.º 2
0
        private void on_route_message_received(cef_media_observer_t *self, cef_media_route_t *route, void *message, UIntPtr message_size)
        {
            CheckSelf(self);

            var mRoute       = CefMediaRoute.FromNative(route);
            var mMessageSize = checked ((int)message_size);

            OnRouteMessageReceived(mRoute, (IntPtr)message, mMessageSize);
        }
Ejemplo n.º 3
0
        private void on_routes(cef_media_observer_t *self, UIntPtr routesCount, cef_media_route_t **routes)
        {
            CheckSelf(self);

            var mRoutesCount = checked ((int)routesCount);
            var mRoutes      = new CefMediaRoute[mRoutesCount];

            for (var i = 0; i < mRoutesCount; i++)
            {
                mRoutes[i] = CefMediaRoute.FromNative(routes[i]);
            }

            OnRoutes(mRoutes);
        }