An amateur needs html help

General discussion related to Cable Modems, DSL, Wireless, Fiber, Mobile Networks, Wireless ISPs, Satellite, or any other type of high-speed Internet connection, general issues and questions here. Review and discuss ISPs as well (AT&T / SBC, BellSouth, Bright House, CableOne, Charter, Comcast, Covad, Cox, Cablevision / Optimum Online, TMobile, Verizon FIOS, Shaw, Telus, Starlink, etc.)
Post Reply
Thomas
Member
Posts: 68
Joined: Tue Apr 01, 2003 7:47 am
Location: near Philadelphia

An amateur needs html help

Post by Thomas »

Is it possible to have a web page automatically revert to the prior page after a sound-bite or movie clip plays?

http://schuylkillvalleyboys.net/fivefoottwosample.html

On this page, when I click on the link for the sample, a player is launched to play the sample. I would like to discover a method to automatically revert to the original page when it is finished playing. Is this possible?

Another person had suggested the meta tag as you can see in the source code, but this does not work.
Tom
User avatar
Philip
SG VIP
Posts: 11702
Joined: Sat May 08, 1999 5:00 am
Location: Jacksonville, Florida

Post by Philip »

It may be complicated for the page to recognize when the music/video has stopped playing, as it is outside the scope of the page. It may be much easier to embed some type of flash video/audio player on the page itself.
Thomas
Member
Posts: 68
Joined: Tue Apr 01, 2003 7:47 am
Location: near Philadelphia

Post by Thomas »

I am sorry that I don't have the person's name that suggested using a meta-tag. It did not work because of my inexperience. After trying several different forms of the meta-tag, it then was working to cause a time-out then to revert to whatever web page I desired. THANK YOU to that person that helped me. Now another problem has arisen when Internet Explorer is used as the visiting browser. The music sample automatically starts playing okay, but when the time-out occurs, the page does not revert to the initial web page. Instead, the sample just repeats. Here is the Meta-Tag that I used and the HTML5 code for the player. I have also included the site URL to play the sample. These work okay with Firefox, Chrome, SeaMonkey, but do not work correctly with IE, or at all with Safari.

<meta http-equiv="refresh" content="20,http://schuylkillvalleyboys.net/tinpanalley.html"> This allows a 20 second time out before it reverts to the indicated page - 20 seconds being the time to play the sample.

The following is the HTML5 code to create the player, play the sample automatically when the page is launched, and provide different sound formats for recognition by different browsers. (Yes, I have loaded to my site the 3 different sample files.)

<audio controls="controls" autoplay="autoplay"> <source
src="5ft2sample.ogg" type="audio/ogg" loop="false"> <source
src="5ft2sample.mp3" type="audio/mpeg" loop="false"> <source
src="5ft2sample.wav" type="audio/wav" loop="false"> Your
browser does not support the audio element. </audio>

As you can see, I have entered three different sound clips so that each browser can play the one it recognizes. The Meta-Tag time-out works well with Firefox, SeaMonkey, and Chrome, but does not work with IE.

Here's a link directly to click on the sample: http://schuylkillvalleyboys.net/tinpanalley.html

The page source code is open to view also.

I would appreciate any suggestions to fix the IE and Safari problems.
Tom
Post Reply