Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead

The warning "videojs warn player.tech--.hls is deprecated. use player.tech--.vhs instead"

7. Performance and Compatibility Evaluation

  • Startup latency: VHS typically equals or improves on legacy HLS due to optimized transmuxing and segment handling.
  • Memory and CPU: Depending on transmuxer settings and buffer lengths, VHS may use slightly more CPU for transmuxing but benefits from fewer codec workarounds.
  • Browser support:
    • Old: player.tech_.hls
    • New: player.tech_.vhs

    Protocol Support: While the old tech focused strictly on HLS, VHS handles multiple HTTP streaming protocols, providing a more consistent API across different media types. The warning "videojs warn player

    • [ ] Search codebase for tech_.hls
    • [ ] Replace with tech_.vhs
    • [ ] Test with real HLS streams
    • [ ] Update plugins and shared utilities
    • [ ] Remove any workarounds that suppressed the warning
    var vhs = player.tech_.vhs;
    // do something with vhs...
    

    var player = videojs('my-video', html5: hls: overrideNative: true ); Use code with caution. Copied to clipboard New Configuration: javascript Startup latency: VHS typically equals or improves on

    • Example differences: maxBufferLength / vhs.bufferLength; overrideNative / vhs.overrideNative; xhrTimeOut / vhs.xhrTimeout. (Confirm exact keys for your Video.js version.)
    • Accessing the HLS object for quality levels
    • Subscribing to HLS events
    • Manual segment loading
Previous
Previous

Sex, death and Ned Kelly: How love fits into the legend

Next
Next

Review: Driving into the Sun, Marcella Polain