Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

AVMutableMovieMBS.movieWithData(Data as MemoryBlock, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVMovie MBS AVFoundation Plugin 16.0 Yes No No Yes, macOS only No
Function: Creates an AVMutableMovie object from a movie header stored in a Memoryblock/string.
Notes:
data: A memoryblock/string containing a movie header.
options: An dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of memoryblock!

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an memoryblock and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

See also:

Feedback, Comments & Corrections

AVMutableMovieMBS.movieWithData(Data as String, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVMovie MBS AVFoundation Plugin 16.0 Yes No No Yes, macOS only No
Function: Creates an AVMutableMovie object from a movie header stored in a Memoryblock/string.
Notes:
data: A memoryblock/string containing a movie header.
options: An dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of memoryblock!

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an memoryblock and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

See also:

Feedback, Comments & Corrections

AVMutableMovieMBS.movieWithFile(File as FolderItem, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVMovie MBS AVFoundation Plugin 16.0 Yes No No Yes, macOS only No
Function: Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file.
Notes:
File: An folderitem that specifies a file containing a movie header.
options: An Dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil.
If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

Feedback, Comments & Corrections

AVMutableMovieMBS.movieWithSettingsFromMovie(Movie as AVMovieMBS, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVMovie MBS AVFoundation Plugin 16.0 Yes No No Yes, macOS only No
Function: Creates an AVMutableMovie object without tracks (and therefore without media).
Notes:
movie: If you wish to transfer settings from an existing movie (including movie userdata and metadata, preferred rate, preferred volume, etc.), pass a reference to an AVMovie object representing that movie. Otherwise pass nil. The userdata and metadata from the source movie may need to be converted if the format of that movie differs from fileType; you may wish to inspect the userdata or metadata of the receiver to ensure that important data was copied.
options: A dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined; pass nil for default initialization behavior.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

Feedback, Comments & Corrections

AVMutableMovieMBS.movieWithURL(URL as String, Options as Dictionary = nil, byref Error as NSErrorMBS) as AVMovieMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method AVMovie MBS AVFoundation Plugin 16.0 Yes No No Yes, macOS only No
Function: Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file.
Notes:
URL: An URL that specifies a file containing a movie header.
options: An Dictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Currently no keys are defined.
Error: If an error occurs creating a movie, describes the nature of the failure.

Returns An AVMutableMovie object or nil in case of error.

By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil.
If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.

Feedback, Comments & Corrections

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




Links
MBS Xojo blog