Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Embedded player in website

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
dimitris



Joined: 05 Aug 2008
Posts: 4
Location: Greece

PostPosted: Tue Aug 05, 2008 4:54 pm    Post subject: Embedded player in website Reply with quote

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 Crying or Very sad
Could anyone help me??? Thnx!
Back to top
View user's profile Send private message
dimitris



Joined: 05 Aug 2008
Posts: 4
Location: Greece

PostPosted: Thu Aug 07, 2008 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
liteFun



Joined: 13 Jan 2006
Posts: 79

PostPosted: Tue Aug 12, 2008 2:13 pm    Post subject: Reply with quote

You seem to open every mount (with for-each select).
Back to top
View user's profile Send private message
dimitris



Joined: 05 Aug 2008
Posts: 4
Location: Greece

PostPosted: Tue Aug 19, 2008 5:43 pm    Post subject: Reply with quote

Yes, but how can I open a single player for a specific mount and not for every mount??? Embarassed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber