# createPlaybackDataSource Source: https://www.nianticspatial.com/docs/api/kotlin/com.nianticspatial.nsdk.helpers.createPlaybackDataSource/ createPlaybackDataSource --- ## Declaration fun createPlaybackDataSource( frameProvider: () -> PlaybackFrame?, orientationProvider: () -> Orientation = { Orientation.PORTRAIT } ): NsdkSessionDataSource #### Summary Creates a playback data source that converts dataset bitmaps to YUV on a background thread. The returned object implements DefaultLifecycleObserver -- add it to your lifecycle for cleanup on destroy. ### Parameters | Name | Type | Summary | | --- | --- | --- | | frameProvider | () -> PlaybackFrame? | Returns the latest [PlaybackFrame]. | | orientationProvider | () -> Orientation | Returns the current device screen orientation. | ---