# Player
# Videos
You can list a Product's videos & videoGroups with the following query:
query ProductVideos {
cms {
products (includeIds: [2]) {
items {
id
name
extension {
... on ProductTVOD {
# Video (for movies)
videos {
items {
id
name
description
thumbnail
}
}
# Video Groups (for tv shows seasons)
videoGroups {
items {
id
name
videos {
items {
id
name
description
thumbnail
}
}
}
}
}
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"data": {
"cms": {
"products": {
"items": [
{
"id": "2",
"name": "Die Hard : belle journée pour mourir",
"extension": {
"videos": {
"items": [
{
"id": "2",
"name": "Film complet",
"description": "",
"thumbnail": "https://d2zjxs699wg3w9.cloudfront.net/img/p/7/7-screen_small.jpg"
}
]
},
"videoGroups": {
"items": []
}
}
}
]
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Access Check
You can check the current access rights of the user for a given video using the following query:
query VideoAccessCheck {
cms {
videos (includeIds: [2]) {
items {
id
name
accessInfo {
streaming
download
maximumWatched # Watch count limit
maximumViewing # Viewers count reached (multiple windows)
qualityHD
qualitySD
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"data": {
"cms": {
"videos": {
"items": [
{
"id": "2",
"name": "Film complet",
"accessInfo": {
"streaming": true,
"download": true,
"maximumWatched": false,
"maximumViewing": false,
"qualityHD": true,
"qualitySD": true
}
}
]
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Player
To retrieve a Player for a Video, use the following query. You might get player: null
with an error and a code if the access is invalid (see previous section).
query Player {
cms {
videos (includeIds: [2]) {
items {
player {
url
}
accessInfo {
streaming
download
maximumWatched
maximumViewing
qualityHD
qualitySD
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"data": {
"cms": {
"videos": {
"items": [
{
"player": {
"url": "https://media.kinow.video/video-player?token=XXX-XXX-XXX-XXX"
},
"accessInfo": {
"streaming": true,
"download": true,
"maximumWatched": false,
"maximumViewing": false,
"qualityHD": true,
"qualitySD": true
}
}
]
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"errors": [
{
"message": "VideoPlayerError",
"locations": [
{
"line": 5,
"column": 9
}
],
"path": [
"cms",
"videos",
"items",
0,
"player"
],
"extensions": {
"code": "VIDEO_PLAYER_ERROR",
"errno": 1
}
}
],
"data": {
"cms": {
"videos": {
"items": [
{
"player": null,
"accessInfo": {
"streaming": false,
"download": false,
"maximumWatched": false,
"maximumViewing": false,
"qualityHD": false,
"qualitySD": false
}
}
]
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Watch History
You can build a watch history with user.watchHistory
, which returns the last seen videos and the position (seek
) of the user in them :
query WatchHistory {
user {
watchHistory {
items {
date
seek
video {
id
name
thumbnail
duration
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"data": {
"user": {
"watchHistory": {
"items": [
{
"date": "2020-08-28T15:30:36.000Z",
"seek": 4.09349,
"video": {
"id": "4",
"name": "Film complet",
"thumbnail": "",
"duration": 102
}
},
//...
]
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
← TVOD