Linear

Javascript object not found in IE8? (Projekktor Core)

by kenw232, Friday, October 19, 2012, 03:45 (765 days ago)

Can someone tell me why this doesn't work in the latest 1.1.03r117 release in IE8?

http://www.dataasylum.com/test.html

It works fine in all other browsers AND will work fine with an older version of projekktor. If I simply change it from projekktor-1.1.03r117.min.js to the older projekktor-1.0.12r37.min.js that URL works fine.

  1113 views

Javascript object not found in IE8?

by Ken williams @, Saturday, October 20, 2012, 00:36 (764 days ago) @ kenw232

In fact the readme.html in projekktor-1.1.03r117.zip doesn't even work in IE8. You can see it here:
http://www.dataasylum.com/eg/readme.html

can anyone confirm if its suppose to work?

  924 views

Javascript object not found in IE8?

by RexDude, Monday, October 22, 2012, 19:10 (762 days ago) @ Ken williams

Not working for me neither :( There is also a JavaScript error shown...

  1219 views

Javascript object not found in IE8?

by RexDude, Monday, October 22, 2012, 19:18 (762 days ago) @ Ken williams

The strange thing is also: using FancyBox with Projekktor works in IE8 the first time. The after closing and opening an FancyBox again player shows up but video doesn't load. Here is the code if anyone is interested in:

	$('body').append('<div id="video-wrapper"><video id="video-player" /></div>');

	var player = projekktor('#video-player', {
		controls: true,
		debug: false,
		loop: false,
		enableFullscreen: false,
		autoplay: false,
		plugins: ['Display', 'Controlbar']
	});	

	$('.media a').click(function(e) {
		e.preventDefault();

		var videoFile = $(this).attr('href');
		var videoWidth = $(this).data('media-width');
		var videoHeight = $(this).data('media-height');

		player.setFile(videoFile);
		player.setSize({"width" : videoWidth + "px", "height" : videoHeight + "px"});
	
		$.fancybox({
			padding: 0,
			href: '#video-player',
			width: videoWidth,
			height: videoHeight,
			scrolling: 'no',
			autoSize: false,
			scrollOutside: false,
			beforeShow: function() { 
				player.setPlay();
			},
			beforeClose: function() { 
				player.setPause(); 
			}
		});
	});

But I love the Projekktor API. It's so nice and clean :)))

  1029 views
Avatar

Javascript object not found in IE8?

by sascha ⌂ @, Friday, October 26, 2012, 13:03 (758 days ago) @ RexDude

Obviously the Flash-Fallback-Component isn´t properly destroyed. Instead of just pausing the player in "beforeClose" you might try "player.destroy()".

This requires to initialize the player within fancybox´ "beforeShow" though.

- Sascha

---
Help keeping free Projekktor support alive. Consider to buy supporter license: http://shop.projekktorxl.com/shop/supporter-license/

  1027 views

Javascript object not found in IE8?

by kenw232, Friday, October 26, 2012, 23:47 (757 days ago) @ sascha

Will the original problem in IE8 be fixed shortly?

--
"In fact the readme.html in projekktor-1.1.03r117.zip doesn't even work in IE8."

  929 views