Live stream from aws kinesisvideo streams

I need help with streaming a live feed from a raspberry pi through aws kinesis video streams. I’ve went through the documentation and managed to create an RTCPeerConnection and created an offer. I just need an idea of how I am supposed to receive the video track. May I please get an example of how to do this.