/** * Returns the video descriptor * * @return Video descriptor * @throws RemoteException * @see VideoDescriptor */ public VideoDescriptor getVideoDescriptor() throws RemoteException { try { final VideoStreamingSession session = mRichcallService.getVideoSharingSession(mSharingId); if (session == null) { return mPersistentStorage.getVideoDescriptor(); } IVideoPlayer player = session.getPlayer(); if (player != null) { VideoCodec codec = player.getCodec(); return new VideoDescriptor(codec.getWidth(), codec.getHeight()); } VideoContent content = (VideoContent) session.getContent(); return new VideoDescriptor(content.getWidth(), content.getHeight()); } catch (ServerApiBaseException e) { if (!e.shouldNotBeLogged()) { sLogger.error(ExceptionUtil.getFullStackTrace(e)); } throw e; } catch (Exception e) { sLogger.error(ExceptionUtil.getFullStackTrace(e)); throw new ServerApiGenericException(e); } }