mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
isteamvideo001 interface added
This commit is contained in:
parent
58e934cea0
commit
4390cc1616
@ -21,7 +21,8 @@
|
||||
#include "base.h"
|
||||
|
||||
class Steam_Video :
|
||||
public ISteamVideo
|
||||
public ISteamVideo,
|
||||
public ISteamVideo001
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -5413,6 +5413,11 @@ STEAMAPI_API steam_bool SteamAPI_ISteamInventory_InspectItem( ISteamInventory* s
|
||||
return (ptr)->InspectItem(pResultHandle, pchItemToken);
|
||||
}
|
||||
|
||||
STEAMAPI_API ISteamVideo *SteamAPI_SteamVideo_v001()
|
||||
{
|
||||
return get_steam_client()->GetISteamVideo(flat_hsteamuser(), flat_hsteampipe(), "STEAMVIDEO_INTERFACE_V001");
|
||||
}
|
||||
|
||||
STEAMAPI_API ISteamVideo *SteamAPI_SteamVideo_v002()
|
||||
{
|
||||
return get_steam_client()->GetISteamVideo(flat_hsteamuser(), flat_hsteampipe(), "STEAMVIDEO_INTERFACE_V002");
|
||||
|
@ -782,7 +782,10 @@ ISteamVideo *Steam_Client::GetISteamVideo( HSteamUser hSteamuser, HSteamPipe hSt
|
||||
PRINT_DEBUG("%s", pchVersion);
|
||||
if (!steam_pipes.count(hSteamPipe) || !hSteamuser) return NULL;
|
||||
|
||||
if (strcmp(pchVersion, STEAMVIDEO_INTERFACE_VERSION) == 0) {
|
||||
if (strcmp(pchVersion, "STEAMVIDEO_INTERFACE_V00") == 0) {
|
||||
return reinterpret_cast<ISteamVideo *>(static_cast<ISteamVideo001 *>(steam_video));
|
||||
}
|
||||
else if (strcmp(pchVersion, STEAMVIDEO_INTERFACE_VERSION) == 0) {
|
||||
return reinterpret_cast<ISteamVideo *>(static_cast<ISteamVideo *>(steam_video));
|
||||
}
|
||||
|
||||
|
18
sdk/steam/isteamvideo001.h
Normal file
18
sdk/steam/isteamvideo001.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef ISTEAMVIDEO001_H
|
||||
#define ISTEAMVIDEO001_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
class ISteamVideo001
|
||||
{
|
||||
public:
|
||||
|
||||
// Get a URL suitable for streaming the given Video app ID's video
|
||||
virtual void GetVideoURL( AppId_t unVideoAppID ) = 0;
|
||||
|
||||
// returns true if user is uploading a live broadcast
|
||||
virtual bool IsBroadcasting( int *pnNumViewers ) = 0;
|
||||
};
|
||||
|
||||
#endif // ISTEAMVIDEO001_H
|
@ -177,6 +177,7 @@
|
||||
#include "isteaminventory001.h"
|
||||
#include "isteaminventory002.h"
|
||||
#include "isteamvideo.h"
|
||||
#include "isteamvideo001.h"
|
||||
#include "isteamparentalsettings.h"
|
||||
#include "isteamgamecoordinator.h"
|
||||
#include "isteammasterserverupdater.h"
|
||||
|
Loading…
Reference in New Issue
Block a user