private void Source_OpenOperationCompleted(MediaSource source, MediaSourceOpenOperationCompletedEventArgs args)
        {
            // Here we create our own metadata track.
            // Our goal is to track progress through the asset and report it back to a server.
            var contentId          = (Guid)source.CustomProperties["contentId"];
            var reportingUriFormat = "http://myserver/reporting/{0}?id={1}";

            //From \Shared\TrackingEventCue.cs :
            TrackingEventCue.CreateTrackingEventsTrack(source, contentId.ToString(), reportingUriFormat);
        }
Exemplo n.º 2
0
        private void Source_OpenOperationCompleted(MediaSource source, MediaSourceOpenOperationCompletedEventArgs args)
        {
            // Here we create our own metadata track.
            // Our goal is to track progress through the asset and report it back to a server.
            object customValue = null;

            source.CustomProperties.TryGetValue("contentId", out customValue);
            string contentId          = (string)customValue;
            var    reportingUriFormat = "http://myserver/reporting/{0}?id={1}";

            // From \Shared\TrackingEventCue.cs :
            TrackingEventCue.CreateTrackingEventsTrack(source, contentId, reportingUriFormat);
        }