Exemplo n.º 1
0
 // Event handler called each time an ad completes
 private void SdkInstance_OnVideoView(object sender, AdViewEventArgs e)
 {
     // e.IsCompletedView is true when 80% of the video was watched
     // e.VideoDuration is actual time the user watched the video
     // e.VideoDuration is total duration of the video displayed
     System.Diagnostics.Debug.WriteLine("OnVideoView(Id: " + e.Id + ")" +
                                        "\n\tIsCompletedView: " + e.IsCompletedView +
                                        "\n\tVideoDuration: " + e.VideoDuration +
                                        "\n\tWatchedDuration: " + e.WatchedDuration);
 }
Exemplo n.º 2
0
 // DEPRECATED - use SdkInstance_OnAdEnd() instead
 private void SdkInstance_OnVideoView(object sender, AdViewEventArgs e)
 {
 }