jlmcdonald / byu-hummedia-api

REST api, based on MongoDB (implemented in Python Flask), for managing video collections, assets, and annotations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Popcorn.js issue

matthewfcarlson opened this issue · comments

I think I figured out all the previous issues and some permission problems not withstanding, I think we are almost up and running. We ingested a movie and that works correctly. The video file is there and when we point our browser directly at it then we can see it. It looks like the popcorn.js library is throwing a fit.

TypeError: Cannot read property '_canPlaySrc' of undefined
at Function.canPlayType (https://uevideo.byu.edu/lib/popcorn-js/players/youtube/popcorn.youtube.js:5:45)
at Function.Popcorn.smart (https://uevideo.byu.edu/lib/popcorn-js/modules/player/popcorn.player.js:384:47)
at initialize (https://uevideo.byu.edu/js/controllers/video.js:118:34)
at https://uevideo.byu.edu/lib/angular/angular-resource.js:506:32
at wrappedCallback (https://uevideo.byu.edu/lib/angular/angular.js:10655:81)
at https://uevideo.byu.edu/lib/angular/angular.js:10741:26
at Scope.$eval (https://uevideo.byu.edu/lib/angular/angular.js:11634:28)
at Scope.$digest (https://uevideo.byu.edu/lib/angular/angular.js:11479:31)
at Scope.$apply (https://uevideo.byu.edu/lib/angular/angular.js:11740:24)
at done (https://uevideo.byu.edu/lib/angular/angular.js:7744:45)

It looks like your popcorn.youtube.js is an incorrect version. You need to be using mozilla/popcorn-js@cf6c1a0. If you manually imported the submodules, you could remove them and then use the git submodule commands to install them.

Thanks!