change vocaroo embed to HTML5

This commit is contained in:
ccd0 2014-04-13 00:29:37 -07:00
parent 568da4ba53
commit c5733e47bc

View File

@ -222,8 +222,8 @@ Linkify =
el = (type = Linkify.types[a.dataset.key]).el a el = (type = Linkify.types[a.dataset.key]).el a
# Set style values. # Set style values.
el.style.cssText = if style = type.style el.style.cssText = if type.style?
style type.style
else else
"border: 0; width: 640px; height: 390px" "border: 0; width: 640px; height: 390px"
@ -403,10 +403,12 @@ Linkify =
, ,
key: 'Vocaroo' key: 'Vocaroo'
regExp: /.*(?:vocaroo.com\/)([^#\&\?]*).*/ regExp: /.*(?:vocaroo.com\/)([^#\&\?]*).*/
style: 'border: 0; width: 150px; height: 45px;' style: ''
el: (a) -> el: (a) ->
$.el 'object', $.el 'audio',
innerHTML: "<embed src='http://vocaroo.com/player.swf?playMediaID=#{a.dataset.uid.replace /^i\//, ''}&autoplay=0' wmode='opaque' width='150' height='45' pluginspage='http://get.adobe.com/flashplayer/' type='application/x-shockwave-flash'></embed>" controls: true
preload: 'auto'
src: "http://vocaroo.com/media_command.php?media=#{a.dataset.uid.replace /^i\//, ''}&command=download_ogg"
, ,
key: 'Vimeo' key: 'Vimeo'
regExp: /.*(?:vimeo.com\/)([^#\&\?]*).*/ regExp: /.*(?:vimeo.com\/)([^#\&\?]*).*/