Foxit PDF SDK
foxit.pdf.MediaPlayer Class Reference
Inheritance diagram for foxit.pdf.MediaPlayer:
foxit.common.Base

Public Member Functions

 MediaPlayer (PDFDictionary media_player_dict)
 Constructor, with parameters. More...
 
 MediaPlayer (MediaPlayer other)
 Constructor, with another media player object. More...
 
PDFDictionary GetDict ()
 Get the PDF dictionary of current object. More...
 
byte [][] GetOSIdentifiers ()
 Get the string array that represents operating system identifiers. More...
 
string GetSoftwareURI ()
 Get software URI that identifies a piece of software. More...
 
bool IsEmpty ()
 Check whether current object is empty or not. More...
 
void SetOSIdentifiers (byte[][] identifier_array)
 Set the string array that represents operating system identifiers. More...
 
void SetSoftwareURI (string uri)
 Get software URI that identifies a piece of software. More...
 

Detailed Description

Class MediaPlayer provides methods to access to information regarding a specific media player.

Constructor & Destructor Documentation

◆ MediaPlayer() [1/2]

foxit.pdf.MediaPlayer.MediaPlayer ( PDFDictionary  media_player_dict)
inline

Constructor, with parameters.

Usually, a media player object should be only be added to a rendition object with specified media player type. User is not recommended to add the same media player object to different renditions or different media player types of one rendition; otherwise unexpected issues (such as crash) may occur later. If user does not want to construct another media player and set same values, user can clone the dictionary of original media player object and use the cloned dictionary to construct another media player directly.

Parameters
[in]media_player_dictThe PDF dictionary for a media player object. If this is null that means to construct a new media player object.

◆ MediaPlayer() [2/2]

foxit.pdf.MediaPlayer.MediaPlayer ( MediaPlayer  other)
inline

Constructor, with another media player object.

Parameters
[in]otherAnother media player object.

Member Function Documentation

◆ GetDict()

PDFDictionary foxit.pdf.MediaPlayer.GetDict ( )
inline

Get the PDF dictionary of current object.

Returns
PDF dictionary of current object.

◆ GetOSIdentifiers()

byte [][] foxit.pdf.MediaPlayer.GetOSIdentifiers ( )
inline

Get the string array that represents operating system identifiers.

Operating system identifiers in this array indicate which operating systems this object applies to. The defined values are the same as those defined for SMIL 2.0's systemOperatingSystem attribute. There may not be multiple copies of the same identifier in the array.

Returns
A string array that represents operating system identifiers. An empty array is considered to represent all operating systems.

◆ GetSoftwareURI()

string foxit.pdf.MediaPlayer.GetSoftwareURI ( )
inline

Get software URI that identifies a piece of software.

For more details, please refer to <PDF reference 1.7> P780 "Software URIs".

Returns
Software URI.

◆ IsEmpty()

bool foxit.pdf.MediaPlayer.IsEmpty ( )
inline

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
true means current object is empty, while false means not.

◆ SetOSIdentifiers()

void foxit.pdf.MediaPlayer.SetOSIdentifiers ( byte  identifier_array[][])
inline

Set the string array that represents operating system identifiers.

Operating system identifiers in this array indicate which operating systems this object applies to. The defined values are the same as those defined for SMIL 2.0's systemOperatingSystem attribute. There may not be multiple copies of the same identifier in the array.

Parameters
[in]identifier_arrayA string array that represents operating system identifiers. An empty array is considered to represent all operating systems.
Returns
None.

◆ SetSoftwareURI()

void foxit.pdf.MediaPlayer.SetSoftwareURI ( string  uri)
inline

Get software URI that identifies a piece of software.

This property is necessary for a media player object. For more details, please refer to <PDF reference 1.7> P780 "Software URIs".

Parameters
[in]uriSoftware URI. It should not be an empty string.
Returns
None.