--
You received this message because you are subscribed to a topic in the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jplayer/MMm3BXFShqc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jplayer+u...@googlegroups.com.
To post to this group, send email to jpl...@googlegroups.com.
Visit this group at http://groups.google.com/group/jplayer.
For more options, visit https://groups.google.com/groups/opt_out.
if(this.playlist.length) {this.select(index);$(this.cssSelector.jPlayer).jPlayer("play");}
if(0 <= index && index < this.playlist.length) {if(this.playlist.length) {this.select(index);
if($.jPlayer.platform.android) {
clearTimeout(this.androidFixID);
this.androidFixID = setTimeout(function() {
$(self.cssSelector.jPlayer).jPlayer("play");
}, 2000);
} else {$(this.cssSelector.jPlayer).jPlayer("play");
}}} else if(index === undefined) {$(this.cssSelector.jPlayer).jPlayer("play");}},
jPlayerPlaylist = function(cssSelector, playlist, options) {
}// Create a progress event handler to fix android$(this.cssSelector.jPlayer).bind($.jPlayer.event.progress, function() {
if(self.androidFix) {self.androidFix = false;
$(this).jPlayer("play");
}});
// Instance jPlayer$(this.cssSelector.jPlayer).jPlayer(this.options);};
if(0 <= index && index < this.playlist.length) {if(this.playlist.length) {this.select(index);
if($.jPlayer.platform.android) {
this.androidFix = true;
} else {$(this.cssSelector.jPlayer).jPlayer("play");
}}} else if(index === undefined) {$(this.cssSelector.jPlayer).jPlayer("play");}},
OK, sorry, Yes I need sleep, worked till 3 AM on another down server for Steel Plate Fabricators, then was back up at 5 AM.
I’ll test it out and let you know what I find.
Thanks again.
Great, that seems to do it as well. Nice and clean transition, with no jumping to the next track. Thank you very much and I hope that the next release will have these fixes so I don’t have to keep modifying the files.
I appreciate your help on this.
Here is a link to the droid app.
https://play.google.com/store/apps/details?id=com.healthyvisions.attackcancer
Also a link to the iphone app.
https://itunes.apple.com/us/app/attack-cancer/id815546224?mt=8
I appreciate your help and enjoy using your player. Very nice.
From: jpl...@googlegroups.com [mailto:jpl...@googlegroups.com] On Behalf Of Mark Panaghiston
Sent: Friday, February 14, 2014 10:27 AM
To: jpl...@googlegroups.com
Subject: Re: [jPlayer] Re: JPlayer , using android , not working
You worry me... I think you need a good nights rest.
Thanks Mark, I noticed a new issue in this app after making the changes. I can click to a different track without having it jump to the next track, however, if I open the page and immediately click on Play prior to the track loading, it goes to the next track.
It happens every time. If I let it sit for a few seconds, it eventually loads and works great. But knowing people out there, they will go to the page and hit the play button, which always skips the first track and goes to the second track.
Is this the same issue with Droid? Is there a way to show a progress loading and prevent users from hitting the play button until it is actually ready to play? I am not sure what the process is when you first open the page, and it is loading the first track, then displays the time in the progress bar, which works when you hit the play button.
Any help would be great. We went live a couple weeks ago, and I’ve had complaints and people uninstalling the apps due to this issue. It has to do with slower networks like 3G. On wireless and 4G, it loads very quickly and doesn’t appear to be an issue.
From: jpl...@googlegroups.com [mailto:jpl...@googlegroups.com] On Behalf Of Mark Panaghiston
Sent: Friday, February 14, 2014 5:32 PM
To: jpl...@googlegroups.com
Subject: Re: [jPlayer] Re: JPlayer , using android , not working
Looking good Ron.
// Create a progress event handler to fix android$(this.cssSelector.jPlayer).bind($.jPlayer.event.progress, function() {
if(self.androidFix) {self.androidFix = false;
$(this).jPlayer("play");
}
}});// Show the GUI here (when under Android.)
// Hide the GUI by default here (when under Android.)
// Create a progress event handler to fix android$(this.cssSelector.jPlayer).bind($.jPlayer.event.progress, function() {
if(self.androidFix) {self.androidFix = false;
$(this).jPlayer("play");
}
}}).data("jPlayer").css.jq.gui.show(); // Hide the GUI by default here in the Android logicical clause.// Show the GUI here in the event (when under Android.)
$(this).data("jPlayer").css.jq.gui.show();
// Create a progress event handler to fix android$(this.cssSelector.jPlayer).bind($.jPlayer.event.progress, function() {
if(self.androidFix) {self.androidFix = false;
$(this).jPlayer("play");
}
// Show the GUI here in the event (when under Android.)
$(this).data("jPlayer").css.jq.gui.show();
}}).data("jPlayer").css.jq.gui.hide(); // Hide the GUI by default here in the Android logicical clause.
Sounds great Mark, I will check it out and give you an update. I’ll play around with the different options and figure out which works best. I do appreciate your help on this and I will be happy to give you credit in my apps with the use of jPlayer for all your hard work in helping me make this a good app.
I will keep you updated, may be by tomorrow morning as I’m about to head out with the family.
Thanks
I tried this, but it appears to break the playlist. The list never shows up, and unable to play anything. I moved the code around some, but still no go. When I remark the hide() function, the playlist works, so It seems to be something with the hide function. In your example, you did not have $(this) before .data, which in dreamweaver showed it as an error, so I added $(this), but no go.
I’ll keep playing around with the functions.
if($.jPlayer.platform.android) {
// Create a progress event handler to fix android
$(this.cssSelector.jPlayer).bind($.jPlayer.event.progress, function() {
if(self.androidFix) {
self.androidFix = false;
$(this).jPlayer("play");
}
// Show the GUI here in the event (when under Android.)
$(this).data("jPlayer").css.jq.gui.show();
});
$(this).data("jPlayer").css.jq.gui.hide();
// Hide the GUI by default here in the Android logicical clause.;
I did add an alert where you have show and hide, and this works. It alerts me that the process is not ready when the page comes up, but then a few seconds later, I receive an alert that the audio is ready. I will see what I can do to disable the play button, or add a loading indicator.
I was able to get this to work with the use of a Loading image over the play button. So the user can’t click on the play button until the audio loads.
This is just a way to prevent the user from hitting the play button while it is still loading, on slow devices. The progress indicator over the play button helps as well to let the user know it is loading.
<li><div id="loadprog" style="background: url('loadin.gif');width:40px;height:40px;background-repeat:no-repeat;position:absolute;display: block;margin-left:5px;margin-top:5px;"></div><a href="javascript:;" class="jp-play" tabindex="1" style="display: block;">play</a></li>
if($.jPlayer.platform.android) {
// Create a progress event handler to fix android
$(this.cssSelector.jPlayer).bind($.jPlayer.event.progress, function() {
if(self.androidFix) {
self.androidFix = false;
$(this).jPlayer("play");
}
// Show the GUI here in the event (when under Android.)
//$(this).data("jPlayer").css.jq.gui.show();
//alert('ready to play');
document.getElementById('loadprog').style.display='none';
});
//alert('Not ready');
//$(this).data("jPlayer").css.jq.gui.hide();
document.getElementById('loadprog').style.display='block';
// Hide the GUI by default here in the Android logicical clause.;
}
Then I added this under the play: function(index) at the end of the file
if(0 <= index && index < this.playlist.length) {
if(this.playlist.length) {
this.select(index);
if($.jPlayer.platform.android) {
document.getElementById('loadprog').style.display='block';
//show progress image each time the track changes.
this.androidFix = true;
} else {
$(this.cssSelector.jPlayer).jPlayer("play");
}
}// Create a progress event handler to fix android$(this.cssSelector.jPlayer).bind($.jPlayer.event.progress, function() {
if(self.androidFix) {self.androidFix = false;
$(this).jPlayer("play");
}}).data("jPlayer").css.jq.gui.hide(); // Hide the GUI by default here in the Android logicical clause.// Show the GUI here in the event (when under Android.)
$(this).data("jPlayer").css.jq.gui.show();
$(this.cssSelector.jPlayer)
In the event handler $(this) is equal to that. Outside the event handler, it could be many things, but in our case, it would be a jQuery wrapping of the jPlayerPlaylist instance object.Still doesn’t seem to work. I did this exactly how you have it and it seems to break the page. I will keep it like it is with the loading indicator. I also added a message in the progress bar indicating the audio track is loading.
I’ve played with JQuery for years, but more of a Javascript, PHP, MySQL, and VB kind of guy. I started javascript back in 1997 and it tends to be easy for me to use and not have to look up anything. When they stop using javascript fully, and switch over to JQuery as a requirement, I will take some time to learn it fully.
For now, I don’t need to use it much, but do use PHP, HTML, Javascript, VB, ASP.net, and MySQL on a daily basis. JQuery is fun, and I use it in some of my complex websites for searching the MySQL database without having to repost/ reload the form values into PHP, or I can dynamically load information into a DIV from PHP / MySQL using JQuery. Works great.
Thanks for the advice, and as mentioned before, I will give you credit in our apps for use of JPlayer and your support. I do appreciate everything and look forward to newer players, and the future of JPlayer / JQuery.
Thanks
Hi Mark, I receive a lot of complaints on Droid devices that the audio starts playing for 5 to 10 seconds, then stops, then starts back up, then stops. I’ve not had this issue on my devices, but have seen on some LG devices. I’ve had a few complaints on iPad as well doing the same thing, or playing but no audio. Is there a way to download more of the audio track prior to playing so this could be avoided?
Let’s say a user clicks on the Play button, have it download for a few seconds, or a percentage before actually playing. These audio tracks are hypnosis tracks and I hate to hear that during their hypnosis session the track stops for a few seconds, then starts, and then stops again.
Any help on this would be great as I’m getting bad reviews and comments. Also in the release of IOS 7.1, it no longer displays the total time of the track until someone clicks on the play button. Just thought I would mention this.
Thanks
From: jpl...@googlegroups.com [mailto:jpl...@googlegroups.com] On Behalf Of Mark Panaghiston
Sent: Wednesday, March 12, 2014 6:51 AM
To: jpl...@googlegroups.com
Subject: Re: [jPlayer] Re: JPlayer , using android , not working
jPlayer 2.5.5 has been put online temporarily:
--
You received this message because you are subscribed to a topic in the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jplayer/MMm3BXFShqc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jplayer+u...@googlegroups.com.
To post to this group, send email to jpl...@googlegroups.com.
Visit this group at http://groups.google.com/group/jplayer.
For more options, visit https://groups.google.com/d/optout.