1 Reply Latest reply on Apr 23, 2010 9:48 AM by bringrags

    TimelineMetadata throws exceptions because of invalid cue points (sprint 10)

    Alex_Avseyev

      Hi,

       

      Not sure if it belongs to bugs, so here's my report on exceptions thrown by TimelineMetadata.addValue() method.

      We have a number of recorded streams and one live stream (I believe it's generated by Inlet encoder) that can not be played because of the validation check in this method:

      if (key == null || isNaN(time) || time < 0 || marker == null)

      {

      throw new ArgumentError(OSMFStrings.getString(OSMFStrings.INVALID_PARAM));

      }


      Stack is:

       

      org.osmf.metadata::TimelineMetadata/addValue

      org.osmf.metadata::TimelineMetadata/addMarker

      org.osmf.elements::VideoElement/onCuePoint

      Yes, time is NaN. It may be a bug on Inlet side. I believe that markers are less important than preserving user experience.

      I suggest not to throw exception here but just ignore invalid cue points.