spectatr-player-sdk
Version:
A custom video player built with Stencil with Shaka Player integration
17 lines (16 loc) • 563 B
JavaScript
import { fetchAllVideos } from "../services/videoService";
export function format(first, middle, last) {
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
}
export async function getAllVideos(clientId, baseUrl = 'https://api.staging.spectatr.ai/player-sdk') {
if (!clientId) {
console.error('client id is required');
}
try {
return await fetchAllVideos(clientId, baseUrl);
}
catch (error) {
console.error('Error fetching all videos:', error);
}
}
//# sourceMappingURL=utils.js.map