| View previous topic :: View next topic |
| Author |
Message |
dimitris

Joined: 05 Aug 2008 Posts: 4 Location: Greece
|
Posted: Tue Aug 05, 2008 4:54 pm Post subject: Embedded player in website |
|
|
Hello!
I'm trying to make wmp to embed on a webpage so it can play the stream for different mountpoints. e.g. I have 4 mounts and there's a link next to each one. When pressed, a window opens with the embedded player and streams the suitable mount. Now I have the embedded player but when I press the link button the window that opens contains as many players as the mount points and each player plays its stream simultaneously
Could anyone help me??? Thnx! |
|
| Back to top |
|
 |
dimitris

Joined: 05 Aug 2008 Posts: 4 Location: Greece
|
Posted: Thu Aug 07, 2008 11:20 am Post subject: |
|
|
I'm posting part of my code to give you a clue of what i'm searching of:
In the first page where the link appears:
| Code: |
| <a href="em_player.xsl?id={@mount}" onClick="wopen('em_player.xsl?id={@mount}', 'popup', 313, 220); return false;">Player!</a> |
In the page where the player embeds:
| Code: |
<xsl:for-each select="source[@mount]">
<xsl:choose>
<xsl:when test="listeners">
<object
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
type="application/x-mplayer2" width="320" height="70"
standby="Loading Windows Media Player components..." id="MediaPlayer"
style="text-align:center">
<param name="url" value="http://127.0.0.1:8000/{@mount}" />
<param name="FileName" value="http://127.0.0.1:8000/{@mount}" />
<param name="AutoStart" value="true" />
<param name="ShowControls" value="true" />
<param name="ShowStatusBar" value="true" />
<embed
src="http://127.0.0.1:8000/{@mount}"
width="320" height="70"
autostart="1" type="application/x-mplayer2" showcontrols="1" showstatusbar="1">
</embed>
</object>
</xsl:when>
</xsl:choose>
</xsl:for-each> |
I tried setting:
| Code: |
| <xsl:for-each select="source[@mount = id]"> |
but it doesn't seem to work, the player doesn't appear at all. |
|
| Back to top |
|
 |
liteFun
Joined: 13 Jan 2006 Posts: 79
|
Posted: Tue Aug 12, 2008 2:13 pm Post subject: |
|
|
| You seem to open every mount (with for-each select). |
|
| Back to top |
|
 |
dimitris

Joined: 05 Aug 2008 Posts: 4 Location: Greece
|
Posted: Tue Aug 19, 2008 5:43 pm Post subject: |
|
|
Yes, but how can I open a single player for a specific mount and not for every mount???  |
|
| Back to top |
|
 |
|