Flash Fallback in IE8
Hi,
I've got the demo running on a development server and all instances work great except IE8. It seems to be loading the Flash -- at least it is present on the page, but not playing nor showing the player:
http://dent-web01.usc.edu/ostrownet/demo2.html
If I take the fallback Flash out of the context of VideoJS and simply call the object tag and its contents it runs fine:
ttp://dent-web01.usc.edu/ostrownet/demo3.html
Any idea why it won't load in the first scenario but does in the latter?
Thanks,
Ben
- demo2.html 2.8 KB
- demo3.html 1.1 KB
2 Posted by Ben Creighton on 01 Dec, 2011 06:16 PM
To further clarify, it seems the error occurs when the video tag is added -- with everything but the video tag, the flash plays perfectly in IE8.
3 Posted by Ben Creighton on 01 Dec, 2011 06:32 PM
OK, if I leave the page open, after two or three minutes the video suddenly appears. Seems it must be loading the entire video prior to playing? Not sure. Anyone experience a similar issue?
4 Posted by Peter R. Fletcher on 15 Dec, 2011 10:21 PM
Yes. I've just run into this one, too, and it does, indeed, seem to be loading the entire video before proceeding. I am combining a very slightly modified version of the DreamWeaver Flash code with VideoJS, and I thought that the two JavaScript libraries might be incompatible, but your experience suggests more to it than that. Does anyone have any ideas?
5 Posted by Bas on 12 Jan, 2012 12:59 PM
I'm also have the problem that no video is shown in IE8 or IE7. I tested this by just running the demo file in the download on a Windows XP environment. Any idea's how to solve this? The demo.html files only contains the HTML5 video tag but when running I see that this is overruled by a flash player, but nothing is playing.
6 Posted by Peter R. Fletcher on 12 Jan, 2012 02:31 PM
I solved my problem with big files by cleaning up my code, and getting rid of the Dreamweaver components entirely, at which point the VideoJS code started working properly and the video started (more or less) right away when the page loaded. I never had a problem with the demo or with short clips.
7 Posted by Bas on 12 Jan, 2012 02:44 PM
I found out that I am using the new version (v3) of the library. Looking around this forum I see that more people have problems related to IE7/8 and the new version. I assume that will be fixed soon.
I have another question however: how do you initialize video js in the new version? I need this because I dynamicallly add the video tag to the dom at a certain moment and than want to see the videojs controls for it. In the old version (v2) I could use VideoJS.setup, but this is no longer supported?
8 Posted by Peter R. Fletcher on 12 Jan, 2012 03:09 PM
Ignore my last post - my morning coffee hadn't taken effect. I was actually not able to get the videojs player to work properly, and switched to using jwplayer, which does work well in my application.
Support Staff 9 Posted by Steve Heffernan on 13 Jan, 2012 12:26 AM
Flash fix coming. Check out this page for initialization. http://videojs.com/docs/options/
10 Posted by Caleb on 15 Jan, 2012 02:00 AM
Any idea on when this Flash fix is going to be ready? Currently a bit of a road-block :(
Support Staff 11 Posted by Steve Heffernan on 16 Jan, 2012 09:41 PM
I believe this fixed. I can play video on the videojs.com homepage in IE8 without issue. Are you still seeing errors?
12 Posted by matt on 07 Feb, 2012 03:34 PM
When embedding the Video tag at runtime (using jquery to inject) everything seems to load find until you click the play button. Then I get the following error:
Flash Errorsrcnotfound
It seems that the fallback api can't find the source file for some reason. Anything I have to look out for?
Support Staff 13 Posted by Steve Heffernan on 07 Feb, 2012 10:22 PM
Try using a full URL to the video if you aren't yet. Http://...
---
Steve Heffernan (mobile)
14 Posted by matt on 08 Feb, 2012 08:27 AM
Hi Steve,
Thanks for your reply. However this does not yield any results. I think the problem is, that IE8 does not understand the injected tag. Here is what my JS code looks like: (using jquery)
This is an excerpt from the my lightbox code that dynamically injects the the video tag just before the end of the body.
This works fine in all browsers, but in IE8 I still get the Flash Error src not found Error. When I inspect the html source after injecting I can verify that the src attribute of the tags are empty.
Oh, I'm also additionally using modernizer for the HTML5 compatibility. That should not interfere with the proper functionality of videojs correct?
Can anybody help?
15 Posted by matt on 08 Feb, 2012 10:15 AM
Hey steve,
Thanks for your response. However it did not solve the problem.
There must be an error on how the flash player retrieves the source for the appropriate file. Cause I keep getting the Flash Error src not found Error.
Here is what I'm trying to do more in detail.
I have a jquery lightbox that injects it's code, when requested, to the end of the body (just before body) tag.
The video code that I'm injecting is the one from your example:
Now what I'm trying to do is the following:
It seems that the code afterwards is changed correctly, however I can not see how you pass the src to the flash file anywhere. Do you retrieve the source through external interface via a anonymous callback?
The only abnormal thing that I can make out in the code after runing the videojs init is the video tag to the end shows like this
Some thing that I already checked:
- Flash player is installed at version 11. - all sources are absolute - I'm running IE 8 without the Google Webkit Frame
Any help is very welcome.
16 Posted by matt on 08 Feb, 2012 11:04 AM
So one step further.
I noticed that when injecting the video tag, the videojs initializer does not write the markup correctly. for example tags are not remove and the src is not appended to the flashvars param, hence I get the flash source not found error.
It seems to me this is either a bug or I'm still doing something wrong.
17 Posted by lawik on 08 Feb, 2012 09:29 PM
I'm seeing the exact behaviour with the latest videojs version. The issue was quite obfuscated since I'm investigating through a rather complex Drupal implementation of Video support. But yes. Now everything works except Flash fallback for IE8 and (assuming) downwards.
18 Posted by Joel on 09 Feb, 2012 07:30 PM
The Flash Errorsrcnotfound error seems to appear when the player swf file cannot be found. I get a 403 when trying to access the hosted .swf player in IE8.
While I see that the videojs.com site works in IE8, I can't seem to prevent my video from auto-playing on page load in IE8/Flash fallback. Does anyone know how to tell the flash player not to autoplay?
19 Posted by Bas Slagter on 11 Feb, 2012 12:03 PM
> From: ***@tenderapp.com
> To: ***@hotmail.com
> Date: Thu, 9 Feb 2012 14:30:45 -0500
> Subject: Re: Flash Fallback in IE8 [Questions]
>
>
Support Staff 20 Posted by Steve Heffernan on 14 Feb, 2012 01:35 AM
@matt & @lawik, got a link I can look at?
@Joel, what URL are you using for the hosted swf? This one is working for me: http://vjs.zencdn.net/c/video-js.swf
21 Posted by lawik on 14 Feb, 2012 08:56 AM
Sadly not at the moment. Non-Disclosure Agreements and unpublished products :/
22 Posted by matt on 14 Feb, 2012 09:55 AM
@steve
Same here. I was trying to use videojs on a client project but could not get it to work with IE8. So I used projekktor instead.
I will try to recreate the problem and post a link here, with anonymous content.
Btw, I just saw that my code samples were finally posted above. Have a look at those.
Basically when you inject a video tag after the DOM ready event into the body and try to use _V_('videotagid') to initialize in IE8, the src attribute of the source tags will be empty and videojs will not be able to read the src path to append to the flashvars that is passed to the flash file.
If you set the src attribute on the video tag then all source tags will have have the same src path as the video tag.
23 Posted by chris on 15 Feb, 2012 06:25 PM
Hi @steve,
I'm pretty sure I am experiencing the same issue. If you want to connect via email, I can provide you with a working example of the same.
24 Posted by Kameron Niksefat on 16 Feb, 2012 10:35 PM
Furthermore in ie I am getting an error in video.js line 2124 character 15 - expected identifier, string or number
25 Posted by Peter Pedersen on 17 Feb, 2012 02:30 PM
I was having the same problems with the Flash backup. I got it fixed by having the loading video.swf from my own server. I guess thers is a cross-domain issue when loading from http://vjs.zencdn.net/c/...
Support Staff 26 Posted by Steve Heffernan on 17 Feb, 2012 11:42 PM
@matt, without seeing it in action I'm not exactly sure what's going on with the Flash source, but if you're initializing the player after the lightbox, you might try adding the sources as an option instead of as tags. Here's a note from in progress docs.
Array of Source Objects: To provide multiple versions of the source so that it can be played using HTML5 across browsers you can use an array of source objects. Video.js will detect which version is supported and load that file.
@chris, sent.
@Kameron Niksefat, is that in IE8 too, and got a link I can check out?
@Peter, were you loading the html locally? If so that can cause Flash to error as it doesn't like loading remote swfs locally.
27 Posted by Balu on 22 Feb, 2012 01:06 PM
Hi Steve,
I just wanted to thank you for your work and answers here.
The absolute URLs hint made it work for me in IE8.
Also I have to use data-setup="{}" in the
28 Posted by Peter Pedersen on 22 Feb, 2012 01:22 PM
@ Steve (Comment 26)
No, I did the testing on a web server...
29 Posted by Joel Dow on 22 Feb, 2012 05:55 PM
________________________________
From: Peter Pedersen <***@tenderapp.com>
To: ***@yahoo.com
Sent: Wednesday, February 22, 2012 7:22 AM
Subject: Re: Flash Fallback in IE8 [Questions]