Closed Lionardo closed 4 months ago
When you setstreamId(newStreamId);
inside of handleConnectClick
, the state does not change quickly enough for that variable to make it inside of the API url. I assigned it to a local variable in that function and was able to get the connection status.
I unfortunately ran out of credits after that and could not test further. If you find an end-to-end solution, please update this post with it 🤝
@AndreLCanada yes I fixed that. Now for some reason the onTrack function is never really applied to
peerConnection.addEventListener("track", onTrack, true);
is there an official react implementation of this demo?
is there an official react implementation of this demo?
Would love to see that from the Team!
This is a React app https://chat.d-id.com/, they should really release that code
@Lionardo did you manage to fix the issue with ontrack not working? It seems to work as soon as you do initialise the peer connection
The team released ai agents and there is a demo in React. It uses a similar concept to the streams. I adapted this code and it worked https://github.com/de-id/agents-sdk/blob/main/src/createStreamingManager.ts
thanks woozay
When you
setstreamId(newStreamId);
inside ofhandleConnectClick
, the state does not change quickly enough for that variable to make it inside of the API url. I assigned it to a local variable in that function and was able to get the connection status.I unfortunately ran out of credits after that and could not test further. If you find an end-to-end solution, please update this post with it 🤝
Hi,
I’m currently trying to test agents using talk streams in a Flutter application, similar to the demo, but I’ve run out of credits. Is there a way to test agents without credits? Do we need credits to test it, or is there an alternative method for development and testing purposes?
Any help would be greatly appreciated!
I tried to convert the convert the example to a react.js component and everything seems to be fine because I get no errors although the stream doesn't show the video or audio.
component: