I made a few PHP scripts that handle webplayers inside an iframe really well, which works good especially for blogs. Here is how simple I managed to make it per iteration:
1. 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
2. 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.
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 embed script that gives you full control as well (though it only runs when on a server as it is php).
Sunday, May 4, 2008
How I embed webplayers in this blog
Posted by
Forest Johnson
at
10:03 PM
Labels: internet, webplayers
Subscribe to:
Post Comments (Atom)



3 comments:
Where did you Upload the Unity Player to?
yeah, does blogspot lets you upload files?
I upload them to my serverspace on dreamhost.
I don't think its possible to upload files to blogspot.
You can also make your home computer a server if you really want to by installing apache. I've done it and it was pretty easy, at least on mac.
Post a Comment