BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - Background sound on all site
  FAQ FAQ  Forum Search   Register Register  Login Login

Background sound on all site

 Post Reply Post Reply
Author
Message
Bravo12 View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jun 07 2013
Location: Italy
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bravo12 Quote  Post ReplyReply Direct Link To This Post Topic: Background sound on all site
    Posted: Jul 21 2017 at 11:45am
I tried to add a background (in the top-bar) sound into Base Layer so it should be used from all pages, and should continue without interruption, but as I select a new link to open, the sound restarts from beginning. I don't understand how to fix it in oE 'cause normally I would do as told up.
Do I miss something?Confused


Edited by Bravo12 - Jul 21 2017 at 11:46am
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Jul 21 2017 at 9:07pm
Hi,

This is not a trivial task. And putting it to the base layer changes nothing.
The only way to keep it playing, apart from opening another window (which will either be blocked by browser or closed immediately by user), is to memorize the playback position in a cookie (ex. "at 15:45:30seconds the playback was at 45seconds from the start) then use it to calculate the starting position when a new page opens.
Back to Top
Bravo12 View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jun 07 2013
Location: Italy
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bravo12 Quote  Post ReplyReply Direct Link To This Post Posted: Jul 22 2017 at 2:49pm
I found also another workarond (point 2 on the page), but it needs to be cutted and arranged to the need. LINK to the page (is in my language...)

Here howto and code.

We need to think that the first page in a site is Page 1 followed by Page 2 where the audio must
begin without interruption during change of other pages. So we need include a between 1 and 2 a
page containing data for opening Page 2 with music in beginning; this page is not visualized
and we will name it (example) Page A and is commanding the opening of Page 2. Here what it does
contains (code):

<HTML>
<HEAD>
<TITLE>TITLE< /TITLE>
</HEAD>
<frameset rows="0,*">
<frame src="MUSIC.html">
<frame src="PAGE2.html">
</frameset>
</HTML>

This page contains only datas for opening Page 2 with music starting. Change "TITLE" with what
you need; change "music" , with the one you need and that contains datas for the audio to be
played:
<HTML>
<HEAD>
<TITLE>Lambada</TITLE>
</HEAD>
<EMBED HIDDEN='true' AUTOSTART='true' src='lambada/.wav' REPEAT='3'>
</HTML>

This page is here named LAMBADA but you can use the name you want.
With Page 2 you indicate the page that must be opened and seen and where you put all you need
to show. Opening all other pages, from the Page 2, will not interrupt the music over all site.

Do you think it can work in oE?
(I hope my translation is understandable to everyone...)



Edited by Bravo12 - Jul 22 2017 at 2:59pm
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Jul 22 2017 at 10:12pm
It's a good idea, to open the website inside a page. You can also use iframes as framesets are more difficult to organize in OE. Or, you can just manually create the page with frameset, and load an OE-generated website in place of PAGE2.

This all may however have a negative infact on SEO (search engine optimisation)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.