micnews / react-jw-player

A React Component API for JW Player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Player doesn't support TS video file extension ?

gergana95 opened this issue · comments

When I try to load a video url with .ts extension the player returns 102630 error. I tried adding it into playlist or directly with file prop.

When I add the video url in my dashboard and embed it in my website the video player is displayed and video can be played, so this means the video file is supported.

Is there a different way I can load the url? I think maybe I am not loading it correctly or not specifying the type of the video with props.

This is how I declare the JW Player.

  <ReactJWPlayer
        playerId={this.props.playerId}
        playerScript={this.state.playerScript}
        file="url_to_file.ts"
        onReady={this.onReady}
        onResume={this.onResume}
        onPause={this.onPause}
        onPlay={this.onPlay}
        onSetupError={this.onSetupError}
        customProps={{
          skin: {
            name: 'test-video-ts-file',
          },
          mute: false,
          autostart: false,
          height: '100%',
          primary: 'html5',
          hlshtml: true,
        }}
        className={className}
   />

These are the errors I get:
Screen Shot 2019-10-10 at 1 07 49 PM