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&g开发者_开发问答t;
<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
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
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.
精彩评论