Agora Java API Reference for Android

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.DirectCdnStreamingReason Enum Reference

Reasons for the changes in CDN streaming status. More...

## Public Member Functions
int | getValue ()

## Static Public Member Functions
static DirectCdnStreamingReason | fromInt (int v)

## Public Attributes
| OK =(0)
| FAILED =(1)
| AUDIO_PUBLICATION =(2)
| VIDEO_PUBLICATION =(3)
| NET_CONNECT =(4)
| BAD_NAME =(5)

## Detailed Description

Reasons for the changes in CDN streaming status.

Deprecated:
  v4.6.0.

## Member Data Documentation

## ◆ OK

io.agora.rtc2.DirectCdnStreamingReason.OK =(0)

0: No error.

## ◆ FAILED

io.agora.rtc2.DirectCdnStreamingReason.FAILED =(1)

1: A general error; no specific reason. You can try to push the media stream again.

## ◆ AUDIO_PUBLICATION

io.agora.rtc2.DirectCdnStreamingReason.AUDIO_PUBLICATION =(2)

2: An error occurs when pushing audio streams. For example, the local audio capture device is not working properly, is occupied by another process, or does not get the permission required.

## ◆ VIDEO_PUBLICATION

io.agora.rtc2.DirectCdnStreamingReason.VIDEO_PUBLICATION =(3)

3: An error occurs when pushing video streams. For example, the local video capture device is not working properly, is occupied by another process, or does not get the permission required.

## ◆ NET_CONNECT

io.agora.rtc2.DirectCdnStreamingReason.NET_CONNECT =(4)

4: Fails to connect to the CDN.

## ◆ BAD_NAME

io.agora.rtc2.DirectCdnStreamingReason.BAD_NAME =(5)

5: The URL is already being used. Use a new URL for streaming.