summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/SteamVideo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assembly_Firstpass/Steamworks/SteamVideo.cs')
-rw-r--r--Assembly_Firstpass/Steamworks/SteamVideo.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/SteamVideo.cs b/Assembly_Firstpass/Steamworks/SteamVideo.cs
new file mode 100644
index 0000000..9c8d287
--- /dev/null
+++ b/Assembly_Firstpass/Steamworks/SteamVideo.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace Steamworks;
+
+public static class SteamVideo
+{
+ public static void GetVideoURL(AppId_t unVideoAppID)
+ {
+ InteropHelp.TestIfAvailableClient();
+ NativeMethods.ISteamVideo_GetVideoURL(CSteamAPIContext.GetSteamVideo(), unVideoAppID);
+ }
+
+ public static bool IsBroadcasting(out int pnNumViewers)
+ {
+ InteropHelp.TestIfAvailableClient();
+ return NativeMethods.ISteamVideo_IsBroadcasting(CSteamAPIContext.GetSteamVideo(), out pnNumViewers);
+ }
+
+ public static void GetOPFSettings(AppId_t unVideoAppID)
+ {
+ InteropHelp.TestIfAvailableClient();
+ NativeMethods.ISteamVideo_GetOPFSettings(CSteamAPIContext.GetSteamVideo(), unVideoAppID);
+ }
+
+ public static bool GetOPFStringForApp(AppId_t unVideoAppID, out string pchBuffer, ref int pnBufferSize)
+ {
+ InteropHelp.TestIfAvailableClient();
+ IntPtr intPtr = Marshal.AllocHGlobal(pnBufferSize);
+ bool flag = NativeMethods.ISteamVideo_GetOPFStringForApp(CSteamAPIContext.GetSteamVideo(), unVideoAppID, intPtr, ref pnBufferSize);
+ pchBuffer = (flag ? InteropHelp.PtrToStringUTF8(intPtr) : null);
+ Marshal.FreeHGlobal(intPtr);
+ return flag;
+ }
+}