fix: add stub for IMA and option to enable it on demand
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.google.ads.interactivemedia.v3.api;
|
||||
|
||||
import androidx.annotation.InspectableProperty;
|
||||
|
||||
public abstract class AdEvent {
|
||||
public abstract InspectableProperty getType();
|
||||
|
||||
public interface AdEventListener {
|
||||
public void onAdEvent(AdEvent adEvent);
|
||||
}
|
||||
}
|
@@ -0,0 +1,65 @@
|
||||
package com.google.android.exoplayer2.ext.ima;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.facebook.react.uimanager.ThemedReactContext;
|
||||
import com.google.android.exoplayer2.ExoPlayer;
|
||||
import com.google.android.exoplayer2.Player;
|
||||
import com.google.android.exoplayer2.source.ads.AdsLoader;
|
||||
import com.google.android.exoplayer2.source.ads.AdsMediaSource;
|
||||
import com.google.android.exoplayer2.ui.AdViewProvider;
|
||||
import com.google.android.exoplayer2.upstream.DataSpec;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class ImaAdsLoader implements AdsLoader {
|
||||
public void setPlayer(ExoPlayer player) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPlayer(@Nullable Player player) {
|
||||
|
||||
}
|
||||
|
||||
public void release() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSupportedContentTypes(int... ints) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(AdsMediaSource adsMediaSource, DataSpec dataSpec, Object o, AdViewProvider adViewProvider, EventListener eventListener) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop(AdsMediaSource adsMediaSource, EventListener eventListener) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handlePrepareComplete(AdsMediaSource adsMediaSource, int i, int i1) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handlePrepareError(AdsMediaSource adsMediaSource, int i, int i1, IOException e) {
|
||||
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
public Builder(ThemedReactContext themedReactContext) {
|
||||
|
||||
}
|
||||
|
||||
public Builder setAdEventListener(Object reactExoplayerView) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ImaAdsLoader build() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user