@jellyfin/sdk
Version:
A TypeScript SDK for Jellyfin.
26 lines (25 loc) • 1.05 kB
TypeScript
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import type { DeviceProfile } from '../generated-client/models/device-profile';
/**
* Options parameters to build profiles
* @export
* @interface DeviceProfileGeneratorOptions
*/
export interface DeviceProfileGeneratorOptions {
/**
* Deliver SSA subtitles externally instead of requiring a burn in
*/
ssaExternal?: boolean;
}
/**
* Generates a device profile based on a few options and the current browser capabilites
* @exports
* @param {DeviceProfileGeneratorOptions} options - Options to pass to the different profiles generators
* @param {HTMLVideoElement} videoElement - Optionnal HTML video element to use, else it'll create one
* @returns A detected device profile
*/
export declare const getBrowserDeviceProfile: (options?: DeviceProfileGeneratorOptions, videoElement?: HTMLVideoElement) => DeviceProfile;