onsip / onsip-cordova

Other
48 stars 29 forks source link

Can't show video on ios #28

Open i1020242 opened 7 years ago

i1020242 commented 7 years ago

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') } } };

jonathanhollander commented 7 years ago

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

soulofmischief87 commented 7 years ago

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?

egreenmachine commented 7 years ago

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.

soulofmischief87 commented 7 years ago

@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