Anyway To Stream YouTube Videos Ingame?

Yes, it’s possible. At least this is sort of a workaround:

  • Go to Plugins > Widgets and enable the web browser. Here’s the link to the documentation.
  • Now, create an UMG widget and from the list of components on the left, drag the browser widget in there.
  • Set the default URL to YouTube where VIDEOID is the ID you need. The watch_popup will ensure the video renders full screen (but you may still have the URL bar on top).
  • Then, since you want it in-game, you have to make a 3D widget by right clicking in your content browser > blueprint class. Choose actor.
  • Inside this actor, add a component called Widget. Compile your blueprint.
  • Inside this actor, click on the widget and on the right side, choose your widget in Widget Class. Compile and Save.
  • Drag your actor in your level and you should see your youtube.

Some tips:

  • A 3D widget is single-sided by default so you may need to rotate it to see the result
  • Also ensure the dimensions are set properly either in the widget or in the 3D widget (actor) to get the full screen.
  • You could get rid of the URL bar (if there’s one) from the browser, by positioning that part out of the canvas panel of your widget. Perhaps there’s even an option to disable it but it’s been some time I played with it.
  • If the video doesn’t play automatically, you could try adding ?autoplay=1 to the youtube URL
  • You can also make your scene interactable. Here’s more info. You could also make a small menu 3D widget with a choice of videos to play inside the 3D widget (since there’sa load URL node available for this widget).
  • Make sure you have a fallback (e.g. by playing offline movie) when your network connection fails.
4 Likes