Migrate EventLogger
to non-deprecated AnalyticsListener
methods
Also suppress a warning about unused constructor parameters. #minor-release PiperOrigin-RevId: 577795245
This commit is contained in:
parent
1ac6263869
commit
e30e43ec3f
@ -93,6 +93,7 @@ public class EventLogger implements AnalyticsListener {
|
|||||||
*/
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@SuppressWarnings("unused") // Maintain backwards compatibility for callers.
|
||||||
public EventLogger(@Nullable MappingTrackSelector trackSelector) {
|
public EventLogger(@Nullable MappingTrackSelector trackSelector) {
|
||||||
this(DEFAULT_TAG);
|
this(DEFAULT_TAG);
|
||||||
}
|
}
|
||||||
@ -106,6 +107,7 @@ public class EventLogger implements AnalyticsListener {
|
|||||||
*/
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@SuppressWarnings("unused") // Maintain backwards compatibility for callers.
|
||||||
public EventLogger(@Nullable MappingTrackSelector trackSelector, String tag) {
|
public EventLogger(@Nullable MappingTrackSelector trackSelector, String tag) {
|
||||||
this(tag);
|
this(tag);
|
||||||
}
|
}
|
||||||
@ -335,7 +337,10 @@ public class EventLogger implements AnalyticsListener {
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Override
|
@Override
|
||||||
public void onAudioDecoderInitialized(
|
public void onAudioDecoderInitialized(
|
||||||
EventTime eventTime, String decoderName, long initializationDurationMs) {
|
EventTime eventTime,
|
||||||
|
String decoderName,
|
||||||
|
long initializedTimestampMs,
|
||||||
|
long initializationDurationMs) {
|
||||||
logd(eventTime, "audioDecoderInitialized", decoderName);
|
logd(eventTime, "audioDecoderInitialized", decoderName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -425,7 +430,10 @@ public class EventLogger implements AnalyticsListener {
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Override
|
@Override
|
||||||
public void onVideoDecoderInitialized(
|
public void onVideoDecoderInitialized(
|
||||||
EventTime eventTime, String decoderName, long initializationDurationMs) {
|
EventTime eventTime,
|
||||||
|
String decoderName,
|
||||||
|
long initializedTimestampMs,
|
||||||
|
long initializationDurationMs) {
|
||||||
logd(eventTime, "videoDecoderInitialized", decoderName);
|
logd(eventTime, "videoDecoderInitialized", decoderName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user