   isReady:()->
     @_ready
   load:(url)->
-    o =  if ApiHeroUI.widgets.jPlayer.utils.isSafari() then {mp3:url} else {rtmpv:url}
+    o =  if ApiHeroUI.widgets.jPlayer.utils.isSafari() then {mp3:url} else {rtmpa:url}
+    console.log o
     @_player.jPlayer "setMedia", o
     @play() if @autoplay
   autoplay:true

  pause:()->
    @_player.jPlayer "pause"
  init:(o={})->
    opts = _.clone @defaults
    _.extend opts, o.options || {}
    @_player = @$el.jPlayer opts
    @queue = new ApiHeroUI.widgets.jPlayer.QueueClass
class ApiHeroUI.widgets.jPlayer.QueueClass extends Backbone.Collection
  model:Backbone.Model.extend
    defaults:
      file:null
      type:"mp3"
ApiHeroUI.widgets.jPlayer.utils =
  isSafari:->
    (/Safari/.test navigator.userAgent and /Apple Computer/.test navigator.vendor)

ApiHeroUI.widgets.jPlayer.components = {}
ApiHeroUI.widgets.jPlayer::defaults = 
  swfPath:"/"
  supplied: "#{if ApiHeroUI.widgets.jPlayer.utils.isSafari() then 'mp3' else 'rtmpa'}"
  solution: 'html, flash'
  preload: "metadata"
  wmode:"window"
  errorAlerts: true
  warningAlerts: true