0

I want to play an audio file and my code is below

<table class="table table-striped">
    <tr ng-repeat="playlist in playlists">

        <audio controls>
            <source src="uploads/playlist/file/{{playlist.id}}/{{playlist.name}}" type="audio/mpeg">
        </audio>

</table>

After this src must be like

uploads/playlist/file/3/song.mp3

but it's not working for me, what should be done to correct the src path.

chandradot99
  • 3,616
  • 6
  • 27
  • 45

1 Answers1

0

change the src tag by ng-src

See the ngSrc Doc

But it seems that is not enough, see this SO response

Community
  • 1
  • 1
Eliel Haouzi
  • 607
  • 1
  • 6
  • 17