The genesyscloud-client-app-sdk service hangs when pushing a play action to the desktop runtime. WebSocket stream emits scripting:step:started but the audio payload doesn’t reach the iframe postMessage handler. Playback interceptor is doing jack all right now, and the console throws TypeError: Cannot read properties of undefined (reading 'streamUrl') at line 42.
- GC Premium App SDK v2.14.3
- Angular 17 strict mode
- Architect flow uses standard
Play Audioblock withmedia_idfrom blob store - RxJS
switchMapunsubscribes after 5s timeout
Does the scripting engine require an explicit include_media: true flag in the desktop config, or is this a known gap in the v2.14.3 client_app_sdk mapping?
this.scriptingService.currentStep$.pipe(
filter(step => step.actionType === 'play'),
switchMap(step => fetchAudioStream(step.mediaId))
).subscribe({
next: url => window.parent.postMessage({ type: 'PLAY_AUDIO', url }, '*'),
error: err => console.error('Scripting playback failed', err)
});