# AudioNode
Class Inherits MediaNode
## About
`AudioNode` represents an audio URL or local audio file. Its canvas preview is a compact mock-player presentation; selecting it activates the embedded media player supplied by `MediaNode`.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| ConfigureEmbeddedPlayer | player As DesktopMoviePlayer | (None) | Configures the embedded movie player when it is created. |
| Constructor | (None) | (None) | Creates a new audio node instance initialized from the supplied values. |
| Constructor | file As FolderItem | (None) | Creates a new audio node instance initialized from the supplied values. |
| Constructor | url As String | (None) | Creates a new audio node instance initialized from the supplied values. |
| DroppedFileImportPriority | file As FolderItem | Integer | Returns this node type's priority for importing a dropped file, or a negative value when unsupported. |
| DroppedFileTypes | (None) | String | Returns the file MIME types this node wants the editor to accept for dropping. |
| DroppedTextImportPriority | value As String | Integer | Returns this node type's priority for importing dropped text or a URL, or a negative value when unsupported. |
| Duplicate | (None) | Node | Returns an independent copy of this node and its configurable state. |
| EmbeddedControlBounds | bounds As Rect | Rect | Returns the bounds of the embedded player within the supplied node bounds. |
| HTMLTags | (None) | String | Returns the HTML tag names supported by this node type. |
| ImportDroppedFile | file As FolderItem | Boolean | Imports a dropped file into this node instance. |
| ImportDroppedText | value As String | Boolean | Imports dropped text or a URL into this node instance. |
| LocalizeToolbarItem | strings As GraffitiProEditor.Editor | (None) | Sets this node type's toolbar item text from the supplied editor's localization properties. The editor calls it when the type is registered, when the editor opens, and when a locale pack is applied to the editor. A custom node type can override it to localize its own toolbar item. |
| MediaFileFilter | (None) | String | Returns the open-file dialog filter for choosing this node's media file. Subclasses return their formats; empty allows any file. |
| PerformToolbarAction | editor As Editor <br> selectedItem As DesktopMenuItem | (None) | Handles activation of this node type's main-toolbar item. |
| PreferredHeight | g As Graphics <br> availableWidth As Double | Double | Returns the preferred node height for the available width. |
| Render | g As Graphics <br> bounds As Rect <br> selected As Boolean | (None) | Draws the node within the supplied document bounds. |
| ToHTML | (None) | String | Returns an HTML representation of this content. |
| ToMarkdown | (None) | String | Returns a Markdown representation of this content. |
| TypeName | (None) | String | Returns the display name for this node type. |
## Notes
Playback inside the editor depends on the embedded media support available on the target platform. This does not change the audio element generated by `ToHTML` or `ToMarkdown`.
### Linux Playback
Linux uses the same HTML5 `DesktopHTMLViewer` playback path as Windows and streams remote media without downloading the complete resource first. Playback still depends on the Linux distribution's WebKit and installed media codecs, so a source may remain unavailable even though the node can still be edited and exported.
## Examples
Register an audio prototype before inserting or importing audio.
### Local Audio
```xojo
Editor.AddNode(New GraffitiProEditor.AudioNode(audioFile))
```