bower-videogular-flash
bower-videogular-flash copied to clipboard
TypeError: Cannot read property '0' of undefined when i use videogular-flash
i am getting below mention error. i guess it because the flash.js is called before the API is assigned value in onPlayerReady() $scope.API = null; $scope.onPlayerReady = function(API) { $scope.API = API;};
After $scope.initfunction it call flash.js and it is getting API source as null.The error which i got is as below
TypeError: Cannot read property '0' of undefined at getSource (flash.js:153) at init (flash.js:54) at angular.js:17782 at e (angular.js:5490) at angular.js:5762(anonymous function) @ angular.js:12416b.$get @ angular.js:9203(anonymous function) @ angular.js:17785e @ angular.js:5490(anonymous function) @ angular.js:5762
so is there any solution for it.i want to play all the video format in videogular (YouTube, mp4,.swf,.FLV)
My Html Page is as below
i guess u for got add videogular script
Thx For Quick reply.No i didnt . i have already it before . Before i added videogular-flash the videogular was working fine for me.you can see my my script below
below is my home controller and i have added flash.js too in my main.html
what is version videogular u used? The latest videogular version had change many thing, i do not have time for fix, and videogular-flash is discontinue project
i am using http://static.videogular.com/scripts/videogular/latest/videogular.js videogular v1.2.6. So if i want to play .flv or .swf video then how can i do it in videogular v1.2.6. i want to play all type of video in videogular. Is it possible
@sankesh, you can see code in here: https://github.com/NamPNQ/bower-videogular-youtube, and make edit for videogular-flash to work