-
-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing Amplitude.js on Joomla #320
Comments
Hi @NesteA88 , Which player interface are you trying to use? You will have to have the player mark up on the page for it to appear. The init function simply binds the elements to an interaction and tells AmplitudeJS how to interact with your player. Everything you have seems to be set up correctly. |
Good day! I want to install a player with a playlist. What do your words mean: "it is Necessary to mark the player on the page to make it appear"? From the archive that I download from GitHub, I only need the file " amplitude.js" or any other files and folders need to be added to the site? |
@NesteA88 So you will need AmplitudeJS included on your page and you will need the HTML of the player that you wish to use. When I looked at the screenshot, it looks as if AmplitudeJS was configured correctly, but nothing was being bound to it. Do you have a public facing link with the code available? |
Good day! I have created the page you are trying to add player - https://armymusic.ru/pesni-pro-pv.html. At this point it should be player - http://prnt.sc/mli34d. It still does not appear. Something else needs to be added, but I don't know what it is. |
Hi @NesteA88, So you need to add the actual HTML to the page. AmplitudeJS just activates the HTML on init. So with your player, you have to add the HTML and with all of your songs and then run |
Dan, good day! I have already understood that it is necessary to add HTML-construction. But I can't figure out what she's supposed to look like! Can you use at least one song as an example to show what the HTML code will look like? |
Ahh, gotcha! So for a single song, you could do something like this:
This is a fully functioning HTML markup for AmplitudeJS. You can activate it with the script:
I have some more JS in there than the necessary just for a few features custom to the player. Hope that helps! You can find more examples here of tons of different types of players: https://github.com/521dimensions/amplitudejs/tree/master/examples |
Hi @NesteA88 Did this help solve the problem? If so I'll close the issue. |
Yes! Thank you! |
Good day!
Version Amplitude.js - 4.0.0
Installation instructions studied. I'm trying to install the player on Joomla by the third method - manual installation (while on the local server). What am I doing wrong?
I downloaded Amplitude.js from GitHub. The amplitude.js file added to the </ head> area - <script type="text/javascript" src="/js/amplitude.js"> </ script>. In the place of the site where I want to see the player, I initialize its output:
<script type="text/javascript"> Amplitude.init({ "songs": [ { "name": "Song Name 1", "artist": "Artist Name", "album": "Album Name", "url": "/song/url.mp3", "cover_art_url": "/cover/art/url.jpg" }, { "name": "Song Name 2", "artist": "Artist Name", "album": "Album Name", "url": "/song/url.mp3", "cover_art_url": "/cover/art/url.jpg" }, { "name": "Song Name 3", "artist": "Artist Name", "album": "Album Name", "url": "/song/url.mp3", "cover_art_url": "/cover/art/url.jpg" } ] }); </script>Result: the player does not even appear. In the console, such a picture - https://prnt.sc/meo2ix
The text was updated successfully, but these errors were encountered: