0

I am trying to develop a simple music web browser based application using

On a high level, this is what i did

  • Created a simple master blade and extended it in all view files.
  • I have setup the AmplitudeJS library to do playback. All works fine there.
  • but I want to make the player persistent i.e while navigating to other links in website the song must keep playing

I've considered, tried but can't use (for reasons that are irrelevant to this discussion)

  • loading the playback in a browser popup
  • flash player
  • or using something like history.js (history APIs) to retain state of the previous page
  • iframes - loading player in a dedicated iframe, content in another frame etc
  • Rewriting my code to use ajax, in a way that no REAL navigation happens, the content is always switched in the same page.. make it like a single page application.. (SEO problems.. If i can't find a better solution, this is what i would go with) (Is there is a way the Ajax can be used without compromising the SEO? should probably be a separate question)

I have also looked at the following, but couldn't figure out a definitive solution

let me know if i can provide any more info

Thanks in advance!

Vinay W
  • 9,912
  • 8
  • 41
  • 47
  • What Frontend do you have? If it is based on php that won't work. You need a persistent Javascript frontend like angularjs, emberjs, vue.js or whatever. Then you can have a master which doesn't get changed. – Kilian Hertel Aug 15 '17 at 12:52
  • Yes the front-end is in PHP. @ki – Rohan Tandel Aug 16 '17 at 06:01
  • PHP is not persistent is it? It reloads the page each time... or ma i wrong? Then the audio player is broken as well – Kilian Hertel Aug 17 '17 at 22:13
  • yes PHP is not persistent . I have to concentrate on this (Is there is a way the Ajax can be used without compromising the SEO?) If there is no other way – Rohan Tandel Aug 18 '17 at 07:22
  • If you have a multimedia rich site with strong javascript SEO is potentially compromised => But is there really so much text => content you need the bot to see? Google's self developed framework angularjs is as far as i now compromising the SEO, but you should really check on that, because Google is encorraging people to use this technology. At the end you can as well Program every site statically and if javascript rendering is activated => You can definitely check on that => You can turn on further navigation through a javascript view component to ensure user experience. – Kilian Hertel Aug 20 '17 at 07:30
  • I think as well that times in which static sites are in advance are changing. But that's just my opinion. – Kilian Hertel Aug 20 '17 at 07:31
  • I did search for that, google still not officially declared that angular and SEO concepts. And yes it's a multimedia rich website. – Rohan Tandel Aug 22 '17 at 10:19

0 Answers0