What I'm attempting to do is embed a Bandcamp music player onto a page of my Wordpress blog. The issue is that the max width of BC's current player is 700px and I need it to be 900px. After speaking with someone at BC, they sent me a link to the old version of their embeddable player which uses a .json to style/customize the appearance and layout.
After a little work, I was able to successfully create a BC player that spans the full 900px width I wanted. And here is where I'm stuck...
Even though the player is now the correct width, it does not scale at all on devices with smaller screens or resolutions and instead simply cuts the entire right side of the player off. I think I can get the size of the iframe to scale overall, but not the contents (so the player still appears cutoff).
Is there any way for me to get the contents of the iframe to scale along with the size of the iframe itself? My coding knowledge is limited, but if anyone can even vaguely point me in the right direction, I'd really appreciate it! This is What I have so far:
HTML:
<iframe style="height: 80px; width: 900px; border: 0;" src="http://bandcamp.com/EmbeddedPlayer/track=2376719032/layout=http_3A_2F_2Fsoundcherry.com_2Fbcplayer.json/linkcol=ffffff/bgcol=333333/fgcol=ffffff/" width="300" height="150" frameborder="0"></iframe>
JSON:
{
"art": { "x": 1, "y": 1, "w": 78, "h": 78, "show": true },
"maintext": {
"x": 132, "y": 24, "w": 330, "h": 120, "show": true,
"styles": { "fontFamily": "Arial", "fontSize": 11, "fontWeight": "normal" }
},
"subtext": {
"x": 131, "y": 5, "w": 330, "h": 120, "show": true,
"styles": { "fontFamily": "Arial", "fontSize": 15, "fontWeight": "bold" }
},
"totaltime": {
"x": 864, "y": 20, "w": 32, "h": 16, "show": true, "fontsize": 11,
"styles": { "fontFamily": "Arial", "color": "0x9f1d0f", "fontSize": 11 },
"track": { "y": 63 }
},
"timeline": {
"x": 90, "y": 48, "w": 800, "h": 16, "show": true
},
"currenttime": {
"x": 88, "y": 174, "w": 32, "h": 16, "show": true, "fontsize": 11,
"styles": { "fontFamily": "Arial", "color": "0x9f1d0f", "fontSize": 11 },
"track": { "y": 63 }
},
"play": {
"x": 90, "y": 6, "w": 30, "h": 30, "show": true
},
"next": {
"x": 153, "y": 63, "w": 11, "h": 11, "show": true
},
"prev": {
"x": 131, "y": 63, "w": 12, "h": 12, "show": true
},
"linkarea": {
"x": 545, "y": 0, "w": 350, "h": 30, "show": true,
"styles": { "textAlign": "right", "fontFamily": "Verdana", "fontSize": 13, "fontWeight": "bold" },
"track": { "y": 5 }
}