gorork / paper-audio-player

A custom audio player with paper material style
http://nadikun.com/code/paper-audio-player/demo
MIT License
197 stars 58 forks source link

The Play and Pause buttons do not work #29

Closed EmmanuelMartinez closed 7 years ago

EmmanuelMartinez commented 8 years ago

The Play and Pause buttons do not work, shown 3 at the same time, hide function does not work.

What could be my problem? And

How I can put a notice of loading?

This is the project I'm working: http://2016.socialrhythm.mx/discografia

Thanks for the help Kind regards

captura de pantalla 2016-10-31 a la s 5 32 04 p m

gorork commented 8 years ago

@EmmanuelMartinez What player version are you using?

Judging by the look of the player in your project, it's not the latest production version. The round play/pause icons are from very old versions, while volume control is not yet merged into the master branch. My guess is that these modifications introduced this bug.

EmmanuelMartinez commented 8 years ago

the version is 1.1.0, install it from bower, I work the volume control, before control volume had the problem

Excuse my English so bad

EmmanuelMartinez commented 8 years ago

updated, installing files in zip and bower and the result is the same. captura de pantalla 2016-10-31 a la s 11 15 20 p m

I hope you can help me

gorork commented 8 years ago

How do you pass a track url to the player? There is no src attribute at the <paper-audio-player> element in your project.

Try updating the src attribute on the player itself.

EmmanuelMartinez commented 8 years ago

Pass the url with a variable <paper-audio-player src="{{playsrc}}" title="{{playtitle}}" ></paper-audio-player>

I put the direct link and did not work <paper-audio-player src="/audio/Igual_que_tu.mp3" title="{{playtitle}}" ></paper-audio-player>

the url works that the song is played, you can check http://2016.socialrhythm.mx/discografia

gorork commented 8 years ago

Yes, this should work as expected. Unfortunately, I can't reproduce this behaviour on my side. Could you create a minimally-working plunker/codepen that reproduces this issue?

EmmanuelMartinez commented 8 years ago

I attached the code of the component: only have to change the variable playsrc and playtitle "Reproduccir" is a function that will be observed when changing song, does not affect whether remove sr-audio-play.html.zip

EmmanuelMartinez commented 8 years ago

https://github.com/EmmanuelMartinez/prueba-paper-audio/blob/master/prueba-paper-audio/sr-audio-play.html

EmmanuelMartinez commented 8 years ago

In firefox they are working, I think the problem is hidden$

gorork commented 8 years ago

We need to reproduce the same behaviour in a minimal environment. Could you create a live example with the same bug on Plunker or Codepen.

EmmanuelMartinez commented 8 years ago

It has been difficult for me to upload the project to codeopen because I do not know it, excuse my ignorance. But I discovered, reviewing the project and commenting this line already works window.Polymer = {lazyRegister: true, dom: 'shadow'}; But I have discovered, reviewing the project, that if I comment this line in index.html file the buttons work.

Who's got an idea?

gorork commented 7 years ago

Closing this issue for now, as it's more likely environment-related and not reproduced.