Players
Create a player
This endpoint allows you to create a new player.
post/1/videos/{channel}/players
Path parameters
channelinteger required
The unique identifier (ID) of the channel to request.
Query parameters
withstring
Optional : Allows loading additional data about a resource, which may include related resources.
account_idinteger required
Account identifier
The account identifier
Request body
Example request
{
"ads_url": "\"Hello world ! 😊\"",
"control_active_color": "\"#1a2b3c\"",
"control_color": "\"#1a2b3c\"",
"controlbar_color": "\"#1a2b3c\"",
"countdown_days": "\"Hello world ! 😊\"",
"countdown_hours": "\"Hello world ! 😊\"",
"countdown_minutes": "\"Hello world ! 😊\"",
"countdown_seconds": "\"Hello world ! 😊\"",
"countdown_txt": "\"Hello world ! 😊\"",
"description": "\"Hello world ! 😊\"",
"facebook_back_link": "\"Hello world ! 😊\"",
"geo_ip_img": "\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...\" or \"https://storage5.infomaniak.com/...\"",
"interrupt_img": "\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...\" or \"https://storage5.infomaniak.com/...\"",
"logo_img": "\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...\" or \"https://storage5.infomaniak.com/...\"",
"name": "\"Hello world ! 😊\"",
"preload_img": "\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...\" or \"https://storage5.infomaniak.com/...\"",
"restrict_img": "\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...\" or \"https://storage5.infomaniak.com/...\"",
"title": "\"Hello world ! 😊\"",
"twitter_back_link": "\"Hello world ! 😊\"",
"twitter_related": "\"Hello world ! 😊\"",
"twitter_via": "\"Hello world ! 😊\""
}Response
Created
Example response
{
"result": "success",
"data": {
"name": "MyRadioPlayer",
"width": 1280,
"height": 720,
"logo_img": "https://static.infomaniak.ch/configvideo/video-streaming-v2/private/{channel}/players/{player}/logo.png",
"logo_percentage": 50,
"logo_margin_top": 50,
"logo_margin_left": 50,
"control_color": "#FFFFFF",
"controlbar_color": "#000000",
"control_active_color": "#0098FF",
"interrupt_img": "https://static.infomaniak.ch/configvideo/video-streaming-v2/private/{channel}/players/{player}/interrupted.png",
"restrict_img": "https://static.infomaniak.ch/configvideo/video-streaming-v2/private/{channel}/players/{player}/unauthorized.png",
"facebook_back_link": "my-lovely-stream.ch",
"twitter_via": "MyAccount",
"twitter_back_link": "my-lovely-stream.ch",
"twitter_related": "infomaniak video live",
"sound_percentage": 50,
"channel": {
"id": "1",
"channel_id": 69001
},
"integrations": [
{
"type": "hls",
"url": "https://maniak_tv.vedge.infomaniak.com/livecast/ik:maniak_tv/manifest.f4m",
"stream_id": "maniak_tv"
}
]
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.