# Trouble setting default Media Player Decoder

**URL:** <https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507>\
**Category:** World Creation\
**Tags:** unreal-engine, editor, UE4, question, Blueprint\
**Created:** [December 6, 2016, 4:12pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507 "2016-12-06T16:12:27Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a7264f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a7264f9](https://forums.unrealengine.com/u/anonymous_user_8a7264f9)\
**Post date:** [December 6, 2016, 4:12pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/1 "2016-12-06T16:12:27Z")

</div>

I am using gmpreussner’s VlcMedia plugin ([GitHub - ue4plugins/VlcMedia: Media Framework plug-in using the Video LAN Codec (libvlc).](https://github.com/ue4plugins/VlcMedia)) to stream from an IP camera into UE. This works fine except whenever I open my project in the UE editor the Media Player always defaults to WmfMedia, which is not compatible with my stream and so I just get a solid black texture when running the game. I have selected VlcMedia as the default Decoder:

 ![117603-media_player_decoder_ss.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/f/b6fecb31c1e592599e524b97f6948aa9c0241e3d.jpeg)

Despite this you can see that it still says WmfMedia at the top right. I also set the Default Player in my StreamMediaSource asset to VlcMedia, but this seems to have no effect.

The only way that I can get the player to bump itself to VlcMedia is to already have the Media Player asset open in the Asset Editor when I click Play. After this it stays on VlcMedia for the rest of the session and works fine. I am starting the streams using Event BeginPlay from the Level Blueprint as shown:

 ![117609-media_blueprint_ss.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/7/5e707ea417d5787aaeaeb1ba438e426390efbfd0.png)

As expected, the “Get Player Name” node returns WmfMedia when the video streaming fails and VlcMedia when it works. Even worse, in packaged builds it returns “None” and the streaming doesn’t work. There is unfortunately no “Set Player Name” node.

I’m aware that the Media Framework is still in an experimental state but it would be nice if I could move past this one problem holding me back. Any help is appreciated!~

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [December 6, 2016, 5:40pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/2 "2016-12-06T17:40:50Z")

</div>

I’m pretty sure this is fixed in 4.14. The DefaultPlayer property was ignored in 4.13 and earlier, I think.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a7264f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a7264f9](https://forums.unrealengine.com/u/anonymous_user_8a7264f9)\
**Post date:** [December 6, 2016, 8:00pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/3 "2016-12-06T20:00:27Z")

</div>

Thanks for the tip. I upgraded to 4.14 and set the new Platform Players thing to VlcMedia on Windows in my StreamMediaSources. UE correctly remembers VlcMedia in the editor now but in the packaged version I’m still getting no video and the “Get Player Name” node is saying WmfMedia. =[. Any thoughts?

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [December 6, 2016, 11:06pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/4 "2016-12-06T23:06:34Z")

</div>

You need to set DefaultPlayer in the media source. The player does not save the selected decoder. That is only for the Editor.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a7264f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a7264f9](https://forums.unrealengine.com/u/anonymous_user_8a7264f9)\
**Post date:** [December 7, 2016, 12:03am UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/5 "2016-12-07T00:03:42Z")

</div>

I thought I did. That’s what the new Platform Players section on the StreamMediaSource is in 4.14 right? I don’t see a DefaultPlayer input anymore.

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [December 7, 2016, 5:33am UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/6 "2016-12-07T05:33:09Z")

</div>

Yep, PlatformPlayers. I’m pretty sure it made it into 4.14. It should work.

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [December 7, 2016, 5:40am UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/7 "2016-12-07T05:40:27Z")

</div>

Actually, I’m not sure if I tested in 4.14 or 4.15. It definitely works in 4.15, but there have been a lot of other changes, too. In 4.15 you’ll also have the _SetDesiredPlayerName_ BP function. This code is not yet in GitHub Master - we’re planning to merge up on December 14th.

A quick look at _UMediaPlayer::FindPlayerForUrl_ in 4.14 shows that the implementation is pretty much the same though, so I think it should probably work already.

Let me know what you find out.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a7264f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a7264f9](https://forums.unrealengine.com/u/anonymous_user_8a7264f9)\
**Post date:** [December 7, 2016, 2:58pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/8 "2016-12-07T14:58:58Z")

</div>

Yeah idk, I definitely have PlatformPlayers set to VlcMedia for Windows:

 ![117764-media_source_ss.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/0/cc0a35d400c14cb65a8fffd94ea4a973c493236f.png)

This works fine in the editor and my debug output from the _GetPlayerName_ node gives me VlcMedia, but the packaged version is still defaulting to WmfMedia.

I guess it bears mentioning that I’m an Unreal noob and these are my first attempts at producing a packaged project. Maybe I just need to wait for 4.15.

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [December 7, 2016, 6:28pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/9 "2016-12-07T18:28:48Z")

</div>

Oh ok, I actually have not tried packaged builds yet. It’s possible that there’s a bug 😑

We’ll look into it, but probably not before next week.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 7, 2016, 7:02pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/10 "2016-12-07T19:02:37Z")

</div>

Hey THE-\_-BOSS,

Would you be willing to share your test project so I can investigate the issue on my end?

You can zip up the project, upload it to google drive, and then share the link with me via a private message on the Forums to my name, Andrew…

Let me know if you have further questions.

Thank you,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a7264f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a7264f9](https://forums.unrealengine.com/u/anonymous_user_8a7264f9)\
**Post date:** [December 7, 2016, 9:31pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/11 "2016-12-07T21:31:52Z")

</div>

I have a project ready for you to download but it’s saying I don’t have permission (“sufficient privileges”) to send PMs.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 7, 2016, 9:49pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/12 "2016-12-07T21:49:09Z")

</div>

Hmmm that doesn’t sound right. Be sure you are logged into the forums with your Epic account.

Let me know if you are still having problems and I will see if it is a permissions thing you are experiencing.

Thanks,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a7264f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a7264f9](https://forums.unrealengine.com/u/anonymous_user_8a7264f9)\
**Post date:** [December 7, 2016, 10:26pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/13 "2016-12-07T22:26:28Z")

</div>

It looks like I’m logged in. I don’t have a “Private Messaging” section in my user control panel and when I try to follow the link from the Private Messaging FAQ ([https://forums.unrealengine.com/private.php](https://forums.unrealengine.com/private.php)) I get:

THE-\_-BOSS, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else’s post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 9, 2016, 3:49pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/14 "2016-12-09T15:49:59Z")

</div>

Thanks for letting me know. I have requested someone investigate this so you have access in the future. You can also upload the to a shareable google drive link and just share the link here. I can tell you when I have downloaded the project so you can remove the link if the content is sensitive.

Let me know if you have further questions.

Thank you,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a7264f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a7264f9](https://forums.unrealengine.com/u/anonymous_user_8a7264f9)\
**Post date:** [December 9, 2016, 4:54pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/15 "2016-12-09T16:54:25Z")

</div>

Here is the link: [https://drive.google.com/file/d/0B4qsCwcb0EiPN0dJYTNMckE3dWM/view?usp=sharing](https://drive.google.com/file/d/0B4qsCwcb0EiPN0dJYTNMckE3dWM/view?usp=sharing)

The original project had a bunch of irrelevant stuff so I just threw together another one using the First Person Shooter template, then following the MediaFramework tutorial and adding in the VlcMedia plugin. I tested it and it’s exhibiting the same problems as my other project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 14, 2016, 4:51pm UTC](https://forums.unrealengine.com/t/trouble-setting-default-media-player-decoder/378507/16 "2016-12-14T16:51:50Z")

</div>

Hey THE-\_-BOSS,

I was able to reproduce your issue with the project you provided, and have gone ahead and entered a bug report which you can track by following the link below.

**[UE-39771](https://issues.unrealengine.com/issue/UE-39771)**

Once the issue has been addressed by our engineers the ticket will be updated and reflected in the public tracker. Let me know if you have further questions or need additional assistance.

Cheers,
