How to select a video file and run it in-game?
Hello,
So I really want to make a game where you can play a video file in the game on a plane/quad from the users harddrive (meaning that the video is not going to be part of the game's assist) as a part of a school project. But I've no idea how to do this...
At first I looked for a way as how to add a video file to a gameobject outside of the game, and I found this: http://raypendergraph.wikidot.com/codesnippet:streaming-movie-from-a-file-in-unity which works just fine. But the issue with this is that the one playing the game won't be able to select/change which video that would be playing on the plane/quad...
So my next idea was to make a file selection/browser of sorts, so that the user could find and add whatever video they got on their harddrive so that it could play in-game.
However, I've no idea how to make such a file browser and I couldn't really find anything that explains to me how I would even go about doing this... but I did find this one: https://www.assetstore.unity3d.com/en/#!/content/18308 but I've no idea how to work with this... plus I don't know how I would get the selected video file to play in the code:
StartCoroutine(StartStream(@"file:///Users/ray.pendergraph/test.ogv"));
So if anyone could help me here that would be really awesome! I've spend 2 days trying to get anywhere with this, so I'm really stuck and I'm not sure how to make this happen :/ I would love to make a very simple file browser that the user could use to select a video file on their harddrive which could then play inside the game on the plane/quad.
Your answer
Follow this Question
Related Questions
Video Streaming with New Unity Video Player issue 0 Answers
I want to put a tiff secuence as a video 0 Answers
Avoid preparation VideoPlayer 1 Answer
High-quality video without freezing 1 Answer