react-native-video: Loading is very slow

I am using react-native-video 4.4.2

        <Video
          style={{ position: 'absolute', opacity: 0 }}
          source={{ uri: trackUrl }}
          audioOnly={true}
          ref={ref => this.player = ref}
          volume={1.0}
          muted={false}
          rate={speedRate}
          paused={isPaused}
          onEnd={this._onEnd}
          onLoad={this._onLoad}
          onSeek={this._onSeek}
          playInBackground={true}
          playWhenInactive={true}
          onBuffer={this._onBuffer}
          ignoreSilentSwitch={'ignore'}
          onProgress={this._onProgress}
          onLoadStart={this._onLoadStart}
        />

It’s too long (4s) between Loading and Buffering image

How can I reduce the loading time?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 10
  • Comments: 19 (1 by maintainers)

Most upvoted comments