Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

How can I embed sopcast code?

Asked Modified Viewed 14,613 times
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
asked
Member

<object id="SopPlayer" name = "SopPlayer" 
   classid="clsid:8FEFF364-6A5F-4966-A917-A3AC28411659"
   height="350" width="450">
   <param name="AutoStart" value="1" /> 
   <param name="SopAddress" value="sop://broker.sopcast.com:3912/6002" />
   <param name="ChannelName" value="CCTV5" />
</object>


How can I embed this in a news item?
0 replies

4 posts

G
G
  • Newbie, joined since
answered
Newbie

<OBJECT ID="SopPlayer" name = "SopPlayer"
CLASSID=clsid:8FEFF364-6A5F-4966-A917-A3AC28411659
CODEBASE="http://download.sopcast.cn/download/SOPCORE.CAB#version=2,0,4,0"
HEIGHT=350 WIDTH=450>
<param name="AutoStart" value="1">
<param name="SopAddress" value="sop://broker.sopcast.com:3912/[color=#ff0000][/color][color=#ff0033]Channelnumber[/color]">
<param name="ChannelName" value="[color=#cc0000][/color]Nameofchannel">
</OBJECT>


Replace red areas with channel number and name. :P

Alternatively try embedding with multiple channels:

mbed this as main player: :(

<OBJECT ID="SopPlayer" name = "SopPlayer"
CLASSID=clsid:8FEFF364-6A5F-4966-A917-A3AC28411659
CODEBASE="http://download.sopcast.cn/download/SOPCORE.CAB#version=2,0,4,0"
HEIGHT=335 WIDTH=469> </OBJECT>


Embed this as script:

<script language="JavaScript" src="http://www.sopcast.com/doc/sop_embed_rexml.js"></script>
<script>
window.onload=function()
{
InitPlayer();
}
</script>


And then this for each channel you require:

<a href="#" onclick=
"OnPlay('sop://broker1.sopcast.com:3912/[color=#ff0000][/color]channelnumber', '[color=#cc0000][/color]Channelname')">
Channelname</a>


Again replacing the red areas with desired channel name and number...

Mod: inserted code tags
Edited by HobbyMan on 26-07-2010 16:49,
0 replies
— 1 month later —
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Thanks a lot
0 replies
— 8 months later —
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

I tried the single channel method and put the code in a custom page, but it doesn;t work
0 replies
— 1 year later —
D
deafroz
D
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

<html> 
<head>

<script language=javascript>
<!--
function () {


channel name or NR1 (URL)
channel name or NR2 (URL)
channel name or NR3 (URL)
channel name or NR4 (URL)

/ / Here possibly can be so
// <param name="SopAddress" value="sop://broker.sopcast.com:3912/102109" name="SopAddress"> //-->

//-->
</script>

</head>
<body>
<center>
<OBJECT ID="SopPlayer" name = "SopPlayer" CLASSID=clsid:8FEFF364-6A5F-4966-A917-A3AC28411659 HEIGHT=350 WIDTH=468>
<param name="AutoStart" value="1">

that it lived with a code name or gender

< div id= "channel name or NR1" >
restu remain so another page is
< div id= "channel name or NR2" >
but all to be in the javascript source

>>>/
This piece is full or partial (URL) may not appear in HTML and JavaScript to be in to replace it with what I said above

<param name="SopAddress" value="sop://broker.sopcast.com:3912/ " name="SopAddress">
/<<<<<

<param value="" name="ChannelName">
<param value="" name="CookieString">
<param value="" name="AuthUrl">
<param value="" name="ServAddress">
<a href="Ajutor.php" target="_blank">
<img src="/atentie.png" height="315" width="450" alt="sopcast" onclick="sopcast()">
</object>
</center>


purpose is to control all these streams into a single JavaScript file

thank you hope to help me put the idea into practice
Edited by Craig on 15-08-2011 17:39,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

E
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
D
D
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet