MENU
      Create channel

        Create channel


        Article summary

        This is an API that creates a VOD channel in Live Station. Channel list search API and Channel information search API are provided to search the created channels.

        Set content protection

        Live Station DRM Encryption supports multi-DRM for real-time content.
        You can easily set the DRM feature in the DRM settings area in the channel creation, and it supports multi-DRM encryption depending on the selected OutputProtocol.
        For more information about encryption methods by DRM technology and supported devices and other platforms and versions, see this link.

        | Encryption type | Protocol | DRM type | Encryption algorithm | Supported devices |
        |--- |--- |--- |--- |--- |
        | DRM | HLS | FairPlay | AES-CBC | Mac/iOS Safari browser, iOS/iPadOS/tvOS app, HLS HTML5 |
        | DRM | DASH | PlayReady, Widevine | CENC (Common Encryption) | MS Edge, Internet Explorer 11, Google Chrome, Firefox, Opera DASH HTML5 |

        • DRM type
          • FairPlay: A DRM technology protocol provided by Apple. It encrypts each HLS segment with the AES-CBC method.
          • Widevine: A DRM technology protocol provided by Google. It encrypts with the AES-128 method according to the Common Encryption Standard.
          • PlayReady: A DRM technology protocol provided by Microsoft. It encrypts with the AES-128 method according to the Common Encryption Standard.

        Request

        POST https://livestation.apigw.ntruss.com/api/v2/vod/channels
        HTTP

        Request headers

        Header nameRequiredDescription
        x-ncp-apigw-timestampYESIt indicates the elapsed time in milliseconds since January 1, 1970 00:00:00 UTC. Request is considered invalid if the timestamp differs from the current time by more than 5 minutes
        x-ncp-apigw-timestamp:{Timestamp}
        x-ncp-iam-access-keyYESAccess key ID value issued on NAVER Cloud Platform portal
        x-ncp-iam-access-key:{Sub Account Access Key}
        x-ncp-apigw-signature-v2YESSignature encrypted with the access key ID value and secret key
        x-ncp-apigw-signature-v2:{API Gateway Signature}
        Content-TypeYESSpecify the request body content type as application/json
        Content-Type: application/json
        x-ncp-region_codeYESRegion code (KR)

        Request body

        Field nameRequiredTypeRestrictionsDescription
        channelNameYesStringBetween 3 and 20 characters are allowed
        Special character underscore (_) is allowed
        Name of the channel to create
        outputProtocolOptionalStringHLS
        HLS,DASH
        LL_HLS
        Set output protocols
        Set to HLS if not entered
        envTypeOptionalStringDEV, STAGE, REALSettings for usage classification of the channel to be created
        Set to REAL if not entered
        cdnYesObjectCDN Object
        cdn.createCdnYesBooleantrue, falseCDN Object
        cdn.cdnTypeYesStringGLOBAL_CDN,GLOBAL_EDGECDN+ not supported
        cdn.profileIdYesIntegerGlobal Edge profile required for new GLOBAL_EDGE creation
        cdn.regionTypeYesStringKOREA,JAPAN,GLOBALGlobal Edge service area
        cdn.cdnInstanceNoOptionalIntegerMust be set if cdn.createCdn is false
        qualitySetIdYesInteger
        drmEnabledYnYesBooleanWhether DRM encryption settings are applied
        drmOptionalObjectSet DRM encryption using Live Station
        When setting DRM, FairPlay, Widevine/PlayReady DRMs are supported
        drm.siteIdOptionalStringSite id created with One Click Multi DRM product
        drm.contentIdOptionalStringUnique ID of the content to apply DRM encryption to
        It is used for DRM packaging and can be at least 3 characters and up to 100 characters, including English letter, numbers, "-" (hyphen), and "_" (underscore)

        Response

        Field nameTypeDescriptionRemarks
        channelIdString
        channelNameString
        outputProtocolStringHLS
        HLS, DASH
        LL_HLS
        envTypeStringDEV, STAGE, REAL
        cdnObject
        cdn.createCdnBoolean
        cdn.cdnTypeStringGLOBAL_CDN,GLOBAL_EDGE
        cdn.profileIdIntegerGlobal Edge profile required for new GLOBAL_EDGE creation
        cdn.regionTypeStringGlobal Edge service areaKOREA,JAPAN,GLOBAL
        cdn.cdnInstanceNoIntegerMust be set if cdn.createCdn is false
        qualitySetIdInteger
        typeString
        drmEnabledYnBooleanWhether DRM encryption settings are applied
        drmObjectSet DRM encryption using Live Station
        When setting DRM, FairPlay, Widevine/PlayReady DRMs are supported
        drm.siteIdStringSite id created with One Click Multi DRM product
        drm.contentIdStringUnique ID of the content to apply DRM encryption to
        It is used for DRM packaging and can be at least 3 characters and up to 100 characters, including English letter, numbers, "-" (hyphen), and "_" (underscore)

        Examples

        Request example

        POST /api/v2/vod/channels
        HOST: livestation.apigw.ntruss.com
        Content-Type: application/json
        x-ncp-apigw-timestamp:1521787414578
        x-ncp-iam-access-key:6uxz1nKkcYwUjWRG5Q1V7NsW0i5jErlu2NjBXXgy
        x-ncp-apigw-signature-v2:iJFK773KH0WwQ79PasqJ+ZGixtpDQ/abS57WGQdld2M=
        x-ncp-region_code:KR
        
        Request body (if cdn.createCdn == true)
        {
          "channelName": "myTestChannel",
          "cdn": {
            "createCdn": true,
            "cdnType": "GLOBAL_EDGE"
          },
          "qualitySetId": 5,
          "envType": "REAL",
          "outputProtocol": "HLS",
          "drmEnabledYn": true,
          "drm": {
            "siteId": "drm-20231115142326-nHyNw",
            "contentId": "my-Test-Multidrm"
          }
        }
        
        Request body (if cdn.createCdn == false)
        {
            "channelName": "myTestChannel",
            "cdn": {
              "createCdn": false,
              "cdnType": "GLOBAL_EDGE",
              "cdnDomain": "mycdn.edge.naverncp.com",
              "profileId": 299,
              "cdnInstanceNo": 1541959,
              "regionType": "KOREA"
            },
            "qualitySetId": 4,
            "envType": "REAL",
            "outputProtocol": "HLS",
            "drmEnabledYn": true,
            "drm": {
                "siteId": "drm-20231115142326-nHyNw",
                "contentId": "my-Test-Multidrm"
            }
        }
        HTTP

        Response example

        HTTP/1.1 200 OK
        Server: nginx
        Date: Fri, 26 Feb 2021 09:53:32 GMT
        Content-Type: application/json;charset=utf-8
        Connection: keep-alive
        Access-Control-Allow-Origin: *
        x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
        
        {
          "content": {
            "channelName": "myTestChannel",
            "cdn": {
              "createCdn": false,
              "cdnType": "GLOBAL_EDGE",
              "cdnDomain": "mycdn.edge.naverncp.com",
              "profileId": 299,
              "cdnInstanceNo": 1541959,
              "regionType": "KOREA"
            },
            "qualitySetId": 4,
            "envType": "REAL",
            "outputProtocol": "HLS",
            "channelId": "ls-20211122220557-mUv3r",
            "type": "VOD",
            "drmEnabledYn": true,
            "drm": {
                "siteId": "drm-20231115142326-nHyNw",
                "contentId": "my-Test-Multidrm"
            }
          }
        }
        HTTP

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.