Use playlist url as attribute

This commit is contained in:
Julien Lengrand-Lambert
2017-06-07 08:45:01 +02:00
parent 0987fb5fe3
commit 2e2eec583f
2 changed files with 10 additions and 3 deletions

View File

@@ -15,13 +15,20 @@
height="450"
scrolling="no"
frameborder="no"
src="https://w.soundcloud.com/player/?url=https%3A%2F%2Fsoundcloud.com%2Fstuart-silva-322219159%2Fsets%2Fromantic-songs-mariela&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">
src="https://w.soundcloud.com/player/?url={{playlistUrl}}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">
</iframe>
</template>
<script>
Polymer({
is: 'sc-player'
is: 'sc-player',
properties: {
playlistUrl : {
type: String,
value: "",
reflectToAttribute: true
}
}
});
</script>
</dom-module>

View File

@@ -13,6 +13,6 @@
<body>
<sc-title></sc-title>
<sc-profile></sc-profile>
<sc-player></sc-player>
<sc-player playlist-url="https%3A%2F%2Fsoundcloud.com%2Fstuart-silva-322219159%2Fsets%2Fromantic-songs-mariela"></sc-player>
</body>
</html>