Link to home
Start Free TrialLog in
Avatar of Pablo Allietti
Pablo AlliettiFlag for Uruguay

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.
Avatar of superm401
superm401

Do you have separate files for the dialogue and video?
Avatar of Pablo Allietti

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

What files do you currently have the media in?  (I.E. avi, wav, wma?)
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?
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.createElement("EMBED");
       var bodytag=document.getElementsByTagName("BODY");
       bodytag=bodytag[0];
       spanembed.setAttribute("src","spanish.rpm")//change spanish.rpm to spanish src
       spanembed.setAttribute("style","visibility:hidden");
       spanembed.setAttribute("name","spansound");
       bodytag.appendChild(spanembed);
       video.doPlay();
       spansound.doPlay();
}
function playEnglish()
{
       var spanembed=document.createElement("EMBED");
       var bodytag=document.getElementsByTagName("BODY");
       bodytag=bodytag[0];
       spanembed.setAttribute("src","english.rpm")//change english.rpm to spanish src
       spanembed.setAttribute("style","visibility:hidden");
       spanembed.setAttribute("name","spansound");
       bodytag.appendChild(spanembed);
       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()">Click here to play in English</A>
<BR>
<A HREF="void(0)" onClick="playSpanish()">Click here to play in Spanish</A>
</BODY>
ASKER CERTIFIED SOLUTION
Avatar of superm401
superm401

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yep this solution work for me. but is a little slow the connection. but i dont care thanks a lot superm.