Module 740644

977 characters · in cd7a4e47bd8eccbc.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(t,e,i){i.d(e,{H:()=>n});class n{static mapDiscordToMuxMetadata(t,e){return{env_key:"1qd16mdmdjasipqg3irobln4u",session_id:e,player_name:"discord",player_version:"1.0.0",video_id:t.contentMetadata.contentId,video_title:t.contentMetadata.title,video_duration:t.contentMetadata.durationMs??(null!=t.contentMetadata.durationSec?1e3*t.contentMetadata.durationSec:void 0),video_content_type:t.contentMetadata.contentType,video_series:t.contentMetadata.questId,video_producer:t.contentMetadata.gameId,video_brand:t.contentMetadata.gameName??"Discord",video_cdn:"Cloudflare",video_stream_type:t.contentMetadata.videoStreamType,view_client_application_name:this.getBuildChannel(),view_client_application_version:this.getAppVersion(),viewer_user_id:t.userContext?.userId,viewer_plan:t.userContext?.userTier}}static getAppVersion(){try{return"545032"}catch{return"unknown"}}static getBuildChannel(){try{return window.GLOBAL_ENV?.RELEASE_CHANNEL??"stable"}catch{return"stable"}}}}