Platforms to show: All Mac Windows Linux Cross-Platform
AVAssetResourceLoadingDataRequestMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The AVAssetResourceLoaderDelegate uses the AVAssetResourceLoadingDataRequest class to do the actual data reading, and its methods will be invoked, as necessary, to acquire data for the AVAssetResourceLoadingRequest instance.
When the resource loading delegate, which implements the AVAssetResourceLoaderDelegate protocol, receives an instance of AVAssetResourceLoadingRequest as the second parameter of the delegate's resourceLoader:shouldWaitForLoadingOfRequestedResource: method, it has the option of accepting responsibility for loading the referenced resource. If it accepts that responsibility, by returning YES, it must check whether the dataRequest property of the AVAssetResourceLoadingRequest instance is not nil. If it is not nil, the resource loading delegate is informed of the range of bytes within the resource that are required by the underlying media system. In response, the data is provided by one or more invocations of respondWithData: as required to provide the requested data. The data can be provided in increments determined by the resource loading delegate according to convenience or efficiency.
When the AVAssetResourceLoadingRequest method finishLoading is invoked, the data request is considered fully satisfied. If the entire range of bytes requested has not yet been provided, the underlying media system assumes that the resource's length is limited to the provided content.
Available in OS X v10.9 and later.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 4 properties
- property currentOffset as Integer
- property Handle as Integer
- property requestedLength as Int64
- property requestedOffset as Int64
- 2 methods
- method Constructor Private
- method respondWithData(data as MemoryBlock)
- shared method available as boolean
This class has no sub classes.
Some properties using for this class:
- AVAssetResourceLoadingRequestMBS.dataRequest as AVAssetResourceLoadingDataRequestMBS
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVAssetResourceLoadingContentInformationRequestMBS - AVAssetResourceLoadingRequestMBS