ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / VideoPresentationPage Class / SetVideoSource Method
The video source path
Example

In This Topic
    SetVideoSource Method
    In This Topic
    Sets the video source. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetVideoSource( 
       string videoURL
    )
    Public Sub SetVideoSource( _
       ByVal videoURL As String _
    ) 

    Parameters

    videoURL
    The video source path
    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Example
    Video page
    {
      // add a new video page in current active presentation
      var videoPage = presentation.AddVideoPage("my video file", -1);
    
      // change the image source
      videoPage.SetVideoSource("new video source");
    
      // change the start time of video to 3s
      videoPage.SetStartTime(3.0);
      // change the end time of video to 10s
      videoPage.SetEndTime(10.0);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.5 or higher.
    See Also