DoubangoTelecom / imsdroid

High Quality Video SIP/IMS client for Google Android
https://doubango.org
Other
296 stars 169 forks source link

change video resolution in sip mid call #575

Open mansuu opened 8 years ago

mansuu commented 8 years ago

I want to change video resolution in sip mid call based on network speed.I tried a lot but failed One of my trials is i reinvite second person with updated resolution code is NgnAVSession session= NgnAVSession.getSession(new NgnPredicate() {

            @Override
            public boolean apply(NgnAVSession session) {
                // TODO Auto-generated method stub
                return session.isActive();
            }

        });
        //INgnConfigurationService configurationService = Engine.getInstance().getConfigurationService();
        MediaSessionMgr.defaultsSetPrefVideoSize(tmedia_pref_video_size_t.tmedia_pref_video_size_720p);
        //session.getMediaSessionMgr().defaultsSetPrefVideoSize(tmedia_pref_video_size_t.tmedia_pref_video_size_720p);

    session.makeCall(remoteUri);

but it does not work also.