Music while playing slideshow

All about the past, current and future webteases and the art of webteasing in general.
---
Post Reply
Zedd8888
Explorer
Explorer
Posts: 18
Joined: Wed Sep 16, 2015 9:01 am
Gender: Male

Music while playing slideshow

Post by Zedd8888 » Wed Feb 14, 2018 7:16 am

Hi all,

i'd like to play a complete music-file while displaying a slideshow...but the moment the page changes, the music stops :(
Is there a way to do it??

Best ,
Zedd

FATALES
Explorer At Heart
Explorer At Heart
Posts: 138
Joined: Wed Oct 21, 2015 2:41 pm
Gender: Male
Sexual Orientation: Straight
Location: Slovakia

Re: Music while playing slideshow

Post by FATALES » Wed Feb 14, 2018 8:03 am

In Nyx probably not.

Powerpoint - YES :D

Zedd8888
Explorer
Explorer
Posts: 18
Joined: Wed Sep 16, 2015 9:01 am
Gender: Male

Re: Music while playing slideshow

Post by Zedd8888 » Wed Feb 14, 2018 8:09 am

:-D
And TeaseMe?

philo
Explorer At Heart
Explorer At Heart
Posts: 787
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

Re: Music while playing slideshow

Post by philo » Wed Feb 14, 2018 7:09 pm

Zedd8888 wrote:
Wed Feb 14, 2018 8:09 am
:-D
And TeaseMe?
I don't think so for TeaseMe as the music would stop on change of page.
GuideMe it is possible, you would need a single page that played the music file and use java script and a timer to change the image.

Zedd8888
Explorer
Explorer
Posts: 18
Joined: Wed Sep 16, 2015 9:01 am
Gender: Male

Re: Music while playing slideshow

Post by Zedd8888 » Wed Feb 14, 2018 7:39 pm

Thanx philo!

Javascript is too complicated for me.... so i'll try to change my tease :\'-(

Best,
Zedd

User avatar
Shattered
Explorer At Heart
Explorer At Heart
Posts: 504
Joined: Fri Jan 11, 2013 6:41 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Location: United Kingdom

Re: Music while playing slideshow

Post by Shattered » Wed Feb 14, 2018 11:30 pm

Not ideal, but you could request that the user open a link to your music. That's about as good as it gets.

Ambossli
Explorer At Heart
Explorer At Heart
Posts: 127
Joined: Sun Apr 24, 2011 7:23 pm
Gender: Male
Sexual Orientation: Straight
Location: Germany

Re: Music while playing slideshow

Post by Ambossli » Thu Feb 15, 2018 11:22 pm

you can use teasme and let's say start the audio on the first page for 30 sec and then on the next page the audio starts at 30 sec and so on

is not optimal but should work
GuideMe it is possible, you would need a single page that played the music file and use java script and a timer to change the image.
That should 1 or 2 lines maybe someone can provide it

User avatar
PlayfulGuy
Explorer At Heart
Explorer At Heart
Posts: 323
Joined: Sat Jul 07, 2012 10:08 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Switch
Dom/me(s): No domme
Sub/Slave(s): No sub
Location: British Columbia, Canada

Re: Music while playing slideshow

Post by PlayfulGuy » Sun Feb 18, 2018 3:44 am

Zedd8888 wrote:
Wed Feb 14, 2018 7:16 am
Hi all,

i'd like to play a complete music-file while displaying a slideshow...but the moment the page changes, the music stops :(
Is there a way to do it??

Best ,
Zedd
This idea intrigued me so I threw together this working sample for Guideme that does exactly what you want. It includes a simple random slideshow with background music, and another example showing sequential images with background music. I've made it easy enough to customize and (hopefully) put in enough comments for you to figure it out.

The zip file was too big to attach, so here's a Mega link.
Slideshow With Music.zip

In the XML file you'll find three pages defined. The first is named "start" and just provides you with a description and a couple buttons you can use to choose the slideshow you want to see. The other two are the slideshow pages.

Something I thought of after uploading it:

If you look at the code for the SlideshowWithMusic page the first few lines of it look like this:

Code: Select all

    <Page id="SlideshowWithMusic">
      <!-- In the following Audio element the target="start" attribute makes Guideme go back
            to the start page when the music ends -->
      <Audio id="Music/*.mp3" target="start" />
In the last line there if you change target="start" to target="SlideshowWithMusic" you will get a page that just keeps looping, starting another random song and playing the random slideshow until you click the End button.

The same can be done with the sequential images one of course.

Enjoy!

PG
Last edited by PlayfulGuy on Mon Feb 19, 2018 8:05 pm, edited 1 time in total.
I'd rather be stroking!

Zedd8888
Explorer
Explorer
Posts: 18
Joined: Wed Sep 16, 2015 9:01 am
Gender: Male

Re: Music while playing slideshow

Post by Zedd8888 » Sun Feb 18, 2018 2:32 pm

Cool - i'll try it ASAP!!

User avatar
Pseudonym
Explorer At Heart
Explorer At Heart
Posts: 135
Joined: Sat Sep 22, 2012 12:03 pm

Re: Music while playing slideshow

Post by Pseudonym » Sat Nov 17, 2018 9:57 pm

Thanks PlayfulGuy! This looks very useful.

I have a question. Do you think it's possible to break the loop and go to different page after x repetitions rather than using a button?

philo
Explorer At Heart
Explorer At Heart
Posts: 787
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

Re: Music while playing slideshow

Post by philo » Sun Nov 18, 2018 9:48 am

Simplified version of the play a random picture
The main difference is the timer is set as xml not javascript
It play a random audio file then changes the image every 5 to 11 seconds
When the audio finishes it loops back to the same page and plays another random audio file
In the folder where the xml file is you need a slideshow folder and within that an audio folder and an images folder.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Tease id="37050" scriptVersion="v0.1">
	<MediaDirectory>slideshow</MediaDirectory>
	<Pages>
		<Page id="start">
			<Text></Text>
			<Image id="images/*" />
			<Audio id="audio/*" target="start"/>
			<Timer seconds="5" imageId="images/*" onTriggered="timer1()" id="imgchng"/>
		  <javascript><![CDATA[
			function timer1() {
				guide.resetTimer("imgchng", "(5..11)");
			}
			]]></javascript>	
		</Page>
	</Pages>
</Tease>

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests