RichMediaAnnotation
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.RichMediaAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.RichMediaAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.RichMediaAnnotation
All Implemented Interfaces: com.aspose.ms.System.ICloneable
public class RichMediaAnnotation extends Annotation
Class describes RichMediaAnnotation which allows embed video/audio data into PDF document.
Constructors
| Constructor | Description |
|---|---|
| RichMediaAnnotation | Initializes RichMediaAnnotation. |
Methods
| Method | Description |
|---|---|
| accept | Accepts visitor for this annotation. |
| addCustomData | Add custom named data (for example required for flash script). |
| getActivateOn | Event which activates application. |
| getAnnotationType | Gets type of annotation. |
| getContent | Data of the Rich Media content. |
| getCustomFlashVariables | Sets or gets flash variables which passed to player. |
| getCustomPlayer | Sets or gets custom flash player to play video/audio data. |
| getType | Gets or sets type of content. Possible values: Audio, Video. |
| setActivateOn | Event which activates application. |
| setContent | Set content stream. |
| setCustomFlashVariables | Sets or gets flash variables which passed to player. |
| setCustomPlayer | Sets or gets custom flash player to play video/audio data. |
| setPoster | Set poster of the annotation. |
| setType | Gets or sets type of content. Possible values: Audio, Video. |
| update | Updates data with specified parameters. |
RichMediaAnnotation
Initializes RichMediaAnnotation.
accept
Accepts visitor for this annotation.
addCustomData
Add custom named data (for example required for flash script).
getActivateOn
public int getActivateOn()
Event which activates application.
Returns: ActivationEvent element
getAnnotationType
public AnnotationType getAnnotationType()
Gets type of annotation.
Returns: AnnotationType element @see AnnotationType
getContent
public InputStream getContent()
Data of the Rich Media content.
Returns: InputStream object
getCustomFlashVariables
public String getCustomFlashVariables()
Sets or gets flash variables which passed to player.
Returns: String object
getCustomPlayer
public InputStream getCustomPlayer()
Sets or gets custom flash player to play video/audio data.
Returns: InputStream object
getType
public int getType()
Gets or sets type of content. Possible values: Audio, Video.
Returns: ContentType value @see ContentType
setActivateOn
public void setActivateOn(int value)
Event which activates application.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ActivationEvent element |
setContent
Set content stream.
setCustomFlashVariables
Sets or gets flash variables which passed to player.
setCustomPlayer
Sets or gets custom flash player to play video/audio data.
setPoster
Set poster of the annotation.
setType
public void setType(int value)
Gets or sets type of content. Possible values: Audio, Video.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ContentType element |
update
public void update()
Updates data with specified parameters.