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

getting error "TypeError: this.el_[prop] is not a function" #4694

Closed
ankmachine opened this issue Oct 26, 2017 · 3 comments
Closed

getting error "TypeError: this.el_[prop] is not a function" #4694

ankmachine opened this issue Oct 26, 2017 · 3 comments

Comments

@ankmachine
Copy link

Description

I am using kockoutjs with videojs. The moment i click on the play button it gives me error in browser(chrome) console :

VIDEOJS: Video.js: play unavailable on Html5 playback technology element. TypeError: this.el_[prop] is not a function at Html5.(anonymous function) [as play]

there is jsfiddle for same https://jsfiddle.net/u0uL3hwf/3/

Steps to reproduce

In chrome browser
https://jsfiddle.net/u0uL3hwf/3/

Results

Expected

to play the nice video i have provided as source

Actual

its not playing anything with the error in browser console.

Error output

VIDEOJS: Video.js: play unavailable on Html5 playback technology element. TypeError: this.el_[prop] is not a function at Html5.(anonymous function) [as play]

Additional Information

I am using kockoutjs with videojs

versions

videojs

6.2.8 (its happening with other versions too, like 5.8.8)

browsers

chrome

OSes

centOS7

plugins

In my main project I am using hotkey, but jsfiddle is without any plugin

@kocoten1992
Copy link
Contributor

the div tag, change it to video tag, it will work

@ankmachine
Copy link
Author

ankmachine commented Oct 27, 2017

thanks, that worked, i wonder why videojs worked with div tag where i was not using knockoutjs?

@gkatsev
Copy link
Member

gkatsev commented Oct 27, 2017

That's weird. Maybe you had the video tag wrapped in a div instead? Anyway, I have a PR open to not require you to use a video tag directly but rather use a video-js element (which is basically a div): #4640

Closing since seems like it's fixed :). Thanks @kocoten1992 for helping out!

@gkatsev gkatsev closed this as completed Oct 27, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants