|
Date: 10/13/2008 1:32 am · Subject: Re: is there a an audio/video gallery wobject? · Rating: 0
There is a plan to add movies to the Gallery, but I'm not sure on the timeline of it (so if you know Perl, you can feel free to go for it, we'll help you as we can).
Otherwise, the File asset has a "Flash" template, so if you already have .flv or .swf, you can use that template to display them. I believe the WebGUI TV does exactly this.
--- (Edited on 10/11/2008 9:43 am [GMT-0500] by preaction) ---
Okay, I think I found a simple and elegant way to play audio files, but I need a little help.
What I did was to upload a flash-based mp3 player into my site and the I created a template to enable using it for audio files. i am using the xspf audio player and I created a template called MP3_file that looks like this:
<tmpl_if session.var.adminOn> <tmpl_if controls> <p><tmpl_var controls></p> </tmpl_if> </tmpl_if>
<div> <object type="application/x-shockwave-flash" data="http://localhost:8082/home/bbjw-sitewide-stuff-images-etc/xspf-mp3-player?&song_url=http://localhost:8082/<tmpl_var fileUrl>&" style="height:auto;min-height:100px;width:100%;display:block;"> <param name="movie" value="http://localhost:8082/home/bbjw-sitewide-stuff-images-etc/xspf-mp3-player?&song_url=http://localhost:8082/<tmpl_var fileUrl>&" /> </object> </div>
That almost works. When I create a file pile wobject and load an mp3 file and define the MP3_file template to be used, the player is displayed but it does not accept the song_url parameter. The reason seem to be that the "&" signes that are requiered, are translated into '&" in the generated HTML code.
Now, I know this is usually something that is quite easy to overcome, but I'd appreciate it if someone can give me a quick answer on how to do fix this problem in the template.
(this may be a good time to comment that the reason some of my questions might seem a little trivial is that this project is pretty much a first for me + I have very little time for it, so I need to try and save trial-and-error time that I would otherwise very much enjoy to spend )
Many thanks,
Oren
--- (Edited on 10/13/2008 1:32 am [GMT-0500] by orenshani) ---
--- (Edited on 10/13/2008 1:34 am [GMT-0500] by orenshani) ---
|