Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

App not working in IonicView

$
0
0

I am not getting any errors in browser or cli. Here is whole function. Maybe I used this expression incorrectly.

$scope.playSound = function (src) {
    if ($window.cordova) {
        $scope.media = new $window.Media(src);
        $scope.media.play();
    } else {
        $scope.media = new Audio();
        $scope.media.src = src;
        $scope.media.load();
        $scope.media.play();
    }
}

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>