-1
我是網絡技術的新手,我試圖使用python django HTML動態播放音樂文件。我已經將文件位置存儲在數據庫中並獲取它。在html中動態播放音樂
<audio control><source src= {{track.songlocation}} type="audio/mpeg"></audio>
我收到以下錯誤
Not Found: /home/tushar/Music/Tracks/shots.mp3
同時,如果我靜態播放文件,其播放
<audio control><source src= "/home/tushar/Music/Tracks/shots.mp3" type="audio/mpeg"></audio>
我怎麼解決這個問題呢?
它沒有工作 – 9codie05