Rise
The Vieneo Province
Toggle main menu visibility
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
//-----------------------------------------------------------------------------
27
class
ISteamVideo
28
{
29
public
:
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
48
inline
ISteamVideo
*
SteamVideo
();
49
STEAM_DEFINE_USER_INTERFACE_ACCESSOR
(
ISteamVideo
*,
SteamVideo
,
STEAMVIDEO_INTERFACE_VERSION
);
50
51
STEAM_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] )
55
STEAM_CALLBACK_END
(3)
56
57
58
STEAM_CALLBACK_BEGIN
( GetOPFSettingsResult_t,
k_iSteamVideoCallbacks
+ 24 )
59
STEAM_CALLBACK_MEMBER
( 0,
EResult
, m_eResult )
60
STEAM_CALLBACK_MEMBER
( 1,
AppId_t
, m_unVideoAppID )
61
STEAM_CALLBACK_END
(2)
62
63
STEAM_CALLBACK_BEGIN
( BroadcastUploadStart_t,
k_iSteamVideoCallbacks
+ 4 )
64
STEAM_CALLBACK_MEMBER
( 0,
bool
, m_bIsRTMP )
65
STEAM_CALLBACK_END
( 1 )
66
67
STEAM_CALLBACK_BEGIN
( BroadcastUploadStop_t,
k_iSteamVideoCallbacks
+ 5 )
68
STEAM_CALLBACK_MEMBER
( 0,
EBroadcastUploadResult
, m_eResult )
69
STEAM_CALLBACK_END
( 1 )
70
71
#pragma pack( pop )
72
73
74
#endif
// ISTEAMVIDEO_H
ISteamVideo
Definition
isteamvideo.h:28
ISteamVideo::GetOPFSettings
virtual void GetOPFSettings(AppId_t unVideoAppID)=0
ISteamVideo::IsBroadcasting
virtual bool IsBroadcasting(int *pnNumViewers)=0
ISteamVideo::GetVideoURL
virtual void GetVideoURL(AppId_t unVideoAppID)=0
ISteamVideo::GetOPFStringForApp
virtual bool GetOPFStringForApp(AppId_t unVideoAppID, char *pchBuffer, int32 *pnBufferSize)=0
STEAMVIDEO_INTERFACE_VERSION
#define STEAMVIDEO_INTERFACE_VERSION
Definition
isteamvideo.h:45
SteamVideo
ISteamVideo * SteamVideo()
steam_api_common.h
STEAM_DEFINE_USER_INTERFACE_ACCESSOR
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
Definition
steam_api_internal.h:41
STEAM_CALLBACK_END
#define STEAM_CALLBACK_END(nArgs)
Definition
steam_api_internal.h:208
STEAM_CALLBACK_MEMBER
#define STEAM_CALLBACK_MEMBER(varidx, vartype, varname)
Definition
steam_api_internal.h:206
STEAM_CALL_BACK
#define STEAM_CALL_BACK(RESULT_TYPE)
Definition
steam_api_internal.h:304
STEAM_CALLBACK_BEGIN
#define STEAM_CALLBACK_BEGIN(callbackname, callbackid)
Definition
steam_api_internal.h:205
k_iSteamVideoCallbacks
@ k_iSteamVideoCallbacks
Definition
steam_api_internal.h:274
EBroadcastUploadResult
EBroadcastUploadResult
Definition
steamclientpublic.h:330
EResult
EResult
Definition
steamclientpublic.h:15
AppId_t
uint32 AppId_t
Definition
steamtypes.h:81
int32
int int32
Definition
steamtypes.h:57
ThirdParty
SteamworksSDK
include
steam
isteamvideo.h
Generated on
for Rise by
1.18.0