How can manually write a function which is equivalent to toURL()in javascript?
The media stream is converted to a url string in react-native-webrtc as streamURL prop.
What is the definition of that toURL() and how can I write the conversion manually?
Thanks in advance