apache - Play audio file of a system directory -


i have apache server locate on /var/www/html. want play audio file on browser locate on /var/spool/monitor/file.wav

i'm trying directly , dont work, clearly:

 <audio controls>   <source src="/var/spool/asterisk/monitor/2016/09/07/internal-2000-2001-20160907-115123-1473259882.329.wav" type="audio/wav">  browser not support audio element. </audio>  

how can that? i'm using php5.3 (yii1.1) , apache server

<audio autoplay="autoplay"><source src="your path" type="audio/mpeg" /></audio> 

path should accessible browser ex : http://10.10.10.10/your-folder/file.mp3

this working me.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -