A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
IntroMediaScreen.h
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "MediaPlayer.h"
7#include "GameFramework/Actor.h"
8#include "IntroMediaScreen.generated.h"
9
15UCLASS()
16class PIXOCORE_API AIntroMediaScreen : public AActor
17{
18 GENERATED_BODY()
19
20public:
22
23 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")
24 USceneComponent* Root;
25 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")
26 UStaticMeshComponent* PlaneComponent;
27 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")
28 UAudioComponent* Audio;
29
30protected:
31 virtual void BeginPlay() override;
32
33public:
34 virtual void Tick(float DeltaTime) override;
35
36 UFUNCTION()
37 void OnVideoEndPlaying();
38
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MediaScreen")
40 UMediaPlayer* MediaPlayer;
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MediaScreen")
42 UMediaSource* MediaSource;
43};
This is a screen on which you can broadcast video.
UAudioComponent * Audio
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")
UMediaSource * MediaSource
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MediaScreen")
USceneComponent * Root
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")
UMediaPlayer * MediaPlayer
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MediaScreen")
UStaticMeshComponent * PlaneComponent
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")