mixcloud player issues

After months of carefree use, now mixcloud have updated their ‘player widget’ and causing me all sorts of problems. Seems to play all right on mobiles but not on my desktop. ‘3 Oct’ works ok on desktop because that is flash based - but won’t on iPhone. So trying to sort out ‘26 Sept’ player.

Their reply was:

We recommend everybody to use the iframe embed code because it will seamlessly work between desktop and mobile devices. The embed code you generated from our website is valid and works. You can check this by being on our site and playing the audio within the widget. The reason why it is not working on your website is because the embed code has been modified. The content with the iframe tag in the ‘src’ attribute needs to match what you have posted above. Your player code does not match this, so when the iframe loads that specific Mixcloud widget page it is setting incorrect information which is disallowing playback.

What is the ‘src’ attribute and how do I match it to the code?

Many thanks

http://www.theslaggbrothers.co.uk/6townsradio.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

observation made (this is from the 12 Sept link)

copy of code after it has been pasted into iframe page:

//www.mixcloud.com/widget/iframe/?feed=http%3A%2F%2Fwww.mixcloud.com%2Fslaggbrothers%2Fthe-slagg-brothers-6-towns-show-120913%2F&mini=&stylecolor=&hide_artwork=&embed_type=widget_standard&embed_uuid=d72d39e4-4568-4948-8dd5-14bcf8d7b943&hide_tracklist=&hide_cover="%20frameborder="0"></iframe><div%20style="clear:both%3B%20height:3px%3B%20width:372px%3B"></div><p%20style="display:block%3B%20font-size:12px%3B%20font-family:Helvetica,%20Arial,%20sans-serif%3B%20margin:0%3B%20padding:%203px%204px%3B%20color:#02a0c7%3B%20width:372px%3B"><a%20href="http://www.mixcloud.com/slaggbrothers/the-slagg-brothers-6-towns-show-120913/?utm_source=widget&amp%3Butm_medium=web&amp%3Butm_campaign=base_links&amp%3Butm_term=resource_link"%20target="_blank"%20style="color:#02a0c7%3B%20font-weight:bold%3B">The%20Slagg%20Brothers%206%20Towns%20Show%2012.09.13</a><span>%20by%20</span><a%20href="http://www.mixcloud.com/slaggbrothers/?utm_source=widget&amp%3Butm_medium=web&amp%3Butm_campaign=base_links&amp%3Butm_term=profile_link"%20target="_blank"%20style="color:#02a0c7%3B%20font-weight:bold%3B">Slagg%20Brothers%206%20Towns%20Radio</a><span>%20on%20</span><a%20href="http://www.mixcloud.com/?utm_source=widget&utm_medium=web&utm_campaign=base_links&utm_term=homepage_link"%20target="_blank"%20style="color:#02a0c7%3B%20font-weight:bold%3B">%20Mixcloud</a></p><div%20style="clear:both%3B%20height:3px%3B"></div>

but the original copied code is

//www.mixcloud.com/widget/iframe/?feed=http%3A%2F%2Fwww.mixcloud.com%2Fslaggbrothers%2Fthe-slagg-brothers-6-towns-show-120913%2F&mini=1&stylecolor=&hide_artwork=&embed_type=widget_standard&embed_uuid=d8c715bf-6556-422e-941b-9ebdfdc6934a&hide_tracklist=&hide_cover=" frameborder=“0”>

The Slagg Brothers 6 Towns Show 12.09.13 by Slagg Brothers 6 Towns Radio on Mixcloud

Code seems to have expanded once put into the iframe page. where did all the %22 and similar come from?? - I sense this my problem, amongt others!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Oct 8, 2013, at 9:13 AM, Noel Sergeant wrote:

observation made (this is from the 12 Sept link)

copy of code after it has been pasted into iframe page:

but the original copied code is

Code seems to have expanded once put into the iframe page. where did all the %22 and similar come from?? - I sense this my problem, amongt others!

The % escape codes are used to turn characters that mean something specific in a URL into a replacement that can pass within a URL without being interpreted as a slash, for example, and making the URL mean something besides what you want it to. Can you explain how you pasted this code? Was it in a Markup Item?

Walter

PS: I converted your massive blobs of HTML into Gists, which will hopefully render a little better in FreewayTalk’s Web view, for those who use it. When I did, I saw some line-breaks in the middle of the code that might make it behave ambiguously, but since they came out of Mail, I really don’t know where they came from, so I can’t point any fingers here.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Code was copied from mixcloud site and pasted into iFrame action > URL > External > Protocol: http

Also - In future how do I place large blobs of html into gist?

thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Go to https://gist.github.com and you will see a large textarea. Paste your code into that textarea (it has a neat code editor effect that will color code the text based on the language you tell it it is) and the press the Make Public Gist button. Copy the URL from the page you are redirected to, and paste it all by itself on a single line in your mail message. FreewayTalk looks for these URLs and converts them into a line of JavaScript that will embed the color-coded and nicely formatted code in an iframe.

Walter

On Oct 8, 2013, at 10:25 AM, Noel Sergeant wrote:

Code was copied from mixcloud site and pasted into iFrame action > URL > External > Protocol: http

Also - In future how do I place large blobs of html into gist?

thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

forgot to say that mixcloud also said this

For our service to work as expected we require you to use our generated embed code. We have recently updated our widget to use a html-based widget as default in replacement of the old flash-based. The reason why it might have worked for you in the past is because the flash is a standalone technology which can run regardless of html errors in the code. You will need to fix all of your invalid player embeds before the player will begin playing for you.

This is because it did work perfectly, even with all the %22 additions to the code, until very recently.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

See if Mixcloud offer a blob of code that includes the outer iframe code – something that is a complete iframe, meant to be pasted into Dreamweaver or a text editor. Then draw or insert a Markup Item in your page, and paste the code there. See how that works, versus using the iframe Action to draw it.

Walter

On Oct 8, 2013, at 10:38 AM, Noel Sergeant wrote:

forgot to say that mixcloud also said this

For our service to work as expected we require you to use our generated embed code. We have recently updated our widget to use a html-based widget as default in replacement of the old flash-based. The reason why it might have worked for you in the past is because the flash is a standalone technology which can run regardless of html errors in the code. You will need to fix all of your invalid player embeds before the player will begin playing for you.

This is because it did work perfectly, even with all the %22 additions to the code, until very recently.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sadly not. They only offer iframe embed code (as above) and non-frame html code which is ok for anything but iPads and iPhones as it uses a flash based player - so no other options.

But why does my code expand hugely once placed into the iframe action?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

the direct mixcloud pages is

if you click on the <> symbol or ‘embed play widget’ you can go straight to the code

thank you for your time


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I just went there and looked at a feed, and clicked on the little <> embed icon. They do offer the entire iframe code blob there by default.

Here’s one for a public playlist:

Note how it begins with the <iframe …> code, and ends with . Now if you were to paste that entire thing into the iframe Action, you would end up with <iframe … src=“<iframe …>”> which is completely broken. I don’t imagine you would do that. If you are pasting the entire content of the src attribute (including the % escapes) into the iframe Action, then it should write the same code as the Gist above. But that would be your goal – to make the output from the Action identical to the entire iframe embed code, not a combination of that code and another iframe wrapped around that.

Walter

On Oct 8, 2013, at 10:51 AM, Noel Sergeant wrote:

Sadly not. They only offer iframe embed code (as above) and non-frame html code which is ok for anything but iPads and iPhones as it uses a flash based player - so no other options.

But why does my code expand hugely once placed into the iframe action?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I just updated the Gist to show the portion of their embed code that you would paste into the Action.

Walter

On Oct 8, 2013, at 11:00 AM, Walter Lee Davis wrote:

I just went there and looked at a feed, and clicked on the little <> embed icon. They do offer the entire iframe code blob there by default.

Here’s one for a public playlist:

embed.html · GitHub

Note how it begins with the <iframe …> code, and ends with . Now if you were to paste that entire thing into the iframe Action, you would end up with <iframe … src=“<iframe …>”> which is completely broken. I don’t imagine you would do that. If you are pasting the entire content of the src attribute (including the % escapes) into the iframe Action, then it should write the same code as the Gist above. But that would be your goal – to make the output from the Action identical to the entire iframe embed code, not a combination of that code and another iframe wrapped around that.

Walter

On Oct 8, 2013, at 10:51 AM, Noel Sergeant wrote:

Sadly not. They only offer iframe embed code (as above) and non-frame html code which is ok for anything but iPads and iPhones as it uses a flash based player - so no other options.

But why does my code expand hugely once placed into the iframe action?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

many, many thanks for that Walt, now works a treat.

how come I don’t need all the code that is presented!

and my previous problem - how come all the %22s appear in the code?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Oct 8, 2013, at 12:08 PM, Noel Sergeant wrote:

many, many thanks for that Walt, now works a treat.

how come I don’t need all the code that is presented!

Because the iframe Action writes everything about the iframe tag except for the content of the src attribute. If you paste another entire iframe inside the src attribute field, you get broken code.

and my previous problem - how come all the %22s appear in the code?

I see %2F everywhere in the widget code they gave you – that’s a forward slash. I forget what %22 means. These escape codes are needed because you can’t pass an entire URL as an argument in another URL. For example:

<a href="example.html?page=http://example.com/test/1/2/3">Example</a>

will never work properly, because everything after the ? is an argument, and it cannot include slashes or question marks or hash marks without confusing the browser. That same URL could be rewritten as:

<a href="example.html?page=http:%2F%2Fexample.com%2Ftest%2F1%2F2%2F3">Example</a>

and it would work perfectly.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options