Following code doesn't work.
$scope.assignTrustedUrl = function()
$scope.assignTrustedUrl2 = function()
how play remote media?
please let me know
I was wondering where you got that usage from and then I looked at the Studio help for remote media linking, 🤦
That exact usage show in help produces this error in the console
Error: [$sce:itype] http://errors.angularjs.org/1.5.3/$sce/itype?p0=resourceUrl
which says SCE trust call require a string value for the URL. Which is what we are passing to it.
The "old" way of doing this still works however. Either of these lines will set the video source for a video widget.
$scope.setWidgetProp('video-2', 'videosrc', video); //this is the most reliable method for setting widget properties //or $scope.view.wdg['video-2'].videosrc=video;
After some code changes within Studio $sce no longer works. Our help center documentation will be updated to reflect this. We recommend linking to remote media using