App not working in IonicView

My app is working fine in browser and iOS simulator. But it freeze when running through Ionic View. It starts to breeze when I add html5 audio. Does anyone know what could cause this? Or just simply can’t html5 audio be used in Ionic View?

Here is the part where it breaks.

$scope.media = new Audio();
$scope.media.src = src;
$scope.media.load();
$scope.media.play();

Have you tried to remote debug your app on device?

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();
    }
}