|
Agora Java API Reference for Android
|
9 #pragma once // NOLINT(build/header_guard)
12 #include "AgoraBase.h"
13 #include "AgoraMediaBase.h"
14 #include "AgoraMediaPlayerTypes.h"
15 #include "AgoraRefPtr.h"
21 class IMediaStreamingSourceObserver;
30 enum STREAMING_SRC_ERR {
31 STREAMING_SRC_ERR_NONE = 0,
32 STREAMING_SRC_ERR_UNKNOWN = 1,
33 STREAMING_SRC_ERR_INVALID_PARAM = 2,
34 STREAMING_SRC_ERR_BAD_STATE = 3,
35 STREAMING_SRC_ERR_NO_MEM = 4,
36 STREAMING_SRC_ERR_BUFFER_OVERFLOW = 5,
37 STREAMING_SRC_ERR_BUFFER_UNDERFLOW = 6,
38 STREAMING_SRC_ERR_NOT_FOUND = 7,
39 STREAMING_SRC_ERR_TIMEOUT = 8,
40 STREAMING_SRC_ERR_EXPIRED = 9,
41 STREAMING_SRC_ERR_UNSUPPORTED = 10,
42 STREAMING_SRC_ERR_NOT_EXIST = 11,
43 STREAMING_SRC_ERR_EXIST = 12,
44 STREAMING_SRC_ERR_OPEN = 13,
45 STREAMING_SRC_ERR_CLOSE = 14,
46 STREAMING_SRC_ERR_READ = 15,
47 STREAMING_SRC_ERR_WRITE = 16,
48 STREAMING_SRC_ERR_SEEK = 17,
49 STREAMING_SRC_ERR_EOF = 18,
50 STREAMING_SRC_ERR_CODECOPEN = 19,
51 STREAMING_SRC_ERR_CODECCLOSE = 20,
52 STREAMING_SRC_ERR_CODECPROC = 21,
63 enum STREAMING_SRC_STATE {
64 STREAMING_SRC_STATE_CLOSED = 0,
65 STREAMING_SRC_STATE_OPENING = 1,
66 STREAMING_SRC_STATE_IDLE = 2,
67 STREAMING_SRC_STATE_PLAYING = 3,
68 STREAMING_SRC_STATE_SEEKING = 4,
69 STREAMING_SRC_STATE_EOF = 5,
70 STREAMING_SRC_STATE_ERROR = 6,
111 virtual int open(
const char* url, int64_t start_pos,
bool auto_play =
true) = 0;
213 virtual int seek(int64_t new_pos) = 0;
297 virtual void onStateChanged(STREAMING_SRC_STATE state, STREAMING_SRC_ERR err_code) = 0;
318 virtual void onEofOnce(int64_t progress_ms, int64_t repeat_count) = 0;
Definition: AgoraRefPtr.h:31