Il giorno giovedì 15 maggio 2014 11:10:59 UTC+2, Sirio Lombardi ha scritto:
>
>  
>   I can't manage to start a video muted in Firefox v29.0.1.
>
> I have a video tag in an ng-repeat loop, and I want to start the video 
> muted; however, it does't mute in Firefox. In Chrome it works well.
>
> If I remove the ng-repeat, it works also in Firefox.
>
> The code is very simple:
>
> <div ng-app="myApp" ng-controller="myController">
>  <div ng-repeat="number in numbers">
>   <video src="http://techslides.com/demos/sample-videos/small.mp4"; autoplay 
> controls loop muted>
>   </video>
>   {{alert}} Video</div></div>
>
> I have put up a fiddle here. <http://jsfiddle.net/YW6hP/6/>
>
> What am I missing?
>

*UPDATE*

At last I resolved with this directive I put in my video tags:

    .directive('myVideo', function () {
        return {
          restrict: 'A',
          scope: {},
          link: function(scope, element, attrs) {
                    element[0].muted = true;
           }
        };
    })

Hope this may help others!  

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to