Please update the real time media sample to support joining Teams meetings using the shorter URL in the form of https://teams.microsoft.com/meet/meeting_id?p=HashedPasscode, as announced here and here. The new format is now the default for "Meet Now" and is being rolled out to meetings scheduled in calendar.
Note: Get onlineMeeting API can fetch the long URL format by the short version. But it requires delegated permission of the meeting owner, which we don't know from the shorter URL.