Skip to content

Commit

Permalink
Auto Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfriedmann committed Apr 17, 2020
1 parent 6ea1379 commit bb68f07
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 30 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ziggeo PHP Server SDK 0.1.18
# Ziggeo PHP Server SDK 0.1.19

Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only
two lines of code in your site, service or app. This is the PHP Server SDK repository.
Expand Down
50 changes: 22 additions & 28 deletions classes/ZiggeoConfig.php
Original file line number Diff line number Diff line change
@@ -1,41 +1,35 @@

<?php

Class ZiggeoConfig {

public $config;

function __construct() {
$this->config = array(
"regions" => array(
"r1" => "https://srvapi-eu-west-1.ziggeo.com"
),
"server_api_url" => "https://srvapi.ziggeo.com",
"api_regions" => array(
"r1" => "https://api-eu-west-1.ziggeo.com"
),
"api_url" => "https://api-us-east-1.ziggeo.com",
"request_timeout" => 60,
"resilience_factor" => 5,
//change this to represent code that returns if your server does not reach our server for some reason even after few attempts. Can be any valid code that your code can look out for.
"resilience_onfail" => array(
"error" => true
),

public $config;

function __construct() {
$this->config = array(
"regions" => array("r1" => "https://srvapi-eu-west-1.ziggeo.com", ),
"server_api_url" => "https://srvapi.ziggeo.com",
"api_regions" => array("r1" => "https://api-eu-west-1.ziggeo.com", ),
"api_url" => "https://api-us-east-1.ziggeo.com",
"request_timeout" => 60,
"resilience_factor" => 5,
"resilience_onfail" => [ "error" => true ], //change this to represent code that returns if your server does not reach our server for some reason even after few attempts. Can be any valid code that your code can look out for.
//In general you do not need that info, just useful for any debugging
"info" => array(
"progress_show" => true,
"progress_show" => false,
"progress_multiplier" => 1048576, //1 for bytes, 1024 for kb, 1048576 for mb, 1073741824 for gb
"progress_desc" => 'mb' //mb per above
)
);
}
function get($ident) {
return $this->config[$ident];
}
);
}
function get($ident) {
return $this->config[$ident];
}

function set($ident, $value) {
$this->config[$ident] = $value;
return $this;
}
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ziggeo/ziggeophpsdk",
"description": "Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app.",
"version": "0.1.18",
"version": "0.1.19",
"license": "Apache-2.0",
"require" : {
"php": ">=5.3.0",
Expand Down

0 comments on commit bb68f07

Please sign in to comment.