audio usando extension soundmanager-simple-playlist

Buenos días

Estoy empezando a utilizar Yii.

Quiero escuchar en mi web archivos mp3 y estoy empleando la extensión Yii ‘soundmanager-simple-playlist’ que ya he ubicado en protected/extensions/




<?php

$this->widget("ext.SoundManager.ESoundManagerSimplePlayList", 

        array(

            "playListId"=>"playList1", 

            "playListClass"=>"list1", 

            "autoPlay"=>false, 

            "autoNext"=>false, 

            "playCallback"=>"onPlay", 

            "stopCallback"=>"onStop", 

            "pauseCallback"=>"onPause", 

            "resumeCallback"=>"onResume", 

            "finishCallback"=>"onFinish"

            )

        );

 

// Javascript to handle play event of the player

$script = <<<EOD

  function onPlay(){

     alert("Play: " + playList1.currentPlayerId); // playList1 is the id of the playlist parameter when we create the widget

  }

 

  function onStop(){

     alert("Stop: " + playList1.currentPlayerId); // playList1 is the id of the playlist parameter when we create the widget

  }

 

  function onPause(){

     alert("Pause: " + playList1.currentPlayerId); // playList1 is the id of the playlist parameter when we create the widget

  }

 

  function onResume(){

     alert("Resume: " + playList1.currentPlayerId); // playList1 is the id of the playlist parameter when we create the widget

  }

 

  function onFinish(){

     alert("Finish: " + playList1.currentPlayerId); // playList1 is the id of the playlist parameter when we create the widget

  }

EOD;

 

Yii::app()->clientScript->registerScript("playListEventHandler", $script);

?>




El problema es que aparecen alertas cada vez que doy al play, stop, etc.

Y si elimino las function onFihish() etc., ya no funciona el sonido.

Si alguien ya paso por esto, agradecería ayuda.

Muchas gracias.