@@ -52,15 +52,20 @@ struct IStreamListener : public IInterface {
5252 static const char *const kKeyResumeAtPTS ;
5353
5454 // When signalling a discontinuity you can optionally
55- // signal that this is a "hard" discontinuity, i.e. the format
56- // or configuration of subsequent stream data differs from that
57- // currently active. To do so, include a non-zero int32_t value
58- // under the key "kKeyFormatChange" when issuing the DISCONTINUITY
55+ // specify the type(s) of discontinuity, i.e. if the
56+ // audio format has changed, the video format has changed,
57+ // time has jumped or any combination thereof.
58+ // To do so, include a non-zero int32_t value
59+ // under the key "kKeyDiscontinuityMask" when issuing the DISCONTINUITY
5960 // command.
60- // The new logical stream must start with proper codec initialization
61+ // If there is a change in audio/video format, The new logical stream
62+ // must start with proper codec initialization
6163 // information for playback to continue, i.e. SPS and PPS in the case
6264 // of AVC video etc.
63- static const char *const kKeyFormatChange ;
65+ // If this key is not present, only a time discontinuity is assumed.
66+ // The value should be a bitmask of values from
67+ // ATSParser::DiscontinuityType.
68+ static const char *const kKeyDiscontinuityMask ;
6469
6570 virtual void issueCommand (
6671 Command cmd, bool synchronous, const sp<AMessage> &msg = NULL ) = 0;
0 commit comments