Results 1 to 4 of 4

Thread: current active stream

  1. #1

    Default current active stream

    How would i be able to get the current active streams from the rest api?

    curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_de...er_/publishers
    gives all publishers not the once currently broadcasting

  2. #2
    Join Date
    May 2013
    Posts
    681

    Default

    Hello

    You can get a list of incoming active streams via the instances endpoint. Please try the following:
    curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances
    Example return would be:
    {"instanceList":[{"incomingStreams":[{"sourceIp":"rtmp://[ip]:56663","isPTZEnabled":false,"applicationInstance":"_definst_","name":"myStream","...........etc........],"outgoingStreams":[],"recorders":[],"streamGroups":[],"name":"_definst_"},{"incomingStreams":[],"outgoingStreams":[],"recorders":[],"streamGroups":[],"name":"incomingStreams"}]}
    Thanks,
    Matt

  3. #3

    Default

    thanks, with this i would be able to put a recorder on it right.
    i did found how to add a recorder, can the api make screenshots to without the need of ffmpeg?

    i know the ffmpeg way todo it

  4. #4
    Join Date
    May 2013
    Posts
    681

    Default

    There is no function available within the Rest API to grab a screenshot. You can use an HTTP Provider to do this (custom made) or if you are leveraging the transcoder you can use it to achieve the same.

    Thanks,
    Matt

Similar Threads

  1. Active stream but blank/empty video
    By KennethArmendariz in forum General Forum
    Replies: 1
    Last Post: 12-11-2015, 07:58 AM
  2. Active stream but blank/empty video
    By rohanp in forum General Forum
    Replies: 1
    Last Post: 02-10-2015, 09:01 AM
  3. Empty Video output despite active stream
    By ReefCam in forum Live Streaming and Encoders
    Replies: 3
    Last Post: 10-02-2014, 01:29 PM
  4. High-availability cluster Active/Active for video-chat application
    By mmaron@mikogo.com in forum General Forum
    Replies: 1
    Last Post: 09-19-2014, 08:03 AM
  5. Live stream - Check if user is member of an Active directory group
    By mount83 in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 07-27-2012, 06:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •