ExVideoFactory v0.3.4 ExVideoFactory View Source
Elixir wrapper for FranceTélévisions Video Factory API.
Link to this section Summary
Functions
Get the list of channels
Get the list of files on FTP server based on Video
diffusion identifier
Get the list of files on FTP server based on Video
identifier
Get the list of HTTP URLs for TTML contents based on Video
identifier
Get the list of regions
Get the list of types
Get the list of videos
Link to this section Functions
Get the list of channels
.
Response example
%{
"channels": [
%{
"id": "saint-pierre-et-miquelon-1ere",
"label": "Saint-Pierre et Miquelon 1ère",
"region": %{
"id": "saint-pierre-et-miquelon",
"label": "Saint-Pierre et Miquelon"
"code": "SPM",
"time_zone": "America/Miquelon"
},
"tags": ["outremer"]
},
...
],
"size": 10,
"total": 30
}
Get the list of files on FTP server based on Video
diffusion identifier.
Response example
[
%{
format: "hds_akamai",
urls: []
},
%{
format: "m3u8-download",
urls: [
"/ftp/file/path/quality_1.mp4",
"/ftp/file/path/quality_2.mp4",
"/ftp/file/path/quality_3.mp4",
"/ftp/file/path/quality_4.mp4"
]
},
%{
format: "hls_v5_os",
urls: [
"/ftp/file/path/quality_1.mp4",
"/ftp/file/path/quality_2.mp4",
"/ftp/file/path/quality_3.mp4",
"/ftp/file/path/quality_4.mp4",
"/ftp/file/path/quality_5.mp4"
]
}
]
Get the list of files on FTP server based on Video
identifier.
Response example
[
"/ftp/file/path/quality_1.mp4",
"/ftp/file/path/quality_2.mp4",
"/ftp/file/path/quality_3.mp4",
"/ftp/file/path/quality_4.mp4",
"/ftp/file/path/quality_5.mp4",
]
Get the list of HTTP URLs for TTML contents based on Video
identifier.
Response example
[
"https://sample-server.com/some/path/caption.ttml",
]
Get the list of regions
.
Response example
%{
regions: [
%{
"id": "saint-pierre-et-miquelon",
"label": "Saint-Pierre et Miquelon",
"code": "SPM",
"time_zone": "America/Miquelon"
},
...
],
size: 10,
total: 12
}
Get the list of types
.
Response example
%{
types: [
%{
"id": "bande-annonce",
"label": "Bande-Annonce"
},
...
],
size: 10,
total: 24
}
Get the list of videos
.
Options
query
: Map of parameters to filter the query- q: query string in title, additional_title, original_title (case insensitive)
- qid: filter with the video identifier
- page: page index
- per_page: number of items per page
- etc.
Response example
%{
videos: [
%{
"id": "978f7146-41e3-11e6-8153-000d3a23d482",
"created_at": "2015-09-16T10:55:12.200+02:00",
"updated_at": "2015-09-16T10:55:12.200+02:00",
"created_by": nil,
"created_via": "import-plurimedia-epg",
"title": "Amour, gloire et beauté",
"additional_title": "La vengeance de Samantha",
"category": %{
"id": "series-fictions",
"label": "séries & fictions"
},
...
"images": [%{image}, %{image}, ...],
"licensing": "svod",
"embeddable": true,
...
"platforms": %{
"ftv": %{ ... },
"bouygues": %{ ... },
"orange": %{ ... },
...
}
"groups": [
%{
"id": "ea2bed61-47e0-4116-bf8c-33c375fd9030",
"label": "Amour, gloire et beauté - Saison 13",
...
"images": [%{image}, %{image}, ...],
},
...
]
},
...
],
size: 10,
offset: 0,
total: 16238
}