Music Player On Yii

Guys!

I was a novice in yii,

I have a exercise from my lecturer to make examinations in yii and i want to play mp3 in my application.

Does anyone can help me?

Thanks

Hello,

You can use this extension…

http://www.yiiframework.com/extension/mediaelement

Thanks before,

But I have to try it with this in my view


<b><?php

        $this->widget('ext.mediaElement.MediaElementPortlet', array(

            'url' => 'C:/xampp/htdocs/EnglishLearning/protected/extensions/12.mp3',

            // or you can set the model and attributes

                //'model' => $model,

                //'attribute' => 'url'

                // its required and so you have to set correctly

                // 'mimeType' =>'audio/mp3',

        ));

        ?>

        </b>

But the mp3 can’t play in my browser.

try it .


<b><?php

        $this->widget('ext.mediaElement.MediaElementPortlet', array(

            'url' => 'http://localhost/EnglishLearning/protected/extensions/12.mp3',

            // or you can set the model and attributes

                //'model' => $model,

                //'attribute' => 'url'

                // its required and so you have to set correctly

                // 'mimeType' =>'audio/mp3',

        ));

        ?>

        </b>