PFAsset Protocol Reference
| Conforms to | NSObject |
| Declared in | PFAsset.h |
Overview
An object which implements the PFAsset protocol delivers playback control for 360 video assets. An PFAsset can be instantiated within Panframe by using the appropriate PFObjectFactory method.
Tasks
-
– playPlayback of the asset
required method -
– pausePause the playback of the asset
required method -
– stopStops the playback of the asset
required method -
– getTimeRangeGet the current timerange of playback
required method -
– setTimeRange:duration:Set the current timerange of playback. Use this to skip to a specific part in the asset.
required method -
– getPlaybackTimeGet the current time in playback
required method -
– getDurationGet the duration of the asset
required method -
– getUrlGet URL of the asset
required method -
– addObserver:Add an observer to the asset
required method -
– removeObserver:Remove an observer to the asset
required method -
– getStatusReturns the status of the asset
required method -
– getDownloadProgressReturns the download progress of the asset
required method
Instance Methods
addObserver:
Add an observer to the asset
- (void)addObserver:(PFAssetObserver *)observerParameters
- observer
The observer implementing the PFAssetObserver protocol to be added
Discussion
Add an observer to the asset
Declared In
PFAsset.hgetDownloadProgress
Returns the download progress of the asset
- (float)getDownloadProgressReturn Value
The the download progress (when dowloading assets) in a range from 0.0 to 1.0
Discussion
Returns the download progress of the asset
Declared In
PFAsset.hgetDuration
Get the duration of the asset
- (CMTime)getDurationReturn Value
Returns the total duration of the asset.
Discussion
Get the duration of the asset
Declared In
PFAsset.hgetPlaybackTime
Get the current time in playback
- (CMTime)getPlaybackTimeReturn Value
Returns a CMTime of the current position in playback of the asset.
Discussion
Get the current time in playback
Declared In
PFAsset.hgetStatus
Returns the status of the asset
- (enum PFASSETMESSAGE)getStatusReturn Value
The status of the asset
Discussion
Returns the status of the asset
Declared In
PFAsset.hgetTimeRange
Get the current timerange of playback
- (CMTimeRange)getTimeRangeReturn Value
Returns a CMTimeRange of the configured start time of playback and duration
Discussion
Get the current timerange of playback
Declared In
PFAsset.hgetUrl
Get URL of the asset
- (NSURL *)getUrlReturn Value
Returns the url of the asset.
Discussion
Get URL of the asset
Declared In
PFAsset.hpause
Pause the playback of the asset
- (void)pauseDiscussion
Pause the playback of the asset
Declared In
PFAsset.hremoveObserver:
Remove an observer to the asset
- (void)removeObserver:(PFAssetObserver *)observerParameters
- observer
The observer implementing the PFAssetObserver protocol to be removed
Discussion
Remove an observer to the asset
Declared In
PFAsset.hsetTimeRange:duration:
Set the current timerange of playback. Use this to skip to a specific part in the asset.
- (void)setTimeRange:(CMTime)start duration:(CMTime)durationParameters
- start
The position from the start of the asset to begin playback.
- duration
The duration of the playback from the start
Discussion
Set the current timerange of playback. Use this to skip to a specific part in the asset.
Declared In
PFAsset.h