// import Twitch from 'twitch-m3u8' import { Entity } from '../../ecs/classes/Entity' // import { getComponent } from '../../ecs/functions/ComponentFunctions' // import LivestreamProxyComponent from '../../scene/components/LivestreamProxyComponent' export const startLivestreamOnServer = async (entity: Entity): Promise => { // const livestreamProxyComponent = getComponent(entity, LivestreamProxyComponent) try { // const dataStream = await Twitch.getStream('hexafield', true) // console.log('startLivestreamOnServer dataStream', dataStream) } catch (e) { // console.error('Failed to get livestream!', e, livestreamProxyComponent.src) } }