Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Dec 29, 2022
1 parent 97dc07c commit a1a9b69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/request/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ export const enum AdminCommands {

export const enum VideoCommands {
VIDEO_UPLOAD = 240,
VIDEO_STATUS = 241,
VIDEO_RESULT = 242,
VIDEO_STATUS = 242,
VIDEO_RESULT = 244,
}
4 changes: 2 additions & 2 deletions src/videoclient.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ClientBase } from './clientbase';
import { IFaceXRequestBuilder, IRemoteTransport } from './interfaces';
import { SvcClientRequestEncoder } from './encoders/svcclient';
import { ClientRequestEncoder } from './encoders/client';
import { VideoCommands } from './request/commands';
import * as R from './responses';

type VideoType = Buffer | string | NodeJS.ReadableStream;

export class VideoClient extends ClientBase {
public constructor(url: string, transport: IRemoteTransport, requestBuilder: IFaceXRequestBuilder) {
super(url, transport, new SvcClientRequestEncoder(), requestBuilder);
super(url, transport, new ClientRequestEncoder(), requestBuilder);
}

public async uploadVideo(video: VideoType): Promise<R.VideoUploadAck> {
Expand Down

0 comments on commit a1a9b69

Please sign in to comment.