Media Player (Dedicated Server)

Hello ,

I would know something about Media Player , if I put the Dedicated Server on a PC and I used the OpenUrl to play mp4 file in the Desktop.
Then I connect client on other PC , it is possible to have the media played if the client doesn’t have the url access ?

Sorry for my english, and thanks for you patience.

No, that is not possible.

Media playback only happens client-side. Every client needs to run its own player, and every player needs access to the media source being loaded. If the media source is an URL on the internet, then all clients need access to this URL.

Also note that media playback is disabled on dedicated servers altogether as there is no way to output any video to.

You could integrate a streaming media server into your dedicated server, but it’s probably better (and much easier) to host an existing media streaming server solution next to your dedicated game server. Since clients already have access to your dedicated server, they should also have access to your streaming server on the same machine.

I understand you method but what before this post was to used dropbox to let clients upload her videos.
The Server haved FindFile to add the video’s paths and play the video with Index. So the Open Url is used for open file outside the Conten/Movies.
The Index can be change by clients to change video.

So with you method it’s possible to do that ?
Thanks for you answer.

Like I said, the playback must happen on each client. You cannot play the video on the server. As long as the file is accessible by all clients over the internet, you can play it on each client, of course. It does not need to be a file in /Content/Movies. You can also play files from different locations on a PC, or you can stream them over the internet.

The /Content/Movies folder is only needed if you want package video files along with your game installation.

Ok thanks for the help.