- Home /
Question by
KnightRiderGuy · Mar 15, 2015 at 04:03 PM ·
wwwstringnamemovietexture
Display Movie Name From www Address With A UI Text?
If I have a movie file playing from one or two possible sources. Either the streaming assets folder or from the web onto a movie texture. If my movie file is addressed something like this:
public string _url = "http://www.unity3d.com/webplayers/Movie/sample.ogg";
In my code top I have something like this to make a reference to my UI Text and the string.
// Reference to my UI Display Text for Movie Now Playing
public Text NowPlayingText;
private string display = "";
And I want to call it with something like this:
void AddText()
{
//display = currentIndex + " : " + clips[currentIndex].name;
NowPlayingText.text = display;
}
How can I find out the name of the movie from the web address or address from the streaming assets folder and pass that to the "NowPlayingText.text = display" ??
I commented out the top line as it was copied from a music player script I have been using and not used here.
Comment