Beispiel #1
0
 /**
  * CurrentPositionが操作された
  */
 private void OnCurrentPositionChanged(WvvTrimmingSlider sender, double position, bool finalize)
 {
     if (mPreviewing)
     {
         mPlayer.PlaybackSession.Position = TimeSpan.FromMilliseconds(sender.CurrentPosition);
     }
     else
     {
         mPlayer.PlaybackSession.Position = TimeSpan.FromMilliseconds(sender.AbsoluteCurrentPosition);
     }
     mFrameListView.TickPosition = sender.AbsoluteCurrentPosition / sender.TotalRange;
 }
Beispiel #2
0
        /**
         * TrimEndが操作された
         */
        private async void OnTrimEndChanged(WvvTrimmingSlider sender, double position, bool finalize)
        {
            if (mComposition.Clips.Count != 1)
            {
                return;
            }
            //var currentClip = mComposition.Clips[0];
            //currentClip.TrimTimeFromEnd = TimeSpan.FromMilliseconds(position);
            await stopPreview(PositionOf.END);

            if (ResetCurrentPositionOnTrimmed)
            {
                mTrimmingSlider.CurrentPosition = 0;
            }
            mFrameListView.RightTrim = position / sender.TotalRange;
        }
Beispiel #3
0
 /**
  * スライダー上がタップされた
  */
 private void OnSliderTapped(WvvTrimmingSlider sender, double position, bool finalize)
 {
     sender.AbsoluteCurrentPosition = position;
     mPlayer.SeekPosition           = position;
     mFrameListView.TickPosition    = position / sender.TotalRange;
 }