mirror of
https://github.com/jlengrand/soundcloud-web-component-application.git
synced 2026-03-10 08:41:23 +00:00
Use playlist url as attribute
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user