com.sun.syndication.feed.module.mediarss.types
Class PlayerReference

java.lang.Object
  extended by com.sun.syndication.feed.module.mediarss.types.PlayerReference
All Implemented Interfaces:
Reference, java.io.Serializable

public class PlayerReference
extends java.lang.Object
implements Reference, java.io.Serializable

<media:player>

Allows the media object to be accessed through a web browser media player console. This element is required only if a direct media url attribute is not specified in the <media:content> element. It has 1 required attribute, and 2 optional attributes.

        <media:player url="http://www.foo.com/player?id=1111" height="200" width="400" />

url is the url of the player console that plays the media. It is a required attribute.

height is the height of the browser window that the url should be opened in. It is an optional attribute.

width is the width of the browser window that the url should be opened in. It is an optional attribute.

Author:
cooper
See Also:
Serialized Form

Constructor Summary
PlayerReference(java.net.URI url)
          Constructs a new PlayerReference
PlayerReference(java.net.URI url, java.lang.Integer width, java.lang.Integer height)
          Creates a new instance of PlayerReference
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getHeight()
          Height of the player
 java.net.URI getUrl()
          URL of the player
 java.lang.Integer getWidth()
          Width of the player
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayerReference

public PlayerReference(java.net.URI url,
                       java.lang.Integer width,
                       java.lang.Integer height)
Creates a new instance of PlayerReference

Parameters:
url - url of the player
width - width of the player
height - height of the player

PlayerReference

public PlayerReference(java.net.URI url)
Constructs a new PlayerReference

Parameters:
url - URL of the player
Method Detail

getHeight

public java.lang.Integer getHeight()
Height of the player

Returns:
Height of the player

getUrl

public java.net.URI getUrl()
URL of the player

Returns:
URL of the player

getWidth

public java.lang.Integer getWidth()
Width of the player

Returns:
Width of the player

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.