🧑‍💻 Usage - Jon1969Edwards/VlcMedia_UnrealEngine GitHub Wiki

🚀 Plugin Usage

🎬 BP_TV Setup

Use the included BP_TV Blueprint to automatically load and play a media stream at runtime. It includes:

  • MediaPlayer
  • MediaSoundComponent
  • Channel list array
  • Index-based switching
  • Autoplay logic

📷 Blueprint Preview

BP_TV AutoPlay


🛠️ Create Your Own Setup

✅ Create Media Assets

  1. Right-click → Media → Media Player
  2. Enable video output → creates MediaTexture
  3. Name them (e.g., MyPlayer, MyPlayer_Video)

🎨 Create a Material

  1. Right-click → Material
  2. Plug MyPlayer_Video into Emissive Color
  3. Add scalar param for intensity if needed
  4. Apply to mesh or screen

🧠 Blueprint Flow (Custom)

BeginPlay
├── Bind MediaOpened Event
├── Open Source (Media Stream)
└── On MediaOpened → Play()

To dynamically assign media texture to a mesh:

UMaterialInstanceDynamic* DynMat = UMaterialInstanceDynamic::Create(MyMaterial, this); UTexture* VLTex = UVlcBlueprintLibrary::GetVlcVideoTexture(); DynMat->SetTextureParameterValue("MyPlayer_Video", VLTex); MyMesh->SetMaterial(0, DynMat);

➡️ Continue to Material Setup