Alan Rtl
Alan Rtl

Reputation: 51

Embed a music player on email

I'm creating html to send by email, and i want to put a music player like SoundCloud, I recieve an email who include that.

<object height="81" width="100%">
    <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F1627309%3Fsecret_token%3Ds-B1hMj&secret_url=false">
    </param> 
    <param name="allowscriptaccess" value="always">
    </param> 
    <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F1627309%3Fsecret_token%3Ds-B1hMj&secret_url=false" type="application/x-shockwave-flash" width="100%"></embed>
</object>

This is the code of the player.

Thanks

Alan

Upvotes: 5

Views: 12863

Answers (2)

John
John

Reputation: 12193

I'd imagine the support is similar to video as the only technique for both is with HTML5. You'll have to be mindful of the fallbacks however, as it is not 100% supported.

This link has info on how to embed (video) and also the support chart.

Here is another link.

Upvotes: 0

Marko
Marko

Reputation: 72222

Most email clients will reject your object/embed tags.

Flash & Javascript are not allowed in Email Newsletters.

Update - Apparently this actually is possible in Apple Mail, all others will fail though.

See http://support.soundcloud.com/soundcloud/topics/embedding_soundcloud_mix_on_email_ive_seen_it_done_but_dont_know_how?from_gsfn=true

Upvotes: 4

Related Questions