|Copyright (C) 2010 Wayne Patterson
@version 1.1 Date: 2010-2-24
The E2 XML Audio/Video Player communicates with your Gallery2 website via an external XML generator.
The E2 XML Audio/Video Player allows you to display your mp3s and flash videos on any webpage.
1. upload E2.swf and your mediaRss(.php) files to your gallery2 base directory.
(for now I would like to keep mediaRss.php and xml.php separate - until I switch the mini over)
2. edit line 29 of your mediaRss(.php) to reflect your setup (default will work for most).
3. place the following in your webpage where you want the E2 to appear:
The above code sample would render something similar to:
Edit the g2_itemId in the xmlUrl to reflect the album you want to be displayed and also the site url.
*Hint: If you have url rewrite enabled, you may have to temporarily disable it to see the g2_itemId in your album's url.
*Note on Gallery style urls and Flash
Add your external variables to your xmlUrl separated with an ampersand (&) ie.
To avoid the "Click here to activate and use this control" blunder in IE7 we deploy a different method to embed our flash objects.
I prefer swfObject myself, but there are others like UFO, Flash's own ActiveContent....
next we need our html:
Please refer to the swfObject site for further instructions.
Singlefile flv example
If you pass a flvUrl the player will assume video/x-flv - required params: flvUrl, Height, Width, title, thumbUrl
Singlefile mp3 example
If you pass a mp3Url the player will assume audio/mpeg - required params: mp3Url, title, thumbUrl
The list will not show in singlefile mode.Sharing
Another new feature is the ability to allow sharing.
The above two examples have sharing enabled.
Any questions, comments, or suggestions are welcome.