@100mslive/react-native-room-kit
Version:
100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
66 lines • 936 B
TypeScript
import React from 'react';
import type { HMSHLSPlayer } from '@100mslive/react-native-hms';
interface HLSSeekbarProps {
playerRef: React.RefObject<React.ElementRef<typeof HMSHLSPlayer>>;
onStart: () => void;
onEnd: () => void;
}
export declare const _HLSSeekbar: React.FC<HLSSeekbarProps>;
export declare const HLSSeekbar: React.NamedExoticComponent<HLSSeekbarProps>;
export {};
/**
*
*
*
*
*
*
*
*
*
* 200 -> 200 * 40%
*
* 180 - 33.33% = 60;
*
* currentStreamDuration * (diff in current and prev) * 100 / prev
*
* 0 |----------| 150
* prev = 135
*
* curr = 90
*
*
*
*
*
*
*
*
*
* //// 2 * 30 = 60
* 1.5 * 30 = 45
*
* 180
*
* 120
*
* 0 |------____| 100
*
*
* 200 * 40% = 80
*
* 200 * 30% = 60
*
*
* 30*90
*
* 0 |---------_| 100
* Prev = 90
* |------|
* Curr = 60
*
* 90 - 60 = 30
*
* seekbackward(80)
*/
//# sourceMappingURL=HLSSeekbar.d.ts.map