2011/11/14 Phil Coyne <ph...@wildilk.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "jPlayer: HTML5 Audio & Video for jQuery" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/jplayer/-/ePLAWkIPM1YJ.
> 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.
>
--
¡demo! is ...
yiinotes: http://www.yiinotes.com (it/en)
pindariol: http://www.pindariol.com
Hi to All,
Im sorry that I still have to beg for this little help, but Im trying for days to put more player on one page without any success.
Getting almost frustrated from it...
Could some one tell me where do I have to edit the instances?
$('#jquery_jplayer_1').jPlayer({ <- first
$('#jquery_jplayer_2').jPlayer({ <- second
Thank you a lot for help,
Kindest,
2-Xite AG
Op maandag 14 november 2011 19:25:40 UTC+1 schreef Phil Coyne het volgende:
Thank you for the reaction.
Yes, sure... I did read all this stuff, the only thing is I do not find/get: where to change the cssSelectorAncestor option.
Is that in jquery.jplayer.min.js?
If so, from what line to
what? Every time I change there, one player does not play at all.
Thank you for the little help,
Kindest,
2-Xite
Op maandag 14 november 2011 19:25:40 UTC+1 schreef Phil Coyne het volgende:
I'm attempting to build a site for a musician with multiple players across it.
Hi Dustin,
Thank you a lot for your input!
I did follow all the steps from this quick guide:
http://jplayer.org/latest/quick-start-guide/step-8-audio/
But I did not found any information about where to put/change the inspector's code for that specific players instance. Did I really miss some steps from the guide? The source is below.
Could you give me another hint, please? Because I still do not get it... Sorry...
Many thanks,
Kindest,
2-Xite
My source looks like this:
<html> <head>
<link type="text/css" href="/skin/jplayer.blue.monday.css" rel="stylesheet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="/js/jquery.jplayer.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
});
},
swfPath: "/js",
supplied: "m4a, mp3"
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_2").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
});
},
swfPath: "/js",
supplied: "m4a, mp3"
});
});
</script>
</head> <body>
<p> <div id="jquery_jplayer_1" class="jp-jplayer"></div>
<div id="jp_container_1" class="jp-audio">
<div class="jp-type-single">
<div class="jp-gui jp-interface">
<ul class="jp-controls">
<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
</ul>
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
</div>
<div class="jp-title">
<ul>
</ul>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div></p>
<br>
<br>
<p> <div id="jquery_jplayer_2" class="jp-jplayer"></div>
<div id="jp_container_2" class="jp-audio">
<div class="jp-type-single">
<div class="jp-gui jp-interface">
<ul class="jp-controls">
<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
</ul>
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
</div>
<div class="jp-title">
<ul>
</ul>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div></p>
</div></p>
</div>
</div>
</div>
</div>
</body>
</html>
Greetings to all,
Im
so sorry to keep repeating, but I do really miss a short guide how to
make possible to put multiple players on one single page.
Im
not stupid, but as a really amateur need hard a short step by step
guide, like this perfect and clear
one:
http://www.jplayer.org/latest/quick-start-guide/
I
did really search for info here and read the demo's here:
http://www.jplayer.org/latest/demo-01/
but still it gives me
not enough information what to do.
Every time I add a new
instance, all the players work as one single player.
Could
someone help me out?
At least, what file do I have to edit:
the main html or other and short "how to".
Many
thanks and greets from Holland,
2-Xite
I'm attempting to build a site for a musician with multiple players across it.
Hi Anthony,
none of the suggestions worked here either. I did ask more times here the same,
I even pasted some code to make easy people to suggest, but after all my messages
were just deleted by someone and I still have the same probs. If they think I'm a
spammer, but I'm really not... just need some help too…
Anyway, some help would be very nice...
Greets,
2-Xite
<script type="text/javascript">
$(document).ready(function () {
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4v: "http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer_480x270_h264aac.m4v",
ogv: "http://www.jplayer.org/video/ogv/Big_Buck_Bunny_Trailer_480x270.ogv",
poster: "http://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png"
});
},
play: function () { // To avoid both jPlayers playing together.
$(this).jPlayer("pauseOthers");
},
size: { width: "480px", height: "270px", cssClass: "jp-video-270p" },
volume: "0.8",
swfPath: "/Scripts",
supplied: "m4v, ogv"
});
$("#jquery_jplayer_2").jPlayer({
ready: function (event) {
$(this).jPlayer("setMedia", {
mp3: "http://www.jplayer.org/audio/mp3/TSP-01-Cro_magnon_man.mp3",
oga: "http://www.jplayer.org/audio/ogg/TSP-01-Cro_magnon_man.ogg"
});
},
play: function () { // To avoid both jPlayers playing together.
$(this).jPlayer("pauseOthers");
},
swfPath: "/Scripts",
supplied: "mp3, oga",
cssSelectorAncestor: "#jp_container_2"
});
});
</script>
Hi Anthony,
1001 thanks for sharing this information and your code here.
I did not try yet the solution, due of lack of time, but this weekend I have
some hours free to test it.
I'll tell you how it works.
Looking forward to make it working here too!
Really thanks again,
Greetings from Holland,
2-Xite
Hi Anthony,
would
you please take a look at the script below?
I dit try it,
but still there is something wrong: the upper player works,
the lower not at all. Both of of status bars show one, the same level
of the clip, or better to say works as one player.
Really hope
to hear something...
Thank you great for
assistance,
Kindest,
2-Xite
the complete code
here, I think the problem is in the body of the script (the text
maybe needs to be unfold the to see the whole code):
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
<!--
=====================================================================================================================
-->
<link href="css/main.css" rel="stylesheet"
type="text/css" media=all>
<link
href="css/menu.css" rel="stylesheet"
type="text/css" media=all>
<link
href="css/layout.css" rel="stylesheet"
type="text/css" media=all>
<link type="text/css"
href="/skin/jplayer.blue.monday.css" rel="stylesheet"
/>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script
type="text/javascript" src="js/custom.js"></script>
<script
type="text/javascript"
src="/js/jquery.jplayer.min.js"></script>
</div>
</div>
</div>
</body>
</html>
<div id="jp_container_1" class="jp-video ">
<div class="jp-type-single">
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
<div class="jp-gui">
<div class="jp-video-play">
<a href="javascript:;" class="jp-video-play-icon" tabindex="1">play</a>
</div>
<div class="jp-interface">
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-current-time"></div>
<div class="jp-duration"></div>
<div class="jp-controls-holder">
<ul class="jp-controls">
<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
<li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
<li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
<li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
</ul>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
<ul class="jp-toggles">
<li><a href="javascript:;" class="jp-full-screen" tabindex="1" title="full screen">full screen</a></li>
<li><a href="javascript:;" class="jp-restore-screen" tabindex="1" title="restore screen">restore screen</a></li>
<li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li>
<li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li>
</ul>
</div>
<div class="jp-title">
<ul>
<li>Big Buck Bunny Trailer</li>
</ul>
</div>
</div>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
<br />
<br />
<div id="jquery_jplayer_2" class="jp-jplayer"></div>
<div id="jp_container_2" class="jp-audio">
<div class="jp-type-single">
<div class="jp-gui jp-interface">
<ul class="jp-controls">
<!-- comment out any of the following <li>s to remove these buttons -->
<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
<li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
<li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
<li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
</ul>
<!-- you can comment out any of the following <div>s too -->
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
<div class="jp-current-time"></div>
<div class="jp-duration"></div>
</div>
<div class="jp-title">
<ul>
<li>Cro Magnon Man</li>
</ul>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
Hi Anthony,
first,
many thanks: I think you did give me the right hint. Does it have to
do with comments of <li>s? Let me show first the old
situation:
http://2-xite.com/audio.htm
as
you can see there is the problem: second player not appears, all
buttons "linked together", both of status bars work as
one.
This is the new situation with your script, it still
have some visual issues, but it works, (I think it has to do with the
CCS script, I believe (it uses the style sheet form old
situation):
http://2-xite.com/audio2.htm
What Im looking for, is the solution to put 2 or more audio players on one, like:
But, as you see, no good results.
I put the whole script here below again.
Do you think is that the problem, because I
removed the unwanted functions/buttons from html instead of comment
them?
This is the situation with your body-script from the
post above:
http://2-xite.com/audio4.htm
I'm very
interesting in the solution.
Thank you a lot in advance!!
Kindest,
2-Xite
Hi Anthony,
thank
you.
I did really check alle the "supplied" and all media-links work correct. But the problem still exists: no multiple sounds.
Would
you please check it again? The upper player works, the lower player plays a very short segment of both audio, very strange....:
I drop the code here
as well:
Anthony, BRAVISSIMO!
YES,
YES, YES! It works!!! Everything: buttons, status bar, volume. Fantastic!
I'm so happy, really! I'm trying it for
over 2 months, you can not believe it?
So it were DIV's in the body.... Right? I hope that the other newbies (as me)
can find this post helpful as well and spare a lot of time.
Again,
Antony: 1001 Thanks! You are a great person!
Many regards
from NL,
Fred