Esempio 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);
        }
        private void on_media_route_create_finished(cef_media_route_create_callback_t *self, CefMediaRouteCreateResult result, cef_string_t *error, cef_media_route_t *route)
        {
            CheckSelf(self);

            var mError = cef_string_t.ToString(error);
            var mRoute = CefMediaRoute.FromNativeOrNull(route);

            OnMediaRouteCreateFinished(result, mError, mRoute);
        }
Esempio n. 3
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);
        }
Esempio n. 4
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);
        }
 /// <summary>
 /// Method that will be executed when the route creation has finished. |result|
 /// will be CEF_MRCR_OK if the route creation succeeded. |error| will be a
 /// description of the error if the route creation failed. |route| is the
 /// resulting route, or empty if the route creation failed.
 /// </summary>
 protected abstract void OnMediaRouteCreateFinished(CefMediaRouteCreateResult result, string error, CefMediaRoute route);
Esempio n. 6
0
 /// <summary>
 /// A message was recieved over |route|. |message| is only valid for
 /// the scope of this callback and should be copied if necessary.
 /// </summary>
 protected abstract void OnRouteMessageReceived(CefMediaRoute route, IntPtr message, int messageSize);
Esempio n. 7
0
 /// <summary>
 /// The connection state of |route| has changed.
 /// </summary>
 protected abstract void OnRouteStateChanged(CefMediaRoute route, CefMediaRouteConnectionState state);