# Can I replace Stream Media URL at runtime?

**URL:** <https://forums.unrealengine.com/t/can-i-replace-stream-media-url-at-runtime/1911943>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [June 21, 2024, 8:28pm UTC](https://forums.unrealengine.com/t/can-i-replace-stream-media-url-at-runtime/1911943 "2024-06-21T20:28:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgetHooks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BridgetHooks](https://forums.unrealengine.com/u/BridgetHooks)\
**Post date:** [June 21, 2024, 8:28pm UTC](https://forums.unrealengine.com/t/can-i-replace-stream-media-url-at-runtime/1911943/1 "2024-06-21T20:28:52Z")

</div>

Hi everyone! I am trying to output a video in Unreal based off a link sent from a raspberry pi. The idea is to receive the Url, set it as the url for stream source, and play media player. I can’t find a way to set the stream url when the game is active. Is it possible? I thought maybe there’s a way with the media options node… but no luck yet.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [June 22, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/can-i-replace-stream-media-url-at-runtime/1911943/2 "2024-06-22T19:49:02Z")

</div>

Hey there @BridgetHooks! Welcome to the community! There might be a workaround by updating the media texture itself as referenced in this post:

> [@Failed to set media texture to a media texture which is from "Construct object from class"](https://forums.unrealengine.com/t/failed-to-set-media-texture-to-a-media-texture-which-is-from-construct-object-from-class/401551/13):
>
> I spawn multiple media players in my Sandbox game so I think I’ve figured this one out; it seems that when you set the source of the media player, the media texture seems to loose it’s link to the media player; so when it’s trying to read data it simple has no “media player” to read data / frames from. The solution is to force an update of the underlying media texture resource, but it requires some C++. In your xxx.build.cs make sure you have the “MediaAsset” dependancy: PublicDependencyModul…

Hope this helps!
