Pablo Allietti
asked on
RealPlayer Audio & Video
Hi people. i have a webcasting server in my office. and i need to share audio & video in a webpage live..
the video is only one. but i need if the people click in link 1 the video appears in english and if the people click in other link the video appears in spanish.
i do in the past. but i miss the webpage for that.
the video is only one. but i need if the people click in link 1 the video appears in english and if the people click in other link the video appears in spanish.
i do in the past. but i miss the webpage for that.
Do you have separate files for the dialogue and video?
ASKER
yep. i wrong when i accept this question because y click in accept behalf submit :( my comment. here my comment
i have separated 2 comments and 1 video. i need to join this 3 things
the video with spanish audio
the video with english audio
i have separated 2 comments and 1 video. i need to join this 3 things
the video with spanish audio
the video with english audio
What files do you currently have the media in? (I.E. avi, wav, wma?)
ASKER
is broadcasting
Am I correct that you have one video stream and two audio streams, and you want to let one link open the video with english and the other open the video with Spanish?
ASKER
yes
<!--
Try this out:
NOTE: You must change the filenames where applicable, I.E. spanish.rpm...,
Tell me how it works out.
Also, put the top script in the head, and the rest in the body, in the order shown.
-->
<SCRIPT type="text/javascript">
function playSpanish()
{
var spanembed=document.createE lement("EM BED");
var bodytag=document.getElemen tsByTagNam e("BODY");
bodytag=bodytag[0];
spanembed.setAttribute("sr c","spanis h.rpm")//c hange span ish.rpm to spanish src
spanembed.setAttribute("st yle","visi bility:hid den");
spanembed.setAttribute("na me","spans ound");
bodytag.appendChild(spanem bed);
video.doPlay();
spansound.doPlay();
}
function playEnglish()
{
var spanembed=document.createE lement("EM BED");
var bodytag=document.getElemen tsByTagNam e("BODY");
bodytag=bodytag[0];
spanembed.setAttribute("sr c","englis h.rpm")//c hange engl ish.rpm to spanish src
spanembed.setAttribute("st yle","visi bility:hid den");
spanembed.setAttribute("na me","spans ound");
bodytag.appendChild(spanem bed);
video.doPlay();
spansound.doPlay();
}
</SCRIPT>
<BODY>
<EMBED src="movie.rpm" width=100 height=100 name="video">
<SCRIPT>
video.doStop();
</SCRIPT>
<A HREF="void(0)" onClick="playEnglish()">Cl ick here to play in English</A>
<BR>
<A HREF="void(0)" onClick="playSpanish()">Cl ick here to play in Spanish</A>
</BODY>
Try this out:
NOTE: You must change the filenames where applicable, I.E. spanish.rpm...,
Tell me how it works out.
Also, put the top script in the head, and the rest in the body, in the order shown.
-->
<SCRIPT type="text/javascript">
function playSpanish()
{
var spanembed=document.createE
var bodytag=document.getElemen
bodytag=bodytag[0];
spanembed.setAttribute("sr
spanembed.setAttribute("st
spanembed.setAttribute("na
bodytag.appendChild(spanem
video.doPlay();
spansound.doPlay();
}
function playEnglish()
{
var spanembed=document.createE
var bodytag=document.getElemen
bodytag=bodytag[0];
spanembed.setAttribute("sr
spanembed.setAttribute("st
spanembed.setAttribute("na
bodytag.appendChild(spanem
video.doPlay();
spansound.doPlay();
}
</SCRIPT>
<BODY>
<EMBED src="movie.rpm" width=100 height=100 name="video">
<SCRIPT>
video.doStop();
</SCRIPT>
<A HREF="void(0)" onClick="playEnglish()">Cl
<BR>
<A HREF="void(0)" onClick="playSpanish()">Cl
</BODY>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yep this solution work for me. but is a little slow the connection. but i dont care thanks a lot superm.