Gotipath Docs
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
  1. Webhook
  • Overview
  • Video
  • Live Streaming
  • Video Security
    • CDN Token Authentication
  • Webhook
    • Video Webhooks
    • Live Stream Webhooks
  1. Webhook

Video Webhooks

How to setup webhook enpoint at Gotipath Stream Library#

1.
First go to API Section
image.png
2.
Put your webhook reciving endpoint at Payload URL box then save it.
You will start getting below webhook notifications if your endpoint is working properly.Stream send webhook notifications for following activities: video processing queue, started, finished or at any error.

Example Webhook Response#

After uploading videos when it goes to the queue
    {
       "event":"queue",
       "event_type":"video",
       "notification_time":"unix_timestamp",
       "payload":{
          "client_id":"b1bef3d5-a2dd-4fec-9bf3-061038ce2c41",
          "direct_play_url":"",
          "libraryId":"34f4dcc3-a5f0-48dd-8c62-b467929d2ec6",
          "manifest_url":"",
          "status":"queue",
          "video_id":"6ce57355-8c45-4e60-89ee-e2f167609cb7"
       }
    }

When the stream transcoder engine starts the transcoding process
{
   "event": "processing",
   "event_type": "video",
   "notification_time": "unix_timestamp",
   "payload": {
      "client_id": "b1bef3d5-a2dd-4fec-9bf3-061038ce2c41",
      "direct_play_url": "",
      "libraryId": "34f4dcc3-a5f0-48dd-8c62-b467929d2ec6",
      "manifest_url": "",
      "status": "processing",
      "video_id": "6ce57355-8c45-4e60-89ee-e2f167609cb7"
   }
}

When it starts video transcoding
{
   "event": "transcoding",
   "event_type": "video",
   "notification_time": "unix_timestamp",
   "payload": {
      "client_id": "b1bef3d5-a2dd-4fec-9bf3-061038ce2c41",
      "direct_play_url": "",
      "libraryId": "34f4dcc3-a5f0-48dd-8c62-b467929d2ec6",
      "manifest_url": "",
      "status": "transcoding",
      "video_id": "6ce57355-8c45-4e60-89ee-e2f167609cb7"
   }
}

After transcoding finished
	
{
   "event": "transcoding_finished",
   "event_type": "video",
   "notification_time": "unix_timestamp",
   "payload": {
      "client_id": "b1bef3d5-a2dd-4fec-9bf3-061038ce2c41",
      "direct_play_url": "https://player.gotipath.com/stream/34f4dcc3-a5f0-48dd-8c62-b467929d2ec6/default/8a1b8951-b457-46f2-b909-5585515f06a9",
      "libraryId": "34f4dcc3-a5f0-48dd-8c62-b467929d2ec6",
      "manifest_url": "https://eeacn4vb.gpcdn.net/69841c17-4626-41f1-8290-a819c0caeffc/playlist.m3u8",
      "status": "playable",
      "video_id": "8a1b8951-b457-46f2-b909-5585515f06a9"
   }
}
If the transcoding job failed
{
   "event": "transcoding_failed",
   "event_type": "video",
   "notification_time": "unix_timestamp",
   "payload": {
      "client_id": "b1bef3d5-a2dd-4fec-9bf3-061038ce2c41",
      "direct_play_url": "",
      "libraryId": "34f4dcc3-a5f0-48dd-8c62-b467929d2ec6",
      "manifest_url": "",
      "status": "failed",
      "video_id": "8a1b8951-b457-46f2-b909-5585515f06a9"
   }
}
Modified at 2023-11-22 13:52:44
Previous
CDN Token Authentication
Next
Live Stream Webhooks
Built with