I will try to experiment a bit with it and than i will post results
here.
Thx again.
J.
I would need a bit of help here ...
First i set a cookie:
$(".jp-pause").click(function() {
$.cookie("headPosition", $
("#jquery_jplayer_1").data("jPlayer").status.currentTime);
$.cookie("playStatePause", "pause");
});
Than i i check for cookie:
if ($.cookie("playStatePause") == "pause") {
$(this).jPlayer("pause", $.cookie("headPosition")); <-- here i
set it to pause and specified time when button was clicked
} -->
THe pause itself is working ok, but time is not working... it still
starts to play from beginning of the track when pa click play after
refresh...
Any idea ?
$(this).jPlayer("play", 25);
Here, the song will be played from 25.th second on...but if i put like
this:
function on click ->
var $varX = $("#jquery_jplayer_1").data("jPlayer").status.currentTime;
than i save to cookie and read from it:
$.cookie("headPosition", $varX);
var varZ = $.cookie("headPosition");
$(this).jPlayer("play", $varZ); ---> will not work!? and will start
playing from the begging of the track like $varZ would be empty but
it's not!
Console log shows headPosition number (or time in sec)
I would really need some hint here guys.
Thx, J.
--
You received this message because you are subscribed to the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To post to this group, send email to jpl...@googlegroups.com.
To unsubscribe from this group, send email to jplayer+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jplayer?hl=en.