Fixed icon renderer bug
This commit is contained in:
parent
dd67527c64
commit
a77bd89e15
4 changed files with 13 additions and 15 deletions
|
@ -24,7 +24,7 @@ function generate_declaration() {
|
|||
|
||||
#Generate the loader definitions first
|
||||
app_declaration="../declarations/shared-app/"
|
||||
generate_declaration dtsconfig_app.json ${app_declaration}
|
||||
generate_declaration tsconfig.declarations.json ${app_declaration}
|
||||
|
||||
cp -r svg-sprites "../declarations/svg-sprites"
|
||||
exit 0
|
|
@ -81,22 +81,11 @@ export class SdpProcessor {
|
|||
sdpString = sdpString.replace(/profile-level-id=4325407/g, "profile-level-id=42e01f");
|
||||
|
||||
const sdp = sdpTransform.parse(sdpString);
|
||||
//sdp.media.forEach(media => media.candidates = []);
|
||||
//sdp.origin.address = "127.0.0.1";
|
||||
this.rtpRemoteChannelMapping = SdpProcessor.generateRtpSSrcMapping(sdp);
|
||||
|
||||
return sdpTransform.write(sdp);
|
||||
}
|
||||
|
||||
/*
|
||||
getCandidates(sdpString: string) : string[] {
|
||||
const sdp = sdpTransform.parse(sdpString);
|
||||
sdp.media = [sdp.media[0]];
|
||||
sdpTransform.write(sdp).split("\r\n")
|
||||
.filter(line => line.startsWith("a"))
|
||||
}
|
||||
*/
|
||||
|
||||
processOutgoingSdp(sdpString: string, _mode: "offer" | "answer") : string {
|
||||
const sdp = sdpTransform.parse(sdpString);
|
||||
|
||||
|
|
|
@ -46,13 +46,22 @@ export async function spawnVideoSourceSelectModal(type: VideoBroadcastType, sele
|
|||
});
|
||||
|
||||
let refSource: { source: VideoSource } = { source: undefined };
|
||||
controller.events.on("action_start", () => refSource.source = controller.getCurrentSource()?.ref());
|
||||
controller.events.on("action_start", () => {
|
||||
refSource.source?.deref();
|
||||
refSource.source = controller.getCurrentSource()?.ref();
|
||||
});
|
||||
|
||||
await new Promise(resolve => {
|
||||
if(defaultSelectSource && selectMode === "quick") {
|
||||
controller.events.one("notify_video_preview", event => {
|
||||
const callbackRemove = controller.events.on("notify_video_preview", event => {
|
||||
if(event.status.status === "error") {
|
||||
callbackRemove();
|
||||
}
|
||||
|
||||
if(event.status.status === "preview") {
|
||||
/* we've successfully selected something */
|
||||
refSource.source = controller.getCurrentSource()?.ref();
|
||||
modal.hide();
|
||||
modal.destroy();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue