onsip-cordova icon indicating copy to clipboard operation
onsip-cordova copied to clipboard

Can't show video on ios

Open i1020242 opened this issue 7 years ago • 4 comments

I have audio but I didn't see any video(local and remote). How I can show video on view ios This is my media options: var options = { media: { constraints: { audio: true, video: true } , render: { remote: document.querySelector('video#remote'), local: document.querySelector('video#local') } } };

i1020242 avatar Jul 14 '17 08:07 i1020242

hi i1020242, sorry unfortunately I can not help you, I am though curious how you go the audio to work. I can't even install this plugin, I get an error when I do: cordova plugin add https://github.com/onsip/onsip-cordova.git

Can you verify you were able to install using : cordova plugin add https://github.com/onsip/onsip-cordova.git

jonathanhollander avatar Jul 27 '17 16:07 jonathanhollander

I believe it has to do with the fact that it is lacking a package.json. Can anyone on the onsip staff aid with adding the package.json file to this repo?

soulofmischief87 avatar Aug 09 '17 09:08 soulofmischief87

Not sure what you are looking for in regards to the package.json. You can fork this and create your own or submit a PR.

To be honest here, the underlying libraries for this have not been updated in a very long time and I cannot imagine that they work with current iterations of WebRTC.

egreenmachine avatar Aug 09 '17 13:08 egreenmachine

@egreenmachine the issue is that when adding the cordova plugin the process looks for a package.json file to define dependencies. It appears that prior to this cordova would use the dependencies in the sipjs file inside the www folder. I solved this by pull the repo adding the file and adding the plugin by referencing the local repo. I've attached the package.json if anyone else needs it. @egreenmachine can you refer me to a method of updating the libraries or so that I can use sipjs/webrtc in ios? is it mostly the files in lib/ios? package.json.zip

soulofmischief87 avatar Aug 10 '17 07:08 soulofmischief87