fsd-vod 0.13.3 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +4 -4
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -92,7 +92,7 @@ class VODAdapter {
|
|
|
92
92
|
this._authCache.set(result.VideoId, token, { ttl: token.expiration });
|
|
93
93
|
return `/${result.VideoId}#${token.path}`;
|
|
94
94
|
};
|
|
95
|
-
this.createUploadToken = async (videoId, meta,
|
|
95
|
+
this.createUploadToken = async (videoId, meta, _durationSeconds) => {
|
|
96
96
|
let vid = parseVideoId(videoId);
|
|
97
97
|
let token = this._authCache.get(vid.id);
|
|
98
98
|
debug('getAuth', videoId, token);
|
|
@@ -146,7 +146,7 @@ class VODAdapter {
|
|
|
146
146
|
return result.Video;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
catch (
|
|
149
|
+
catch (_e) { }
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
152
152
|
async getMezzanineInfo(videoId, options) {
|
|
@@ -161,7 +161,7 @@ class VODAdapter {
|
|
|
161
161
|
return result.Mezzanine;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
catch (
|
|
164
|
+
catch (_e) { }
|
|
165
165
|
return null;
|
|
166
166
|
}
|
|
167
167
|
async getPlayInfo(videoId, options) {
|
|
@@ -203,7 +203,7 @@ class VODAdapter {
|
|
|
203
203
|
}
|
|
204
204
|
async createWriteStream(videoId, options) {
|
|
205
205
|
debug('createWriteStream %s', videoId);
|
|
206
|
-
if (options
|
|
206
|
+
if (options?.start)
|
|
207
207
|
throw new Error('fsd-vod read stream does not support start options');
|
|
208
208
|
let token = await this.createUploadTokenWithAutoRefresh(videoId);
|
|
209
209
|
let oss = new simple_oss_client_1.default(token.auth);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fsd-vod",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Aliyun OSS adapter for fsd",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"author": "Liang <liang@miaomo.cc> (https://github.com/liangxingchen)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@alicloud/pop-core": "^1.
|
|
16
|
-
"akita": "^1.0
|
|
17
|
-
"debug": "^4.
|
|
18
|
-
"fsd-oss": "^0.
|
|
19
|
-
"lru-cache": "^
|
|
15
|
+
"@alicloud/pop-core": "^1.8.0",
|
|
16
|
+
"akita": "^1.1.0",
|
|
17
|
+
"debug": "^4.4.0",
|
|
18
|
+
"fsd-oss": "^0.14.0",
|
|
19
|
+
"lru-cache": "^11.0.2"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "74e32bf47242909f040eb6012dda56e5c5a668a0"
|
|
22
22
|
}
|