Class ExternalMetadata

  • All Implemented Interfaces:
    com.longtailvideo.jwplayer.utils.Jsonable

    public class ExternalMetadata
    extends java.lang.Object
    implements com.longtailvideo.jwplayer.utils.Jsonable
    Customers use ExternalMetadata to register specific timestamps they want onMeta to fire providing them with customized data UseCase: A customer wants to show a button between 15s & 30s into a video and wants to avoid the performance hit of using onTime to figure out when they're in that playback window
    • Constructor Detail

      • ExternalMetadata

        public ExternalMetadata​(int id,
                                double startTime,
                                double endTime)
    • Method Detail

      • getId

        public int getId()
      • getStartTime

        public double getStartTime()
      • getEndTime

        public double getEndTime()
      • parseJson

        public static ExternalMetadata parseJson​(org.json.JSONObject json)
                                          throws org.json.JSONException
        Throws:
        org.json.JSONException
      • toJson

        public org.json.JSONObject toJson()
        Specified by:
        toJson in interface com.longtailvideo.jwplayer.utils.Jsonable