fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
32 lines • 978 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Base_1 = tslib_1.__importDefault(require("../Base"));
/**
* Represents a fortnite news message video
*/
class NewsMessageVideo extends Base_1.default {
/**
* @param client The main client
* @param data The news message video data
*/
constructor(client, data) {
super(client);
this.id = data.videoUID;
this.autoplay = data.videoAutoplay;
this.fullscreen = data.videoFullscreen;
this.loop = data.videoLoop;
this.mute = data.videoMute;
this.streamingEnabled = data.videoStreamingEnabled;
this.videoString = data.videoVideoString;
}
/**
* Downloads the video
* @throws {AxiosError}
*/
async download() {
return this.client.downloadBlurlStream(this.id);
}
}
exports.default = NewsMessageVideo;
//# sourceMappingURL=NewsMessageVideo.js.map