@Override public void onActivityPause() { super.onActivityPause(); try { WoleSDK.getInstance().onPause(); } catch (Exception e) { e.printStackTrace(); } }
public void playVideo(String uri) { Log.d(TAG, "play video."); try { WoleSDK.getInstance() .play( mContext, mPlayer, getVid(uri), (RelativeLayout) asView(), mAdView.getAdButtonView()); } catch (Exception e) { e.printStackTrace(); } }
@Override public void onActivityResume() { super.onActivityResume(); WoleSDK.getInstance().onResume(); }
private void init() { WoleSDK.getInstance().setAdListener(mAdsListener); }