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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.