Example #1
0
        @Override
        public void onVideoReplay() {

          final Vector<String> trackers = mVideoData.replayEvents;
          for (int i = 0; i < trackers.size(); i++) {

            final TrackEvent event = new TrackEvent();
            event.url = trackers.get(i);
            event.timestamp = System.currentTimeMillis();
            TrackerService.requestTrack(event);
          }
        }
Example #2
0
        @Override
        public void onTimeEvent(final int time) {

          final Vector<String> trackers = mVideoData.timeTrackingEvents.get(time);
          if (trackers != null)
            for (int i = 0; i < trackers.size(); i++) {
              final TrackEvent event = new TrackEvent();
              event.url = trackers.get(i);
              event.timestamp = System.currentTimeMillis();
              TrackerService.requestTrack(event);
            }
        }
Example #3
0
        @Override
        public void onClick(final View v) {

          final Vector<String> trackers = mVideoData.skipEvents;
          for (int i = 0; i < trackers.size(); i++) {

            final TrackEvent event = new TrackEvent();
            event.url = trackers.get(i);
            event.timestamp = System.currentTimeMillis();
            TrackerService.requestTrack(event);
          }

          mResult = true;
        }
Example #4
0
        @Override
        public void onCompletion(final MediaPlayer mp) {

          final Vector<String> trackers = mVideoData.completeEvents;
          for (int i = 0; i < trackers.size(); i++) {

            final TrackEvent event = new TrackEvent();
            event.url = trackers.get(i);
            event.timestamp = System.currentTimeMillis();
            TrackerService.requestTrack(event);
          }
          if (mType == RichMediaActivity.TYPE_VIDEO
              && mAd.getType() == Const.VIDEO_TO_INTERSTITIAL) {}

          if (mVideoData != null && mVideoData.width > 0) {
            /*
             * select current ad‘s videoPath to play
             */
            initVideo(layout);
          } else {
            mResult = true;
          }
        }