mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Don't log mediaId in EventLogger and DefaultMediaSourceFactory.
The media id defaults to the URI that shouldn't be logged to logcat. PiperOrigin-RevId: 324770157
This commit is contained in:
parent
ea01489c8b
commit
33af7a4536
2 changed files with 1 additions and 7 deletions
|
|
@ -381,11 +381,7 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
|
||||||
}
|
}
|
||||||
AdsLoader adsLoader = adSupportProvider.getAdsLoader(mediaItem.playbackProperties.adTagUri);
|
AdsLoader adsLoader = adSupportProvider.getAdsLoader(mediaItem.playbackProperties.adTagUri);
|
||||||
if (adsLoader == null) {
|
if (adsLoader == null) {
|
||||||
Log.w(
|
Log.w(TAG, "Playing media without ads. No AdsLoader for provided adTagUri");
|
||||||
TAG,
|
|
||||||
String.format(
|
|
||||||
"Playing media without ads. No AdsLoader for media item with mediaId '%s'.",
|
|
||||||
mediaItem.mediaId));
|
|
||||||
return mediaSource;
|
return mediaSource;
|
||||||
}
|
}
|
||||||
return new AdsMediaSource(
|
return new AdsMediaSource(
|
||||||
|
|
|
||||||
|
|
@ -195,8 +195,6 @@ public class EventLogger implements AnalyticsListener {
|
||||||
logd(
|
logd(
|
||||||
"mediaItem ["
|
"mediaItem ["
|
||||||
+ getEventTimeString(eventTime)
|
+ getEventTimeString(eventTime)
|
||||||
+ ", "
|
|
||||||
+ (mediaItem == null ? "null" : "mediaId=" + mediaItem.mediaId)
|
|
||||||
+ ", reason="
|
+ ", reason="
|
||||||
+ getMediaItemTransitionReasonString(reason)
|
+ getMediaItemTransitionReasonString(reason)
|
||||||
+ "]");
|
+ "]");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue