@negtak/web-player-observer
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

Observe Tools for HLS player

usage

const hlsJsObserver = new HlsJsObserver(hls, video);
hlsJsObserver.enable();
hlsJsObserver.getStats()

stats property

  • user_agent
  • referrer
  • visibility
  • state
    • player state (playing, pausing)
  • current_time
    • current playting time
  • total_join_time
    • time to canplay state
  • total_play_time
    • total time of playing state
  • total_pausing_time
    • total time of pausing state
  • current_bitrate
    • bandwidth in bits/s
  • total_dropped_frame
  • video_height
  • video_width
  • video_display_area_height
  • video_display_area_width
  • latency
    • differnce between program date time and client time
  • src_media
  • volume
  • duration
    • total video duration
  • is_live
  • error
    • player emits
  • total_duration
    • manifest duration

Package Sidebar

Install

npm i @negtak/web-player-observer

Weekly Downloads

1

Version

0.0.9

License

Apache-2.0

Unpacked Size

45.5 kB

Total Files

28

Last publish

Collaborators

  • negtak