Jw Player stops after a few seconds in Firefox - firefox

On chrome it works ok.
My flash version is WIN 10,0,32,18
Debug: No
This is the code that i wrote:
<script type="text/javascript" src="/swfobject.js"></script>
<div id="player">
Get the Flash Player
to see this player.
</div>
<script type="text/javascript">
var so = new SWFObject('player.swf', 'streambaby', '500', '15', '7');
so.addVariable('type', 'sound');
so.addVariable('file', 'http://path_to_shoutcast:port');
so.addVariable('displayheight', '15');
so.write('player');
</script>
The problem is that on chrome the stream works OK but on Firefox 3.5.2 it stopps after a few seconds.
I opened Firebug and hit the Net tab and I see that even after the playing stopps, firefox still downloads the stream.
I've searched on google and found answeres that said I should update my flash plugin, but it's the latest.

I managed to bypass this problem with adding
so.addVariable('duration','-1');
Before so.write, so the script becomes:
<script type="text/javascript">
var so = new SWFObject('player.swf', 'streambaby', '500', '15', '7');
so.addVariable('type', 'sound');
so.addVariable('file', 'http://path_to_shoutcast:port');
so.addVariable('displayheight', '15');
so.addVariable('duration','-1');
so.write('player');
</script>

Just for reference, I had a similar issue while streaming .nsv in Firefox with JW Player. It would only stream about a quarter of a second. I accidentally defined an invalid duration and it started to stream correctly. I ended up using this code:
so.addVariable('duration','invalid');
This works for me in Firefox, IE and Chrome.

Related

IE8 issues with Yammer embed and API

Facing multiple issues with IE 8 (detailed version 8.0.7601.17514). Please note everything works fine in other browsers.
Yammer embed my feed control is not working. Sometimes it shows result and sometimes not.
REST API call not working and giving error as below. However I used new js sdk and new yam.platform.request.
Error is : yam.request is null or not an object. source : platform_js_sdk.js
Thanks in advance for your help!
I found out that the div that you embed yammer feed has to be above the yammer request script
eg.
<div id="embedded-feed" style="height:400px;width:500px;"></div>
<script>
yam.connect.embedFeed(
{ container: '#embedded-feed',
network: 'fourleaf.com' // network permalink (see below)
});
</script>
Otherwise, IE will not be able to find the div to show the feed (but chrome works fine..)

Pausing HTML 5 video in Safari 5.1.7 for Windows

I'm trying to pause every instance of an HTML 5 <video> tag on a page after an event is fired using:
jQuery("video").each (function() { this.pause(); })
Works in all browsers EXCEPT Safari for Windows 5.1.7, which throws:
TypeError: 'undefined' is not a function (evaluating 'this.pause()')
Why do Safari throws this exception and how can I avoid it?
edit:
so, given you are using video.js, maybe something like this?
jQuery("video").each (function() {
_V_($(this).id).pause(); //make sure all your video tags have an id attribute
});
https://github.com/zencoder/video-js/blob/master/docs/api.md

in IE8 setInterval method not working

When i tried the setInterval method in IE8 its not wokring
<body>
<script type="text/javascript">
function msg()
{
alert("hello world ");
document.writeln("hello world <br>");
}
//setInterval("msg();", 3000);
//setInterval(msg(), 3000);
//setInterval(msg, 3000);
setInterval(function(){msg()}, 3000);
</script>
</body>
when google i got several answers
window.setInterval jQuery function does not work on IE8
setinterval method not working
http://social.msdn.microsoft.com/Forums/nl-NL/netfxjscript/thread/ff7447f0-3c18-484b-a037-eaf9f60574a8
but when i tried those things on ie8 its not working
setInterval is working fine in your code. The problem is with what you're doing with it. Executing document.writeln is wiping out your document, which includes your JavaScript. To see this in action, just add <p>foo</p> somewhere in the body and you'll see that it disappears once document.writeln is executed. Remove the document.writeln line and you'll see that the alert occurs over and over again, as expected.
I believe the JavaScript will continue to run in WebKit browsers even though it's been wiped out, but not in non-WebKit browsers like Internet Explorer, Firefox, and Opera. Have a look at this question for some ideas on what to do.

Comments plugin fails to update via ajax

since April 5th, 2012 we are experiencing problems with the facebook comments plugin on our video page.
We are loading new content and facebook comment tags via ajax, and then calling FB.XFBML.parse() to update the comments plugin and like button. This has worked fine in the past, but now the comments are not updating properly anymore.
The comments do load, but the loading animation of the plugin never disappears and the height of the comments doesn't get adjusted.
Here's the console output when the error occurs:
Permission denied to access property 'fb_xdm_frame_http'
Permission denied to access property 'fb_xdm_frame_https'
Steps to reproduce the problem:
1. Please visit http://www.landwirt.com/Videos
2. Select a new video from the list on the right
3. Take a look at the facebook comments plugin at the bottom
Note: comments are working fine on initial page load, the problem occurs only when new content is loaded via ajax
It looks like a bug in the facebook API, but maybe we're just doing something wrong?
Any help would be greatly appreciated!
i've noticed the same change after moving from:
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=MY_APP_ID";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
syntax in body to:
<script type="text/javascript" src="//connect.facebook.net/en_US/all.js"></script>
in head. It appears it needed change to
<script type="text/javascript" src="//connect.facebook.net/en_US/all.js#xfbml=1&appId=MY_APP_ID"></script>
and works now fully.

Slickgrid resize works in Firefox, doesn't work in Chrome

When I resize the column in Chrome, the screen freezes for 20 ~ 30 seconds. In Firefox, this doesn't happen.
I'm using slickgrid v2.0 alpha from Github.
<!--- JQUERY -->
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
On my workstation I have Chrome 17.0.963.83 m and on the workstations with issues I have Chrome 6.0.495.0 m. I upgraded one of the workstations to the newest version of Chrome and I can't resize the collumns, it freezes up for 20 ~ 30 seconds.
I'm wondering what tests can I do to find out what is wrong, I don't see any errors in Javascript Console or anything else.
Thanks.
LATER EDIT
I'm initializing my grid as following
// additional options
var options = {
enableCellNavigation: true,
enableColumnReorder: false,
showHeaderRow: true,
editable:true,
asyncEditorLoading: false,
autoEdit:true,
defaultColumnWidth:90
};
And I'm not sure if this code affects the resize plugin
// header code
grid.onColumnsResized.subscribe(function (e, args) {
updateHeaderRow();
$('#pager').html("Count : " + grid.getDataLength());
});
Please don't ask why I'm not using the Dataview method provided with Slickgrid.
the solution was to upgrade the Chrome client to the latest version on faulty workstations, no coding errors whatsoever

Resources