import MyInfoStore from "../stores/MyInfoStore" ; import { MediaSource } from "@bitlink/common" ; class MyInfoService { static reset ( ) { MyInfoStore . chosenName = undefined ; MyInfoStore . participant = undefined ; } static pause ( source ) { MyInfoStore . producers [ source ] ?. pause ( ) ; MyInfoStore . participant ! . mediaState [ source ] = false ; } static resume ( source ) { MyInfoStore . producers [ source ] ?. resume ( ) ; MyInfoStore . participant ! . mediaState [ source ] = true ; } static close ( source ) { MyInfoStore . producers [ source ] ?. close ( ) ; MyInfoStore . producers [ source ] = null ; MyInfoStore . participant ! . mediaState [ source ] = false ; } } export default MyInfoService ;