You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
#include "GameLiveStreamingModule.h"
|
|
#include "GameLiveStreamingFunctionLibrary.h"
|
|
#include "Public/IGameLiveStreaming.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "GameLiveStreaming"
|
|
|
|
|
|
UGameLiveStreamingFunctionLibrary::UGameLiveStreamingFunctionLibrary( const FObjectInitializer& ObjectInitializer )
|
|
: Super(ObjectInitializer)
|
|
{
|
|
}
|
|
|
|
|
|
bool UGameLiveStreamingFunctionLibrary::IsBroadcastingGame()
|
|
{
|
|
return IGameLiveStreaming::Get().IsBroadcastingGame();
|
|
}
|
|
|
|
|
|
void UGameLiveStreamingFunctionLibrary::StartBroadcastingGame(
|
|
int32 FrameRate,
|
|
float ScreenScaling,
|
|
bool bEnableWebCam,
|
|
int32 DesiredWebCamWidth,
|
|
int32 DesiredWebCamHeight,
|
|
bool bMirrorWebCamImage,
|
|
bool bCaptureAudioFromComputer,
|
|
bool bCaptureAudioFromMicrophone,
|
|
bool bDrawSimpleWebCamVideo )
|
|
{
|
|
FGameBroadcastConfig Config;
|
|
Config.FrameRate = FrameRate;
|
|
Config.ScreenScaling = ScreenScaling;
|
|
Config.bEnableWebCam = bEnableWebCam;
|
|
Config.DesiredWebCamWidth = DesiredWebCamWidth;
|
|
Config.DesiredWebCamHeight = DesiredWebCamHeight;
|
|
Config.bMirrorWebCamImage = bMirrorWebCamImage;
|
|
Config.bCaptureAudioFromComputer = bCaptureAudioFromComputer;
|
|
Config.bCaptureAudioFromMicrophone = bCaptureAudioFromMicrophone;
|
|
Config.bDrawSimpleWebCamVideo = bDrawSimpleWebCamVideo;
|
|
IGameLiveStreaming::Get().StartBroadcastingGame( Config );
|
|
}
|
|
|
|
|
|
void UGameLiveStreamingFunctionLibrary::StopBroadcastingGame()
|
|
{
|
|
IGameLiveStreaming::Get().StopBroadcastingGame();
|
|
}
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|