RTSP Streaming for Virtual Camera

Completed

Comments

1 comment

  • Avatar
    Anton Babinov

    Hi Yihsuan,

    Virtual cameras usually used to import previously recorded footage to the archive and there is no live stream to access for such cameras. As a result, when you accessing rtsp://192.168.16.98:7001/<cameraId>, mediaserver fails to find live stream for requested camera.

    However, you can access archived data for Virtual camera. Here is an example:

    1. Get to list of recorded time periods for virtual camera:

    https://127.0.0.1:7001/ec2/recordedTimePeriods?cameraId=1
    "error": "0",

    "errorId": "ok",

    "errorString": "",

    "reply": [

    {

    "guid": "{726a51c4-d15e-34d9-c394-19b7bcf9402e}",

    "periods": [

    {

    "durationMs": "1328618",

    "startTimeMs": "1650802821000"

    }

    ]

    }

    ]

    }

    2. Open rtsp steam with specifying position parameter:

     rtsp://127.0.0.1:7001/1?pos=1650802821000
    0
    Comment actions Permalink

Please sign in to leave a comment.