示例#1
0
        private static void IssuePluginEvent(AVPPluginEventType type, int param)
        {
            // Build eventId from the type and param.
            int eventId = 0x0FA60000 | ((int)type << 12);

            eventId |= param & 0xfff;

#if AVPROVIDEO_ISSUEPLUGINEVENT_UNITY52
            GL.IssuePluginEvent(_renderEventFunc, eventId);
#else
            GL.IssuePluginEvent(eventId);
#endif
        }
        private static void IssuePluginEvent(AVPPluginEventType type, int param)
        {
            // Build eventId from the type and param.
            int eventId = 0x0FA60000 | ((int)type << 12);

            switch (type)
            {
            case AVPPluginEventType.PlayerUpdate:
            case AVPPluginEventType.PlayerShutdown:
                eventId |= param & 0xfff;
                break;
            }

#if AVPROVIDEO_ISSUEPLUGINEVENT_UNITY52
            GL.IssuePluginEvent(_renderEventFunc, eventId);
#else
            GL.IssuePluginEvent(eventId);
#endif
        }
示例#3
0
 // Convenience method for calling OSXMediaPlayer.IssuePluginEvent.
 //
 private void IssuePluginEvent(AVPPluginEventType type)
 {
     OSXMediaPlayer.IssuePluginEvent(type, _handle);
 }