-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Flash Tech: this.el_.vjs_getProperty is not a function #2247
Comments
We've had some difficulty knowing where this error is coming from. Which browser are you using, and is there live web page where we could see this happening? |
This is unrelated to this issue, just curious. I feel like I've seen an uptick recently of people forcing Flash first with mp4 sources. What's your reasoning for doing that? |
@mmcc , I so don't do, the initial call looks as - ['html5', 'flash']. And concerning an error, I replace a code in "\dist\examples\simple-embed\index.html": <!DOCTYPE html>
<html>
<head>
<title>Video.js | HTML5 Video Player</title>
<!-- Chang URLs to wherever Video.js files will be hosted -->
<!-- Default URLs assume the examples folder is included alongside video.js -->
<link href="../../video-js.min.css" rel="stylesheet" type="text/css">
<!-- video.js must be in the <head> for older IEs to work. -->
<script src="../../video.min.js"></script>
</head>
<body>
<div id="video" class="video-js vjs-default-skin"></div>
<script>
var videoParams = { poster: 'http://video-js.zencoder.com/oceans-clip.png',
link: 'http://video-js.zencoder.com/oceans-clip.mp4',
type: 'video/mp4',
tech: [ 'flash' ] };
var player = new videojs( '#video',
{
'techOrder': videoParams.tech,
'sources': [ ],
'poster': videoParams.poster,
'controls': true,
'autoplay': false,
'preload': 'none',
'flash': { 'swf': "../../video-js.swf" }
},
function() {}
);
player.src( ( videoParams.type ) ? { type: videoParams.type, src: videoParams.link } : videoParams.link );
player.play( );
</script>
</body>
</html> Windows 10, Chrome 43 |
👍 having this issue also, only using flash |
for my case, avoiding tracking time on flash object stopped the errors |
tried to apply the fix: got less errors, but some are still here: thanks for looking into this |
That patch is for stable (4.x). Would you mind trying it with that version? If it fixes your issue, we'll look at bringing it into the next 5.0 RC |
here you go: 4.12.10 with patch: https://jsfiddle.net/9r5qcces/2/ |
This still happens on latest 4.X version |
No solution of this problem is present? |
I believe this was fixed in a recent 5.0 RC if anyone wants to try the latest version and confirm. |
@heff We were having the same problem as part of of our work to upgrade to videojs 5.0 (when testing the Flash tech on OSX). I have been able to fix the issue by making Flash.protoype.buffered look something like Flash.prototype.buffered = function buffered() {
var ranges = this.el_.vjs_getProperty('buffered');
if (!ranges.length || ranges.length === 0) {
return _utilsTimeRangesJs.createTimeRange();
}
return _utilsTimeRangesJs.createTimeRange(ranges[0][0], ranges[0][1]);
}; I noticed that ranges was coming in as a number so it was trying to create a time range and ranges[0] was returning undefined and hence it was blowing up. |
I have same problem with @wannabefro, and I'm using the same way to solve the error. |
Anyone want to get the latest version of videojs and the swf and test whether this is still an issue? Thanks. |
Still an issue with:
|
VideoJS: 5.5.3 I initialise a player on a page with HLS, no sources. I can then programmatically set the source on the videoJS object once, and then further attempts to update the source thereafter results in errors. Seems to start when I attempt to check if the video is paused already
Everything thereafter seems to relate to the flash buffer at |
I believe this has been fixed in latest contrib-hls and videosjs. |
maybe the videojs version I am using it has the issue. I 'll have to verify this first. I 'll let you know soon. Thanks for your response. |
Still seeing this error when using The below errors happen after showing another page(without video tag) from original page(videojs with flash tech). My app is a single application page based on angularjs.
|
I'm also experiencing this on 5.14.1 (with flash plugin 5.1.0). As I'm loading RTMP content on my site (live streaming), I cannot just use html5 as it's not currently (and likely won't ever be) supported there. If there is still interest in debugging this, I'm happy to set up a live reduced test case. Since this is related to live video, I can't provide a static link. However, this is the code in question:
It's extremely inconsistent, and I haven't been able to track down what specifically triggers it. Some days it will work flawlessly, others it will error out on every other attempt to load the video. |
We started getting this error intermittently a couple months ago on Safari, and over time the frequency increased until the failure rate is virtually 100%. I spent some time debugging it today, and I discovered that, in our case, the culprit is that we render our own custom controls on top of the flash The markup is structured something similar like this: <div id='wrapper'>
<div id='video-canvas'>
<div id='vjs_video_1'>
<object ... />
</div>
</div>
<div id='player-overlay'>
[player controls here]
</div>
</div> While it's not a "real" solution for our app, I can get playback to succeed every time by simply removing the Anyway, that's not a very reusable solution, but I figured I'd post it here incase it mirrors the problems anyone else is having with this error. |
Thanks for posting @jmar777! That definitely looks in-line with what we've seen where Safari is super aggressively hiding and stopping the flash player. |
@gkatsev no problem! By the way, here's how we resolved this on our end: Referencing my sample markup in my previous comment, we previously had:
The fix ended up being remarkably simple: all we had to do was remove all styles on So, to theorize on what the significant change for Safari was: before we had a transparent div that covered the entire |
I test the version 5.0rc2
I initialize a player as well as version 4.10.
But in attempt of start of video: Uncaught TypeError: this.el_.vjs_getProperty is not a function ( Line: 10033 )
In HTML tech - everything is normal.
Perhaps I do something not so?
The text was updated successfully, but these errors were encountered: