Skip to content

Extend current video upload API with byte array source #2

@Hixon10

Description

@Hixon10

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions