void OnMarkerLeft(MediaMarker mediaMarker)
 {
     if (MarkerLeft != null)
     {
         MarkerLeft(this, new MediaMarkerEventArgs(mediaMarker));
     }
 }
 void OnMarkerReached(MediaMarker mediaMarker)
 {
     if (MarkerReached != null)
     {
         MarkerReached(this, new MediaMarkerEventArgs(mediaMarker));
     }
 }
 public MediaMarker(MediaMarker mediaMarker)
 {
     Begin = mediaMarker.Begin;
     Content = mediaMarker.Content;
     End = mediaMarker.End;
     Id = mediaMarker.Id;
     Type = mediaMarker.Type;
 }
示例#4
0
 public MediaMarker(MediaMarker mediaMarker)
 {
     Begin   = mediaMarker.Begin;
     Content = mediaMarker.Content;
     End     = mediaMarker.End;
     Id      = mediaMarker.Id;
     Type    = mediaMarker.Type;
 }
 void CheckMarkerPosition(TimeSpan mediaPosition, MediaMarker marker)
 {
     lock (_syncObject)
     {
         bool isActive = marker.IsActiveAtPosition(mediaPosition);
         if (isActive && !previouslyActiveMarkers.Contains(marker))
         {
             OnMarkerReached(marker);
             previouslyActiveMarkers.Add(marker);
         }
     }
 }
 void CheckMarkerPosition(TimeSpan mediaPosition, MediaMarker marker)
 {
     lock (_syncObject)
     {
         bool isActive = marker.IsActiveAtPosition(mediaPosition);
         if (isActive && !previouslyActiveMarkers.Contains(marker))
         {
             OnMarkerReached(marker);
             previouslyActiveMarkers.Add(marker);
         }
     }
 }
 void OnMarkerLeft(MediaMarker mediaMarker)
 {
     if (MarkerLeft != null) MarkerLeft(this, new MediaMarkerEventArgs(mediaMarker));
 }
 void OnMarkerReached(MediaMarker mediaMarker)
 {
     if (MarkerReached != null) MarkerReached(this, new MediaMarkerEventArgs(mediaMarker));
 }
 internal MediaMarkerEventArgs(MediaMarker marker)
 {
     Marker = marker;
 }
 internal MediaMarkerEventArgs(MediaMarker marker)
 {
     Marker = marker;
 }