Stream Video from URL on Plane C++?

Hello,

I am working on project where I have to stream a video on a Plane inside level. I am retrieving the URL for the video during runtime, from my Server. Basically I want to update the Video URL of the MediaStream Object or MediaPlayer during runtime in C++. For this problem I already have setup the Plane using this tutorial, so I have MediaPlayer setup. I want to pass this “Media Player” or “StreamMediaSource” objects to my C++ class from editor and change the URL during runtime.

Please do let me know if more information is required and apologies if I am not clear about my problem.

Any help is very much appreciated

Thanks.

Any help guys ?

You don’t need a media source for this at all. The media source objects are only meant as a convenience for non-programmers. In C++, you can use the UMediaPlayer::OpenUrl function instead and pass a URL string directly. For file based media, prepend file:// to the file path. Starting with 4.18. there’s also UMediaPlayer::OpenFile that does this for you.

Sorry to reply to something old. I’m new to c++ and I would like to do this, but I’m kind of lost, do you know of an example to do this?