Just Create a Filter:
app.filter("trustUrl",['$sce',function($sce){ returnfunction(recordingUrl){ return$sce.trustAsResourceUrl(recordingUrl); }; }]);
In View File:
<audiosrc="{{Your_URL|trustUrl}}"audioplayercontrols></audio>原文链接:https://www.f2er.com/angularjs/149206.html