|
| 1 | +Create: |
| 2 | + parameters: |
| 3 | + - name: videoId |
| 4 | + in: path |
| 5 | + required: true |
| 6 | + schema: { type: string } |
| 7 | + post: |
| 8 | + tags: [android-playback] |
| 9 | + summary: Create an Android-only YouTube VOD playback session |
| 10 | + description: Active livestreams are rejected. Media remains demand-driven after the complete virtual index is ready. The response includes the authoritative subtitle inventory before Media3 prepares the item. |
| 11 | + requestBody: |
| 12 | + required: false |
| 13 | + content: |
| 14 | + application/json: |
| 15 | + schema: { $ref: ../components/android-playback.yaml#/AndroidPlaybackCreateRequest } |
| 16 | + responses: |
| 17 | + '200': { $ref: '#/components/responses/ReadySession' } |
| 18 | + '202': { $ref: '#/components/responses/PreparingSession' } |
| 19 | + '400': { $ref: ../components/common.yaml#/JsonError } |
| 20 | + '401': { $ref: ../components/common.yaml#/JsonError } |
| 21 | + '403': { $ref: ../components/common.yaml#/JsonError } |
| 22 | + '422': { $ref: ../components/common.yaml#/JsonError } |
| 23 | + '503': { $ref: ../components/common.yaml#/JsonError } |
| 24 | +Seek: |
| 25 | + parameters: |
| 26 | + - $ref: '#/components/parameters/SessionId' |
| 27 | + post: |
| 28 | + tags: [android-playback] |
| 29 | + summary: Reposition an Android VOD playback session |
| 30 | + description: The session ID and selected formats stay stable while the generation increments. |
| 31 | + requestBody: |
| 32 | + required: true |
| 33 | + content: |
| 34 | + application/json: |
| 35 | + schema: { $ref: ../components/android-playback.yaml#/AndroidPlaybackSeekRequest } |
| 36 | + responses: |
| 37 | + '200': { $ref: '#/components/responses/ReadySession' } |
| 38 | + '202': { $ref: '#/components/responses/PreparingSession' } |
| 39 | + '400': { $ref: ../components/common.yaml#/JsonError } |
| 40 | + '404': { $ref: ../components/common.yaml#/JsonError } |
| 41 | + '409': { $ref: ../components/common.yaml#/JsonError } |
| 42 | + '410': { $ref: ../components/common.yaml#/JsonError } |
| 43 | + '422': { $ref: ../components/common.yaml#/JsonError } |
| 44 | +Manifest: |
| 45 | + parameters: |
| 46 | + - $ref: '#/components/parameters/SessionId' |
| 47 | + get: |
| 48 | + tags: [android-playback] |
| 49 | + summary: Get the complete static DASH presentation for an Android VOD session |
| 50 | + responses: |
| 51 | + '200': |
| 52 | + description: Complete standards-compatible static DASH MPD. |
| 53 | + headers: |
| 54 | + Cache-Control: |
| 55 | + schema: { type: string, example: no-store } |
| 56 | + content: |
| 57 | + application/dash+xml: |
| 58 | + schema: { type: string } |
| 59 | + '202': { $ref: '#/components/responses/PreparingSession' } |
| 60 | + '404': { $ref: ../components/common.yaml#/JsonError } |
| 61 | + '410': { $ref: ../components/common.yaml#/JsonError } |
| 62 | + '422': { $ref: ../components/common.yaml#/JsonError } |
| 63 | +Subtitle: |
| 64 | + parameters: |
| 65 | + - $ref: '#/components/parameters/SessionId' |
| 66 | + - $ref: '#/components/parameters/TrackId' |
| 67 | + get: |
| 68 | + tags: [android-playback] |
| 69 | + summary: Get one session-scoped Android subtitle as UTF-8 WebVTT |
| 70 | + description: The caller must use the same account context that created the playback session. The resource remains valid across seek generations. |
| 71 | + responses: |
| 72 | + '200': |
| 73 | + description: Complete UTF-8 WebVTT subtitle document. |
| 74 | + headers: |
| 75 | + Cache-Control: |
| 76 | + schema: { type: string, example: no-store } |
| 77 | + content: |
| 78 | + text/vtt: |
| 79 | + schema: { type: string } |
| 80 | + '401': { $ref: ../components/common.yaml#/JsonError } |
| 81 | + '404': { $ref: ../components/common.yaml#/JsonError } |
| 82 | + '410': { $ref: ../components/common.yaml#/JsonError } |
| 83 | + '422': { $ref: ../components/common.yaml#/JsonError } |
| 84 | + '503': { $ref: ../components/common.yaml#/JsonError } |
| 85 | +Initialization: |
| 86 | + parameters: |
| 87 | + - $ref: '#/components/parameters/SessionId' |
| 88 | + - $ref: '#/components/parameters/Itag' |
| 89 | + - $ref: '#/components/parameters/SessionQuery' |
| 90 | + - $ref: '#/components/parameters/Generation' |
| 91 | + get: |
| 92 | + tags: [android-playback] |
| 93 | + summary: Get initialization bytes for a selected Android playback track |
| 94 | + responses: |
| 95 | + '200': { description: Initialization bytes. } |
| 96 | + '202': { $ref: '#/components/responses/PreparingSession' } |
| 97 | + '206': { description: Partial initialization bytes. } |
| 98 | + '400': { $ref: ../components/common.yaml#/JsonError } |
| 99 | + '404': { $ref: ../components/common.yaml#/JsonError } |
| 100 | + '409': { $ref: ../components/common.yaml#/JsonError } |
| 101 | + '410': { $ref: ../components/common.yaml#/JsonError } |
| 102 | +Segment: |
| 103 | + parameters: |
| 104 | + - $ref: '#/components/parameters/SessionId' |
| 105 | + - $ref: '#/components/parameters/Itag' |
| 106 | + - name: sequence |
| 107 | + in: path |
| 108 | + required: true |
| 109 | + schema: { type: integer, minimum: 1 } |
| 110 | + - $ref: '#/components/parameters/SessionQuery' |
| 111 | + - $ref: '#/components/parameters/Generation' |
| 112 | + get: |
| 113 | + tags: [android-playback] |
| 114 | + summary: Get one demand-driven media segment for an Android playback track |
| 115 | + responses: |
| 116 | + '200': { description: Media segment bytes. } |
| 117 | + '202': { $ref: '#/components/responses/PreparingSession' } |
| 118 | + '206': { description: Partial media segment bytes. } |
| 119 | + '400': { $ref: ../components/common.yaml#/JsonError } |
| 120 | + '404': { $ref: ../components/common.yaml#/JsonError } |
| 121 | + '409': { $ref: ../components/common.yaml#/JsonError } |
| 122 | + '410': { $ref: ../components/common.yaml#/JsonError } |
| 123 | +components: |
| 124 | + parameters: |
| 125 | + SessionId: |
| 126 | + name: sessionId |
| 127 | + in: path |
| 128 | + required: true |
| 129 | + schema: { type: string } |
| 130 | + Itag: |
| 131 | + name: itag |
| 132 | + in: path |
| 133 | + required: true |
| 134 | + schema: { type: integer } |
| 135 | + TrackId: |
| 136 | + name: trackId |
| 137 | + in: path |
| 138 | + required: true |
| 139 | + schema: { type: string } |
| 140 | + SessionQuery: |
| 141 | + name: session |
| 142 | + in: query |
| 143 | + required: true |
| 144 | + schema: { type: string } |
| 145 | + Generation: |
| 146 | + name: generation |
| 147 | + in: query |
| 148 | + required: true |
| 149 | + schema: { type: integer, format: int64, minimum: 0 } |
| 150 | + responses: |
| 151 | + ReadySession: |
| 152 | + description: Playback session with a complete VOD presentation. |
| 153 | + content: |
| 154 | + application/json: |
| 155 | + schema: { $ref: ../components/android-playback.yaml#/AndroidPlaybackResponse } |
| 156 | + PreparingSession: |
| 157 | + description: The exact virtual segment index or requested bytes are still preparing. |
| 158 | + content: |
| 159 | + application/json: |
| 160 | + schema: { $ref: ../components/android-playback.yaml#/AndroidPlaybackResponse } |
0 commit comments