public class Player extends Object
<media:player url="http://www.foo.com/player?id=1111" height="200" width="400"/>
| Constructor and Description |
|---|
Player() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getHeight()
Returns the integer representing the value in pixels for the height of the video in this item.
|
URI |
getURL()
Returns the URL of the player console that plays the media.
|
String |
getURLString()
Returns the URL of the player console that plays the media, as a string.
|
Integer |
getWidth()
Returns the integer representing the value in pixels for the width of the video in this item.
|
void |
setHeight(int height)
Initializes the integer representing the value in pixels for the height of the video in this item.
|
void |
setHeight(Integer height)
Initializes the integer representing the value in pixels for the height of the video in this item.
|
void |
setURL(URI url)
Initializes the URL of the player console that plays the media.
|
void |
setURLString(String url)
Initializes the URL of the player console that plays the media, as a string.
|
void |
setWidth(int width)
Initializes the integer representing the value in pixels for the width of the video in this item.
|
void |
setWidth(Integer width)
Initializes the integer representing the value in pixels for the width of the video in this item.
|
public void setURLString(String url) throws URISyntaxException
url - an URL as a string. Shall not be null.NullPointerException - if url is null.URISyntaxException - if the given string violates RFC 2396, as augmented by the URI deviations.getURLString(),
setURL(java.net.URI)public String getURLString()
null.NullPointerException - if no URL has been defined in this element.setURLString(java.lang.String),
getURL()public void setURL(URI url)
url - an URL. Shall not be null.NullPointerException - if url is null.getURL(),
setURLString(java.lang.String)public URI getURL()
null if not yet initialized.setURL(java.net.URI),
getURLString()public void setWidth(int width)
width - a video width.getWidth(),
setWidth(Integer)public void setWidth(Integer width)
width - a video width. May be null.getWidth(),
setWidth(int)public Integer getWidth()
null.setWidth(int)public void setHeight(int height)
height - a video height.setHeight(Integer),
getHeight()public void setHeight(Integer height)
height - a video height. May be null.getHeight(),
setHeight(int)public Integer getHeight()
null.setHeight(int)Copyright © 2008–2017. All rights reserved.