Loading media/libmediaplayer2/include/mediaplayer2/MediaPlayer2Types.h +3 −0 Original line number Diff line number Diff line Loading @@ -107,6 +107,9 @@ enum media2_info_type { // The player just completed the playback of all data sources. // But this is not visible in native code. Just keep this entry for completeness. MEDIA2_INFO_DATA_SOURCE_LIST_END = 6, // The player just completed an iteration of playback loop. This event is sent only when // looping is enabled. MEDIA2_INFO_DATA_SOURCE_REPEAT = 7, //1xx // The player just prepared a data source. Loading media/libmediaplayer2/nuplayer2/NuPlayer2Driver.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -930,7 +930,12 @@ void NuPlayer2Driver::notifyListener_l( // the last little bit of audio. In looping mode, we need to restart it. mAudioSink->start(); } // don't send completion event when looping sp<AMessage> notify = new AMessage(kWhatNotifyListener, this); notify->setInt64("srcId", srcId); notify->setInt32("messageId", MEDIA2_INFO); notify->setInt32("ext1", MEDIA2_INFO_DATA_SOURCE_REPEAT); notify->post(); return; } if (property_get_bool("persist.debug.sf.stats", false)) { Loading Loading
media/libmediaplayer2/include/mediaplayer2/MediaPlayer2Types.h +3 −0 Original line number Diff line number Diff line Loading @@ -107,6 +107,9 @@ enum media2_info_type { // The player just completed the playback of all data sources. // But this is not visible in native code. Just keep this entry for completeness. MEDIA2_INFO_DATA_SOURCE_LIST_END = 6, // The player just completed an iteration of playback loop. This event is sent only when // looping is enabled. MEDIA2_INFO_DATA_SOURCE_REPEAT = 7, //1xx // The player just prepared a data source. Loading
media/libmediaplayer2/nuplayer2/NuPlayer2Driver.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -930,7 +930,12 @@ void NuPlayer2Driver::notifyListener_l( // the last little bit of audio. In looping mode, we need to restart it. mAudioSink->start(); } // don't send completion event when looping sp<AMessage> notify = new AMessage(kWhatNotifyListener, this); notify->setInt64("srcId", srcId); notify->setInt32("messageId", MEDIA2_INFO); notify->setInt32("ext1", MEDIA2_INFO_DATA_SOURCE_REPEAT); notify->post(); return; } if (property_get_bool("persist.debug.sf.stats", false)) { Loading