Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property '0' of undefined when i use videogular-flash #6

Open
sankesh opened this issue Sep 10, 2015 · 6 comments

Comments

@sankesh
Copy link

sankesh commented Sep 10, 2015

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)

@sankesh
Copy link
Author

sankesh commented Sep 10, 2015

My Html Page is as below
image

@NamPNQ
Copy link
Owner

NamPNQ commented Sep 10, 2015

i guess u for got add videogular script

@sankesh
Copy link
Author

sankesh commented Sep 10, 2015

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

image

below is my home controller and i have added flash.js too in my main.html
image

@NamPNQ
Copy link
Owner

NamPNQ commented Sep 10, 2015

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

@sankesh
Copy link
Author

sankesh commented Sep 10, 2015

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

@NamPNQ
Copy link
Owner

NamPNQ commented Sep 18, 2015

@sankesh, you can see code in here: https://github.com/NamPNQ/bower-videogular-youtube, and make edit for videogular-flash to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants