Platforms to show: All Mac Windows Linux Cross-Platform

Back to VLCMediaMBS class.

VLCMediaMBS.MediaWithData(vlc as VLCInstanceMBS, data as memoryblock) as VLCMediaMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method VLC MBS VLC Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Create a media for a certain data.

Internally creates temp file for the data and opens the file.
File is later deleted when VLCMediaMBS goes out of scope.
Returns new media object or nil.

See also:

VLCMediaMBS.MediaWithData(vlc as VLCInstanceMBS, data as string) as VLCMediaMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method VLC MBS VLC Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Create a media for a certain data.

Internally creates temp file for the data and opens the file.
File is later deleted when VLCMediaMBS goes out of scope.
Returns new media object or nil.

See also:

VLCMediaMBS.MediaWithFile(vlc as VLCInstanceMBS, file as folderitem) as VLCMediaMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method VLC MBS VLC Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Create a media for a certain file path.

file: local filesystem path as folderitem.
Returns new media object or nil.

Some examples using this method:

VLCMediaMBS.MediaWithFileDescriptor(vlc as VLCInstanceMBS, fd as Integer) as VLCMediaMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method VLC MBS VLC Plugin 12.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Create a media for an already open file descriptor.

The file descriptor shall be open for reading (or reading and writing).

Regular file descriptors, pipe read descriptors and character device descriptors (including TTYs) are supported on all platforms. Block device descriptors are supported where available.
Directory descriptors are supported on systems that provide fdopendir(). Sockets are supported on all platforms where they are file descriptors, i.e. all except Windows.

This library will not automatically close the file descriptor under any circumstance. Nevertheless, a file descriptor can usually only be rendered once in a media player. To render it a second time, the file descriptor should probably be rewound to the beginning with lseek().

Returns new media object or nil.

VLCMediaMBS.MediaWithPath(vlc as VLCInstanceMBS, Path as string) as VLCMediaMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method VLC MBS VLC Plugin 12.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Create a media for a certain file path.

path: local filesystem path
Returns new media object or nil.

Some examples using this method:

VLCMediaMBS.MediaWithURL(vlc as VLCInstanceMBS, URL as string) as VLCMediaMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method VLC MBS VLC Plugin 12.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Create a media with a certain given media resource location, for instance a valid URL.
Example
dim v as VLCInstanceMBS // your vlc object
dim m as VLCMediaMBS

// load with URL
m = VLCMediaMBS.MediaWithURL(v, "https://www.monkeybreadsoftware.com/filemaker/video/WriteInvoice-iPhone.m4v")

// or with file URL:
m = VLCMediaMBS.MediaWithURL(v, moviefile.URLPath)

URL: the media location
Returns the new media object or nil.
To refer to a local file with this function, the file://... URI syntax must be used (see IETF RFC3986).
We recommend using MediaWithPath() instead when dealing with local files.

VLCMediaMBS.NewAsNode(vlc as VLCInstanceMBS, name as string) as VLCMediaMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method VLC MBS VLC Plugin 12.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Create a media as an empty node with a given name.

Name: The name of the new node.
Returns new media object or nil.

The items on this page are in the following plugins: MBS VLC Plugin.


The biggest plugin in space...