You are doing great work!
I have browsed through the Feature requests in search of a way to display an image (for example in a shadowbox) while listening to a certain music piece or sound that is attached to the image. I'd like to make a site with pieces of music that can be downloaded or played. Some of the pieces are improvisations to an image, a piece of art, and I would like to present the image while the music is playing. The music should start with the display of the image and stop if the image is closed.
I have thought of different tools for this, like maybe having a gallery of videos, where I make videos of a still picture. But that seems to make to large files and extra work, and duplicates of the music if downloaded separately.
Maybe you are making something like this, or already have some solution?
Do you have an API where it is possible to make a plugin for Phoca Gallery, catching the display of an image and starting/stopping sound?
Anders
Play sound while watching Shadowbox image
-
aoj62
- Phoca Newbie

- Posts: 8
- Joined: 06 Apr 2010, 01:35
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Play sound while watching Shadowbox image
HI, for now there is no documentation for API. Yes such feature needs to be customized but for now I have made no such customizations so no experiences there
Jan
Jan
If you find Phoca extensions useful, please support the project
-
aoj62
- Phoca Newbie

- Posts: 8
- Joined: 06 Apr 2010, 01:35
Re: Play sound while watching Shadowbox image
Thank you, Jan, for the answer.
I have a lot to learn about how Joomla works. I was thinking that an event like open or close could be observed by multiple observers in queue, and that if I knew when to insert my observer I could have a parallel audio player while the image was previewed.
I learned that Plugins are those observers, but I haven't yet read about how they queue.
Then when I looked in your code I suddenly realised we are working with HTML here and not C++ code as I have been used to
Anyway, I found in your code that you use the rel attribute for shadowbox. I guess that its data is user specific, i.e. specific to your code. Or is there some documentation for how to use the rel attribute? Is it Joomla specific?
I have a lot to learn about how Joomla works. I was thinking that an event like open or close could be observed by multiple observers in queue, and that if I knew when to insert my observer I could have a parallel audio player while the image was previewed.
I learned that Plugins are those observers, but I haven't yet read about how they queue.
Then when I looked in your code I suddenly realised we are working with HTML here and not C++ code as I have been used to
Anyway, I found in your code that you use the rel attribute for shadowbox. I guess that its data is user specific, i.e. specific to your code. Or is there some documentation for how to use the rel attribute? Is it Joomla specific?
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Play sound while watching Shadowbox image
Hi, the rel is a shadowbox javascript option (which is used for other methods too), so this depends on the used javascript method. Such methods use this attribute for displaying the detail window. It is not related to Joomla!
Jan
Jan
If you find Phoca extensions useful, please support the project