Skip to content

Commit eabee08

Browse files
committed
2 parents 193c9bc + 1206bdd commit eabee08

7 files changed

+9
-217
lines changed

examples/get_metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Qencode\Classes\Metadata;
99

1010
// Replace this with your API key
11-
$apiKey = 'abcde12345';
11+
$apiKey = '1234567890123';
1212
$video_url = 'https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4';
1313

1414
$q = new QencodeApiClient($apiKey);

examples/start_encode.php

Lines changed: 0 additions & 64 deletions
This file was deleted.

examples/start_encode2.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
// Replace this with your API key
1515
$apiKey = '12345678';
16-
$video_url = 'https://qa.qencode.com/static/1.mp4';
16+
//$video_url = 'https://qa.qencode.com/static/1.mp4';
17+
$video_url = 'https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4';
1718

1819
$q = new QencodeApiClient($apiKey);
1920

examples/start_encode2_json.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
$apiKey = '12345678';
1616
$params = '
1717
{"query": {
18-
"source": "https://qa.qencode.com/static/timer.mp4",
18+
"source": "https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4",
19+
"encoder_version": 2,
1920
"format": [
2021
{
2122
"output": "mp4",
@@ -62,4 +63,4 @@
6263

6364
function log_message($msg) {
6465
echo $msg."\n";
65-
}
66+
}

examples/start_encode2_stitch.php

Lines changed: 0 additions & 85 deletions
This file was deleted.

examples/start_encode_stitch.php

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/QencodeApiClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ class QencodeApiClient
2222
private $lastResponseRaw;
2323

2424
private $lastResponse;
25-
26-
public $url = 'https://api.qencode.com/';
25+
// fix "POST //v1/access_token HTTP/1.0"
26+
// public $url = 'https://api.qencode.com/';
27+
public $url = 'https://api.qencode.com';
2728
public $version = 'v1';
2829
private $supported_versions = array('v1', 'v1.1');
2930

0 commit comments

Comments
 (0)