do not allow non-admins to register tokens with admin scopes
[akkoma] / test / fixtures / peertube / video-object-mpegURL-only.json
1 {
2 "type": "Create",
3 "id": "https://peertube.stream/videos/watch/abece3c3-b9c6-47f4-8040-f3eed8c602e6/activity",
4 "actor": "https://peertube.stream/accounts/createurs",
5 "object": {
6 "type": "Video",
7 "id": "https://peertube.stream/videos/watch/abece3c3-b9c6-47f4-8040-f3eed8c602e6",
8 "name": "Vu du 20/02/21 : \"Planète Mars 2050\"",
9 "duration": "PT385S",
10 "uuid": "abece3c3-b9c6-47f4-8040-f3eed8c602e6",
11 "tag": [
12 {
13 "type": "Hashtag",
14 "name": "France3"
15 },
16 {
17 "type": "Hashtag",
18 "name": "lezapping"
19 }
20 ],
21 "category": {
22 "identifier": "11",
23 "name": "News & Politics"
24 },
25 "language": {
26 "identifier": "fr",
27 "name": "French"
28 },
29 "views": 5,
30 "sensitive": false,
31 "waitTranscoding": false,
32 "isLiveBroadcast": false,
33 "liveSaveReplay": null,
34 "permanentLive": null,
35 "state": 1,
36 "commentsEnabled": true,
37 "downloadEnabled": false,
38 "published": "2021-02-20T17:04:54.278Z",
39 "originallyPublishedAt": "2021-02-19T23:00:00.000Z",
40 "updated": "2021-02-21T20:01:11.189Z",
41 "mediaType": "text/markdown",
42 "content": "Un regard impertinent et libre, orchestré par Patrick Menais et son équipe, sur le monde de l’image.\r\n\r\nEn avant-première du lundi au samedi à 17h00 sur Facebook, Twitter et YouTube.\r\n\r\nDu lundi au samedi à 20h00 sur France 3.\r\n\r\nhttps://www.facebook.com/vufrancetv\r\nhttps://twitter.com/VuFrancetv",
43 "support": "Suivre VU :\r\n- Twitter : https://twitter.com/vufrancetv\r\n- Facebook :https://www.facebook.com/vufrancetv/\r\n- Site : https://www.france.tv/france-3/vu/",
44 "subtitleLanguage": [],
45 "icon": [
46 {
47 "type": "Image",
48 "url": "https://peertube.stream/static/thumbnails/abece3c3-b9c6-47f4-8040-f3eed8c602e6.jpg",
49 "mediaType": "image/jpeg",
50 "width": 223,
51 "height": 122
52 },
53 {
54 "type": "Image",
55 "url": "https://peertube.stream/lazy-static/previews/abece3c3-b9c6-47f4-8040-f3eed8c602e6.jpg",
56 "mediaType": "image/jpeg",
57 "width": 850,
58 "height": 480
59 }
60 ],
61 "url": [
62 {
63 "type": "Link",
64 "mediaType": "text/html",
65 "href": "https://peertube.stream/videos/watch/abece3c3-b9c6-47f4-8040-f3eed8c602e6"
66 },
67 {
68 "type": "Link",
69 "mediaType": "application/x-mpegURL",
70 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/master.m3u8",
71 "tag": [
72 {
73 "type": "Infohash",
74 "name": "00bfce9595e1655d8696b60e19ca25c34be5fa63"
75 },
76 {
77 "type": "Infohash",
78 "name": "256c21b65d5e0f944b4b79d8e0cbc55c9d906807"
79 },
80 {
81 "type": "Infohash",
82 "name": "fcd981098c484d0e328927c8fb21ecf986880b7e"
83 },
84 {
85 "type": "Infohash",
86 "name": "f7e01ac566e9fef91cd22514e6c3c256af7a9f5f"
87 },
88 {
89 "type": "Infohash",
90 "name": "42b421fc44d0dceb45ac3f6f6419b07fd570a232"
91 },
92 {
93 "type": "Infohash",
94 "name": "f876c6d6d49ce618a880ca223df54cb29f4b4bfd"
95 },
96 {
97 "type": "Link",
98 "name": "sha256",
99 "mediaType": "application/json",
100 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/segments-sha256.json"
101 },
102 {
103 "type": "Link",
104 "mediaType": "video/mp4",
105 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-1080-fragmented.mp4",
106 "height": 1080,
107 "size": 57888169,
108 "fps": 25
109 },
110 {
111 "type": "Link",
112 "rel": [
113 "metadata",
114 "video/mp4"
115 ],
116 "mediaType": "application/json",
117 "href": "https://peertube.stream/api/v1/videos/abece3c3-b9c6-47f4-8040-f3eed8c602e6/metadata/570040",
118 "height": 1080,
119 "fps": 25
120 },
121 {
122 "type": "Link",
123 "mediaType": "application/x-bittorrent",
124 "href": "https://peertube.stream/static/torrents/abece3c3-b9c6-47f4-8040-f3eed8c602e6-1080-hls.torrent",
125 "height": 1080
126 },
127 {
128 "type": "Link",
129 "mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
130 "href": "magnet:?xs=https%3A%2F%2Fpeertube.stream%2Fstatic%2Ftorrents%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-1080-hls.torrent&xt=urn:btih:68af82ebcd9df8335e407b755f38f5fd39c8a6a4&dn=Vu+du+20%2F02%2F21+%3A+%22Plan%C3%A8te+Mars+2050%22&tr=wss%3A%2F%2Fpeertube.stream%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fpeertube.stream%2Ftracker%2Fannounce&ws=https%3A%2F%2Fpeertube.stream%2Fstatic%2Fstreaming-playlists%2Fhls%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-1080-fragmented.mp4",
131 "height": 1080
132 },
133 {
134 "type": "Link",
135 "mediaType": "video/mp4",
136 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-720-fragmented.mp4",
137 "height": 720,
138 "size": 45165123,
139 "fps": 25
140 },
141 {
142 "type": "Link",
143 "rel": [
144 "metadata",
145 "video/mp4"
146 ],
147 "mediaType": "application/json",
148 "href": "https://peertube.stream/api/v1/videos/abece3c3-b9c6-47f4-8040-f3eed8c602e6/metadata/570056",
149 "height": 720,
150 "fps": 25
151 },
152 {
153 "type": "Link",
154 "mediaType": "application/x-bittorrent",
155 "href": "https://peertube.stream/static/torrents/abece3c3-b9c6-47f4-8040-f3eed8c602e6-720-hls.torrent",
156 "height": 720
157 },
158 {
159 "type": "Link",
160 "mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
161 "href": "magnet:?xs=https%3A%2F%2Fpeertube.stream%2Fstatic%2Ftorrents%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-720-hls.torrent&xt=urn:btih:8450928a4ffb2a4c5f927a163487c48c05f6e700&dn=Vu+du+20%2F02%2F21+%3A+%22Plan%C3%A8te+Mars+2050%22&tr=wss%3A%2F%2Fpeertube.stream%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fpeertube.stream%2Ftracker%2Fannounce&ws=https%3A%2F%2Fpeertube.stream%2Fstatic%2Fstreaming-playlists%2Fhls%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-720-fragmented.mp4",
162 "height": 720
163 },
164 {
165 "type": "Link",
166 "mediaType": "video/mp4",
167 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-480-fragmented.mp4",
168 "height": 480,
169 "size": 29618534,
170 "fps": 25
171 },
172 {
173 "type": "Link",
174 "rel": [
175 "metadata",
176 "video/mp4"
177 ],
178 "mediaType": "application/json",
179 "href": "https://peertube.stream/api/v1/videos/abece3c3-b9c6-47f4-8040-f3eed8c602e6/metadata/570042",
180 "height": 480,
181 "fps": 25
182 },
183 {
184 "type": "Link",
185 "mediaType": "application/x-bittorrent",
186 "href": "https://peertube.stream/static/torrents/abece3c3-b9c6-47f4-8040-f3eed8c602e6-480-hls.torrent",
187 "height": 480
188 },
189 {
190 "type": "Link",
191 "mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
192 "href": "magnet:?xs=https%3A%2F%2Fpeertube.stream%2Fstatic%2Ftorrents%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-480-hls.torrent&xt=urn:btih:39e11181db5f376aa78c94bffcb9ccf2f4bca715&dn=Vu+du+20%2F02%2F21+%3A+%22Plan%C3%A8te+Mars+2050%22&tr=wss%3A%2F%2Fpeertube.stream%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fpeertube.stream%2Ftracker%2Fannounce&ws=https%3A%2F%2Fpeertube.stream%2Fstatic%2Fstreaming-playlists%2Fhls%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-480-fragmented.mp4",
193 "height": 480
194 },
195 {
196 "type": "Link",
197 "mediaType": "video/mp4",
198 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-360-fragmented.mp4",
199 "height": 360,
200 "size": 21771466,
201 "fps": 25
202 },
203 {
204 "type": "Link",
205 "rel": [
206 "metadata",
207 "video/mp4"
208 ],
209 "mediaType": "application/json",
210 "href": "https://peertube.stream/api/v1/videos/abece3c3-b9c6-47f4-8040-f3eed8c602e6/metadata/570043",
211 "height": 360,
212 "fps": 25
213 },
214 {
215 "type": "Link",
216 "mediaType": "application/x-bittorrent",
217 "href": "https://peertube.stream/static/torrents/abece3c3-b9c6-47f4-8040-f3eed8c602e6-360-hls.torrent",
218 "height": 360
219 },
220 {
221 "type": "Link",
222 "mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
223 "href": "magnet:?xs=https%3A%2F%2Fpeertube.stream%2Fstatic%2Ftorrents%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-360-hls.torrent&xt=urn:btih:c33aa52822528e29ffd1a615ebe40450e4c61452&dn=Vu+du+20%2F02%2F21+%3A+%22Plan%C3%A8te+Mars+2050%22&tr=wss%3A%2F%2Fpeertube.stream%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fpeertube.stream%2Ftracker%2Fannounce&ws=https%3A%2F%2Fpeertube.stream%2Fstatic%2Fstreaming-playlists%2Fhls%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-360-fragmented.mp4",
224 "height": 360
225 },
226 {
227 "type": "Link",
228 "mediaType": "video/mp4",
229 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-240-fragmented.mp4",
230 "height": 240,
231 "size": 14856165,
232 "fps": 25
233 },
234 {
235 "type": "Link",
236 "rel": [
237 "metadata",
238 "video/mp4"
239 ],
240 "mediaType": "application/json",
241 "href": "https://peertube.stream/api/v1/videos/abece3c3-b9c6-47f4-8040-f3eed8c602e6/metadata/570057",
242 "height": 240,
243 "fps": 25
244 },
245 {
246 "type": "Link",
247 "mediaType": "application/x-bittorrent",
248 "href": "https://peertube.stream/static/torrents/abece3c3-b9c6-47f4-8040-f3eed8c602e6-240-hls.torrent",
249 "height": 240
250 },
251 {
252 "type": "Link",
253 "mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
254 "href": "magnet:?xs=https%3A%2F%2Fpeertube.stream%2Fstatic%2Ftorrents%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-240-hls.torrent&xt=urn:btih:157e4cc3e9f15c06e995d6c3388539fdda312771&dn=Vu+du+20%2F02%2F21+%3A+%22Plan%C3%A8te+Mars+2050%22&tr=wss%3A%2F%2Fpeertube.stream%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fpeertube.stream%2Ftracker%2Fannounce&ws=https%3A%2F%2Fpeertube.stream%2Fstatic%2Fstreaming-playlists%2Fhls%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-240-fragmented.mp4",
255 "height": 240
256 },
257 {
258 "type": "Link",
259 "mediaType": "video/mp4",
260 "href": "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-0-fragmented.mp4",
261 "height": 0,
262 "size": 6248765,
263 "fps": 0
264 },
265 {
266 "type": "Link",
267 "rel": [
268 "metadata",
269 "video/mp4"
270 ],
271 "mediaType": "application/json",
272 "href": "https://peertube.stream/api/v1/videos/abece3c3-b9c6-47f4-8040-f3eed8c602e6/metadata/570041",
273 "height": 0,
274 "fps": 0
275 },
276 {
277 "type": "Link",
278 "mediaType": "application/x-bittorrent",
279 "href": "https://peertube.stream/static/torrents/abece3c3-b9c6-47f4-8040-f3eed8c602e6-0-hls.torrent",
280 "height": 0
281 },
282 {
283 "type": "Link",
284 "mediaType": "application/x-bittorrent;x-scheme-handler/magnet",
285 "href": "magnet:?xs=https%3A%2F%2Fpeertube.stream%2Fstatic%2Ftorrents%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-0-hls.torrent&xt=urn:btih:abc8dc58903d18cf7ec0c0cef92cc5ffe5cb0b5c&dn=Vu+du+20%2F02%2F21+%3A+%22Plan%C3%A8te+Mars+2050%22&tr=wss%3A%2F%2Fpeertube.stream%3A443%2Ftracker%2Fsocket&tr=https%3A%2F%2Fpeertube.stream%2Ftracker%2Fannounce&ws=https%3A%2F%2Fpeertube.stream%2Fstatic%2Fstreaming-playlists%2Fhls%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6%2Fabece3c3-b9c6-47f4-8040-f3eed8c602e6-0-fragmented.mp4",
286 "height": 0
287 }
288 ]
289 }
290 ],
291 "likes": "https://peertube.stream/videos/watch/abece3c3-b9c6-47f4-8040-f3eed8c602e6/likes",
292 "dislikes": "https://peertube.stream/videos/watch/abece3c3-b9c6-47f4-8040-f3eed8c602e6/dislikes",
293 "shares": "https://peertube.stream/videos/watch/abece3c3-b9c6-47f4-8040-f3eed8c602e6/announces",
294 "comments": "https://peertube.stream/videos/watch/abece3c3-b9c6-47f4-8040-f3eed8c602e6/comments",
295 "attributedTo": [
296 {
297 "type": "Person",
298 "id": "https://peertube.stream/accounts/createurs"
299 },
300 {
301 "type": "Group",
302 "id": "https://peertube.stream/video-channels/vu"
303 }
304 ],
305 "to": [
306 "https://www.w3.org/ns/activitystreams#Public"
307 ],
308 "cc": [
309 "https://peertube.stream/accounts/createurs/followers"
310 ]
311 },
312 "to": [
313 "https://www.w3.org/ns/activitystreams#Public"
314 ],
315 "cc": [
316 "https://peertube.stream/accounts/createurs/followers"
317 ],
318 "@context": [
319 "https://www.w3.org/ns/activitystreams",
320 "https://w3id.org/security/v1",
321 {
322 "RsaSignature2017": "https://w3id.org/security#RsaSignature2017"
323 },
324 {
325 "pt": "https://joinpeertube.org/ns#",
326 "sc": "http://schema.org#",
327 "Hashtag": "as:Hashtag",
328 "uuid": "sc:identifier",
329 "category": "sc:category",
330 "licence": "sc:license",
331 "subtitleLanguage": "sc:subtitleLanguage",
332 "sensitive": "as:sensitive",
333 "language": "sc:inLanguage",
334 "isLiveBroadcast": "sc:isLiveBroadcast",
335 "liveSaveReplay": {
336 "@type": "sc:Boolean",
337 "@id": "pt:liveSaveReplay"
338 },
339 "permanentLive": {
340 "@type": "sc:Boolean",
341 "@id": "pt:permanentLive"
342 },
343 "Infohash": "pt:Infohash",
344 "Playlist": "pt:Playlist",
345 "PlaylistElement": "pt:PlaylistElement",
346 "originallyPublishedAt": "sc:datePublished",
347 "views": {
348 "@type": "sc:Number",
349 "@id": "pt:views"
350 },
351 "state": {
352 "@type": "sc:Number",
353 "@id": "pt:state"
354 },
355 "size": {
356 "@type": "sc:Number",
357 "@id": "pt:size"
358 },
359 "fps": {
360 "@type": "sc:Number",
361 "@id": "pt:fps"
362 },
363 "startTimestamp": {
364 "@type": "sc:Number",
365 "@id": "pt:startTimestamp"
366 },
367 "stopTimestamp": {
368 "@type": "sc:Number",
369 "@id": "pt:stopTimestamp"
370 },
371 "position": {
372 "@type": "sc:Number",
373 "@id": "pt:position"
374 },
375 "commentsEnabled": {
376 "@type": "sc:Boolean",
377 "@id": "pt:commentsEnabled"
378 },
379 "downloadEnabled": {
380 "@type": "sc:Boolean",
381 "@id": "pt:downloadEnabled"
382 },
383 "waitTranscoding": {
384 "@type": "sc:Boolean",
385 "@id": "pt:waitTranscoding"
386 },
387 "support": {
388 "@type": "sc:Text",
389 "@id": "pt:support"
390 },
391 "likes": {
392 "@id": "as:likes",
393 "@type": "@id"
394 },
395 "dislikes": {
396 "@id": "as:dislikes",
397 "@type": "@id"
398 },
399 "playlists": {
400 "@id": "pt:playlists",
401 "@type": "@id"
402 },
403 "shares": {
404 "@id": "as:shares",
405 "@type": "@id"
406 },
407 "comments": {
408 "@id": "as:comments",
409 "@type": "@id"
410 }
411 }
412 ]
413 }