UNPKG

react-native-theoplayer

Version:

A THEOplayer video component for react-native.

22 lines (21 loc) 717 B
"use strict"; import { NativeModules } from 'react-native'; const NativeAdsModule = NativeModules.THEORCTAdsModule; export class THEOplayerNativeGoogleDAI { constructor(_player) { this._player = _player; } get snapback() { return NativeAdsModule.daiSnapback(this._player.nativeHandle); } setSnapback(enabled) { NativeAdsModule.daiSetSnapback(this._player.nativeHandle, enabled); } contentTimeForStreamTime(time) { return NativeAdsModule.daiContentTimeForStreamTime(this._player.nativeHandle, time); } streamTimeForContentTime(time) { return NativeAdsModule.daiStreamTimeForContentTime(this._player.nativeHandle, time); } } //# sourceMappingURL=THEOplayerNativeGoogleDAI.js.map