1234567891011121314151617181920212223242526 |
- using System;
- using System.Runtime.InteropServices;
- namespace MediaUtil
- {
- public partial class Pusher
- {
- private static class Interop64
- {
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "CreatePusher", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern int CreatePusher(out IntPtr hPushr, int width, int height, int frameRate);
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "DestroyPusher", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern void DestroyPusher(IntPtr hPushr);
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "StartPush", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern int StartPush(IntPtr hPushr, string url);
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "StopPush", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern int StopPush(IntPtr hPushr);
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "PushPacket", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern int PushPacket(IntPtr hPushr, IntPtr hPacket);
- }
- }
- }
|