Pelco SDK 3.2 Pelco SDK | Introduction 8 Pelco SDK Components The following table shows the major...

Click here to load reader

  • date post

    10-Mar-2020
  • Category

    Documents

  • view

    6
  • download

    0

Embed Size (px)

Transcript of Pelco SDK 3.2 Pelco SDK | Introduction 8 Pelco SDK Components The following table shows the major...

  • Pelco SDK 3.2

      PROGRAMMING C5617M-E 6/2013

  • Contents | Pelco SDK

    2

    Contents

    Chapter 1: Introduction............................................................................... 7 Getting Started with the Pelco SDK....................................................................................................7 General Requirements.........................................................................................................................9 Installing the Pelco SDK....................................................................................................................10 System Environment Settings for the Pelco SDK............................................................................. 11 Including Required SDK Components For Your Application.............................................................11 Setting Up Sample Projects.............................................................................................................. 12

    Registering the ActiveX Control..............................................................................................12 Adding References to Managed Libraries for C#................................................................... 12

    Chapter 2: Device Caching Using Object Model.................................... 17 Overview.............................................................................................................................................17 Device Caching..................................................................................................................................18 Samples..............................................................................................................................................18

    Chapter 3: Integrating Pelco Edge Systems and Devices..................... 22 Overview.............................................................................................................................................22 Adding a Pelco Edge System to a System Collection...................................................................... 22 Adding a Pelco Edge Device to a Device Collection........................................................................ 22

    Chapter 4: Using Network Displays.........................................................24 Overview.............................................................................................................................................24 Using a Network Display................................................................................................................... 24

    Chapter 5: Displaying and Controlling Streams Using Object Model...26 Overview.............................................................................................................................................26 Initialize a Stream Object.................................................................................................................. 26 Playback Recorded Video................................................................................................................. 27 Play a Stream Forward......................................................................................................................28 Play a Stream in Reverse................................................................................................................. 29 Pause a Stream.................................................................................................................................29 Resume Playback of a Paused Stream............................................................................................ 30 Switch from Playback to Live............................................................................................................ 30 Step Through a Video Stream...........................................................................................................30 Take a Snapshot................................................................................................................................31 Set the Stream Volume..................................................................................................................... 31 Get the Stream State.........................................................................................................................31 Get the Stream Mode........................................................................................................................ 32

    Chapter 6: Displaying and Controlling Streams Using PelcoAPIViewer 33 Overview.............................................................................................................................................33 Initializing the Pelco API Viewer (C++)............................................................................................. 33 Initializing the Pelco API Viewer (C#)............................................................................................... 34

    Using the PelcoAPIViewer Component.................................................................................. 35

  • Pelco SDK | Contents

    3

    Using the PelcoAPIMPFViewerControl Component............................................................... 35 Setting Size and Position of Video Display Area.............................................................................. 36 Querying an RTP Stream.................................................................................................................. 37 Opening, Playing, and Displaying a Live or Playback RTP Stream..................................................38 Opening, Playing, and Displaying an RTSP Stream.........................................................................40 Forward Playback of RTP and RTSP Streams.................................................................................41 Reverse Playback of RTP and RTSP Streams.................................................................................41 Fast Forward / Reverse Playback of RTP and RTSP Streams........................................................ 41 Pausing RTP and RTSP Playback Streams..................................................................................... 42 Frame Forward Playback of the RTP Stream...................................................................................42 Frame Reverse Playback of the RTP Stream...................................................................................43 Resuming the RTP or RTSP Stream from a Paused State.............................................................. 43 Stopping the RTP and RTSP Stream............................................................................................... 43 Start Manual Recording of RTP Stream........................................................................................... 44 Stop Manual Recording of RTP Stream............................................................................................44 Setting Audio Volume of a Live or Playback RTP stream................................................................ 45 Displaying Analytic Events for an RTP Stream.................................................................................45 Displaying Motion Events for an RTP Stream.................................................................................. 45 Displaying a Timestamp Overlay for RTP and RTSP Streams.........................................................45 Taking a Snapshot of the Current Video Frame for RTP and RTSP Streams.................................. 47 Pan, Tilt, Zoom (PTZ) Control for RTP Stream Using PelcoAPIViewer............................................ 47

    Chapter 7: Pan, Tilt, Zoom (PTZ) Control................................................48 Overview.............................................................................................................................................48 Initializing the PTZ Control Wrapper................................................................................................. 48 Continuous Panning...........................................................................................................................50 Continuous Tilting.............................................................................................................................. 51 Continuous Diagonal Movement........................................................................................................51 Stopping Continuous Movement........................................................................................................52 Enabling Continuous Pan/Tilt/Move and Zoom APIs by UDP Instead of TCP..................................52 Panning to a Specific Position...........................................................................................................53 Tilting to a Specific Position.............................................................................................................. 53 Moving to a Specific Position............................................................................................................ 54 Moving to a Position Relative to the Current Location......................................................................54 Getting the Camera’s Current Position............................................................................................. 55 Managing the Magnification (Zoom) Value........................................................................................55 Managing the Focus Value................................................................................................................56 Iris Control.........................................