Flavius Andreiis there a way to start a call on audio and later add a video track?
Flavius AndreipeerTrackAdded is fired only the first time, when the initial call is created…
Lanceno
Lancesoon™ though. the published jingle engine isnt the one i want to use for it
Flavius Andreiuhm..
Flavius Andreiso… my option would be to hangup and call again, with video
Flavius Andreithanks
Lanceor a second session
Flavius Andreioh
Flavius Andreia second session
Flavius Andreiso, right now i'm using an older stanza.browser.js from a jingle example of yours + ionic5 which is using angular 8, all on ts 3.4.3
Flavius Andrei+ stanza types i modified a bit to prevent some ts 3.7.2 errors
Flavius Andreiis there a guide somewhere to follow to build the latest stanzajs for browser in order to give it a spin?
Lancedo you have the repo checked out?
Lancenpm run build
Flavius Andreiangular 6 removed support for node polyfills so websocket connection to xmpp isn't working, with your latest stanzajs if i install it with npm in my project
Lancewill create a dist directory with the browserjs file in there
Flavius Andreiand about the types? :)
Flavius Andreithose are killing me :)
Flavius Andreiactually, i guess i could use your latest types and just add // @ts-ignore on the lines unsupported by ts3.4.2...
Lancethe dist/npm directory is what gets sent to npm. all the d.ts files are scattered in there wherever tsc leaves them
Flavius Andreihmm
Flavius Andreihttps://github.com/legastero/stanza/blob/master/src/jingle/MediaSession.ts#L58-L70
Flavius Andreii could use that to add new tracks
Flavius Andreialso if a user switches cameras…
Flavius Andreisomething like videoSender.replaceTrack(stream.getVideoTracks()[0]);
LancereplaceTrack will work, since it won't need negotiation
Flavius Andreithanks
Flavius Andreishould i create a stanzajs folder in node_modules in my project and put all the contents from dist/npm in it?
Flavius Andreito use your types?
Flavius Andreiright now i have node_modules/@types/stanzaio where i have your modified types
Lancethat sounds reasonable to me
Flavius Andreiyup, ts breaking changes :)
Flavius AndreiAn accessor cannot be declared in an ambient context.
Flavius Andreii mean
Flavius Andreinode_modules/@types/stanza-types/jingle/Session.d.ts:42:9 - error TS1086: An accessor cannot be declared in an ambient context.
Flavius Andreias a workaround i'd write this get text(): string; as readonly text: string;
Flavius Andreiuhm… i see no solution for the setters though…
Flavius Andreiis there a point to this?
Flavius Andreiget started(): boolean;
set started(value: boolean);
Flavius Andreiin StreamManagement
Flavius Andreishould be started(value: boolean): boolean
Flavius Andreisince it has getter and setter
Flavius Andreione last question :)
Flavius Andreithe ask?: boolean; property on RosterItem is the equivalent of subscription === 'pending'?