void AwesomePlayer: : onVideoEvent( ) {
. . .
mVideoSource- > read ( & mVideoBuffer, . . . ) ;
mVideoBuffer- > meta_data( ) - > findInt64( kKeyTime, & timeUs) ;
mAudioPlayer- > getMediaTimeMapping( & realTimeUs, & mediaTimeUs) ;
mTimeSourceDeltaUs = realTimeUs - mediaTimeUs;
nowUs = ts- > getRealTimeUs( ) - mTimeSourceDeltaUs;
latenessUs = nowUs - timeUs;
. . . }
|