I made a few PHP scripts so that I can very easily imbed web players in my blog. Here is how simple I managed to make it:
- Create and upload the webplayer and an image to describe the webplayer’s content (Screenshot) to a folder on your server with matching names, eg: Wambo.unity and Wambo.jpg
- Paste this code into something like a blog or html document.
<iframe src="http://yourwebsite/yourwebplayers/button.php?file=Wambo&version=2.x" marginheight="0" frameborder="0" height="300" scrolling="no" width="400"></iframe>
Where version dictates whether it is a 1.x or 2.x webplayer.
To set it up initially, you need to upload these three php scripts to the same folder as you are uploading the web players: http://yogware.bluegillstudios.com/Files/ThreeScripts.zip
When I made that I wasn’t thinking about making it really adaptable and for everyone, so the sizes are all hard coded and some options are missing… So I’ll also attach this all purpose web player imbed script that gives you full control: http://yogware.bluegillstudios.com/Files/EasyUnity.zip
Also, pinging whoever is in charge of the forum at UT; what do you think of adding this functionality to the forum so we can upload webplayers directly to our forum posts?