Skip to content

Improvements to getBufferLength method of MediaPlayer

Vinay Rosenberg requested to merge github/fork/wilaw/development into development

Created by: wilaw

  1. Now returns the minimum of video or audio bufferLength if no type arg is supplied, so will work with audio-only and video-only presentations.
  2. Supports "fragmentedText" as a media type.
  3. Send a log warning if you request an invalid type.
  4. NaN is returned if an invalid type is requested, or if the presentation does not contain that type or if no arguments are passed and the presentation does not include any audio or video adaption sets.

Merge request reports