Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend current video upload API with byte array source #2

Open
Hixon10 opened this issue Feb 28, 2021 · 0 comments
Open

Extend current video upload API with byte array source #2

Hixon10 opened this issue Feb 28, 2021 · 0 comments

Comments

@Hixon10
Copy link

Hixon10 commented Feb 28, 2021

Hello,

At present, you have only file based video upload API:

var localFilePath = "path/to/video_file.mov";

// Asynchronously
var response = await jwplatformApi.UploadAsync(videoInfo, localFilePath);

However, there is a case, when you receive file via some API (like REST) from user, and you want to upload this video to https://www.jwplayer.com/. So, you have no this video on your disk, and you have 2 options. Either you need to save user video to the disk before uploading to jwplayer, or you cannot use jwplatformApi.UploadAsync() API.

I would like to have byte array based upload API. It may looks like this:

byte[] fileBytes = ...
var response = await jwplatformApi.UploadAsync(videoInfo, fileBytes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant