MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / FindSeamlessPointTimePosition

Method FindSeamlessPointTimePosition

mediaPlayer/buffer_controller.cpp:295–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 }
294
295 int64_t BufferController::FindSeamlessPointTimePosition(BUFFER_TYPE type, int &count)
296 {
297 switch (type) {
298 case BUFFER_TYPE_AUDIO:
299 return mAudioPacketQueue.FindSeamlessPointTimePosition(count);
300
301 case BUFFER_TYPE_VIDEO:
302 return mVideoPacketQueue.FindSeamlessPointTimePosition(count);
303
304 case BUFFER_TYPE_SUBTITLE:
305 return mSubtitlePacketQueue.FindSeamlessPointTimePosition(count);
306
307 default:
308 AF_LOGE("error media type");
309 break;
310 }
311
312 return 0;
313 }
314
315 int64_t BufferController::GetPacketDuration(BUFFER_TYPE type)
316 {

Callers 2

switchVideoStreamMethod · 0.45
ReadPacketMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected