Rise
The Vieneo Province
Loading...
Searching...
No Matches
isteamvideo.h
Go to the documentation of this file.
1//====== Copyright © 1996-2014 Valve Corporation, All rights reserved. =======
2//
3// Purpose: interface to Steam Video
4//
5//=============================================================================
6
7#ifndef ISTEAMVIDEO_H
8#define ISTEAMVIDEO_H
9#ifdef _WIN32
10#pragma once
11#endif
12
13#include "steam_api_common.h"
14
15// callbacks
16#if defined( VALVE_CALLBACK_PACK_SMALL )
17#pragma pack( push, 4 )
18#elif defined( VALVE_CALLBACK_PACK_LARGE )
19#pragma pack( push, 8 )
20#else
21#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
22#endif
23
24//-----------------------------------------------------------------------------
25// Purpose: Steam Video API
26//-----------------------------------------------------------------------------
28{
29public:
30
31 // Get a URL suitable for streaming the given Video app ID's video
32 virtual void GetVideoURL( AppId_t unVideoAppID ) = 0;
33
34 // returns true if user is uploading a live broadcast
35 virtual bool IsBroadcasting( int *pnNumViewers ) = 0;
36
37 // Get the OPF Details for 360 Video Playback
38 STEAM_CALL_BACK( GetOPFSettingsResult_t )
39 virtual void GetOPFSettings( AppId_t unVideoAppID ) = 0;
40 virtual bool GetOPFStringForApp( AppId_t unVideoAppID, char *pchBuffer, int32 *pnBufferSize ) = 0;
41
42
43};
44
45#define STEAMVIDEO_INTERFACE_VERSION "STEAMVIDEO_INTERFACE_V007"
46
47// Global interface accessor
50
51STEAM_CALLBACK_BEGIN( GetVideoURLResult_t, k_iSteamVideoCallbacks + 11 )
52 STEAM_CALLBACK_MEMBER( 0, EResult, m_eResult )
53 STEAM_CALLBACK_MEMBER( 1, AppId_t, m_unVideoAppID )
54 STEAM_CALLBACK_MEMBER( 2, char, m_rgchURL[256] )
56
57
58STEAM_CALLBACK_BEGIN( GetOPFSettingsResult_t, k_iSteamVideoCallbacks + 24 )
59 STEAM_CALLBACK_MEMBER( 0, EResult, m_eResult )
60 STEAM_CALLBACK_MEMBER( 1, AppId_t, m_unVideoAppID )
62
63STEAM_CALLBACK_BEGIN( BroadcastUploadStart_t, k_iSteamVideoCallbacks + 4 )
64 STEAM_CALLBACK_MEMBER( 0, bool, m_bIsRTMP )
66
67STEAM_CALLBACK_BEGIN( BroadcastUploadStop_t, k_iSteamVideoCallbacks + 5 )
70
71#pragma pack( pop )
72
73
74#endif // ISTEAMVIDEO_H
virtual void GetOPFSettings(AppId_t unVideoAppID)=0
virtual bool IsBroadcasting(int *pnNumViewers)=0
virtual void GetVideoURL(AppId_t unVideoAppID)=0
virtual bool GetOPFStringForApp(AppId_t unVideoAppID, char *pchBuffer, int32 *pnBufferSize)=0
#define STEAMVIDEO_INTERFACE_VERSION
Definition isteamvideo.h:45
ISteamVideo * SteamVideo()
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
#define STEAM_CALLBACK_END(nArgs)
#define STEAM_CALLBACK_MEMBER(varidx, vartype, varname)
#define STEAM_CALL_BACK(RESULT_TYPE)
#define STEAM_CALLBACK_BEGIN(callbackname, callbackid)
@ k_iSteamVideoCallbacks
EBroadcastUploadResult
uint32 AppId_t
Definition steamtypes.h:81
int int32
Definition steamtypes.h:57