示例#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;
 }
示例#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;
        }
示例#3
0
 /**
  * スライダー上がタップされた
  */
 private void OnSliderTapped(WvvTrimmingSlider sender, double position, bool finalize)
 {
     sender.AbsoluteCurrentPosition = position;
     mPlayer.SeekPosition           = position;
     mFrameListView.TickPosition    = position / sender.TotalRange;
 }