public class PlayerInfo extends Object implements Serializable
Constructor and Description |
---|
PlayerInfo(String providerName,
String playerName,
PluginVersion requiredPluginVersion,
boolean hasPlaylistSupport,
boolean hasMatrixSupport)
Creates PlayerInfo object
|
Modifier and Type | Method and Description |
---|---|
PluginInfo |
getDetectedPluginInfo()
Returns the infomation object about the browser plugin that is used by the
player widget
|
PluginVersion |
getDetectedPluginVersion()
Returns the version of the required player plugin detected on the browser
|
String |
getPlayerName()
Returns the name of the player
|
String |
getProviderName()
Returns the provider name of the player
|
Set<String> |
getRegisteredExtensions()
Returns the media format file extensions supported by the player
|
Set<String> |
getRegisteredProtocols()
Returns the streaming protocols supported by the player
|
PluginVersion |
getRequiredPluginVersion()
Returns the minimum plugin version required by the player
|
boolean |
isHasMatrixSupport()
Returns
true if player has matrix support, false otherwise |
boolean |
isHasPlaylistSupport()
Returns
true if player has playlist support, false otherwise |
void |
setDetectedPluginInfo(PluginInfo detectedPluginInfo)
Sets the infomation object about the browser plugin that is used by the
player widget
|
void |
setDetectedPluginVersion(PluginVersion detectedPluginVersion)
Sets the version of the required player plugin detected on the browser
|
protected void |
setRegisteredExtensions(Set<String> registeredExtensions)
Sets the media format file extensions supported by the player
|
protected void |
setRegisteredProtocols(Set<String> registeredProtocols)
Sets the streaming protocols supported by the player
|
String |
toString()
Returns the name of the player and its provider in the format
. |
public PlayerInfo(String providerName, String playerName, PluginVersion requiredPluginVersion, boolean hasPlaylistSupport, boolean hasMatrixSupport)
providerName
- the provider of the playerplayerName
- the name of the playerrequiredPluginVersion
- the minimum plugin version required by the playerhasPlaylistSupport
- true
if player supports playlists, false
otherwise.hasMatrixSupport
- true
if player supports matrix, false
otherwise.public String getProviderName()
public String getPlayerName()
public PluginVersion getRequiredPluginVersion()
public boolean isHasMatrixSupport()
true
if player has matrix support, false
otherwisetrue
if player has matrix support, false
otherwiseMatrixSupport
public boolean isHasPlaylistSupport()
true
if player has playlist support, false
otherwisefalse
otherwisePlaylistSupport
public PluginVersion getDetectedPluginVersion()
public void setDetectedPluginVersion(PluginVersion detectedPluginVersion)
detectedPluginVersion
- the player plugin version detected on the browserpublic Set<String> getRegisteredExtensions()
protected void setRegisteredExtensions(Set<String> registeredExtensions)
registeredExtensions
- the supported media file format extensionspublic Set<String> getRegisteredProtocols()
protected void setRegisteredProtocols(Set<String> registeredProtocols)
registeredProtocols
- the supported streaming protocolspublic void setDetectedPluginInfo(PluginInfo detectedPluginInfo)
detectedPluginInfo
- the detected PluginInfo objectpublic PluginInfo getDetectedPluginInfo()
Copyright © 2009-2013. All Rights Reserved.