react-native-theoplayer
Version:
A THEOplayer video component for react-native.
27 lines (26 loc) • 893 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.THEOplayerNativeGoogleDAI = void 0;
var _reactNative = require("react-native");
const NativeAdsModule = _reactNative.NativeModules.THEORCTAdsModule;
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);
}
}
exports.THEOplayerNativeGoogleDAI = THEOplayerNativeGoogleDAI;
//# sourceMappingURL=THEOplayerNativeGoogleDAI.js.map