在使用SIPSorcery时,以下语句始终报错:

WindowsVideoEndPoint winVideoEP = new WindowsVideoEndPoint(new VpxVideoEncoder(), WEBCAM_NAME);

折腾了一晚上,终于弄明白了。

SIPSorceryMedia.Encoders实现的SIPSorceryMedia.Abstractions中定义的接口,它最高只能使用Abstractions 1.1.0,因为1.2.0中多定义了个EncodeVideoFaster方法,项目中使用的Encoders并没有实现此方法。而项目中使用的Abstractions 1.2.0是由SIPSorcery中引入进来的。

解决办法:对SIPSorcery和SIPSorceryMedia.Windows降级,不能使用最新版本。

目前最高版本搭配为:

<PackageReference Include="SIPSorcery" Version="6.0.6" />
    <PackageReference Include="SIPSorceryMedia.Encoders" Version="0.0.10-pre" />
    <PackageReference Include="SIPSorceryMedia.Windows" Version="6.0.1-pre" />

Method ‘EncodeVideoFaster‘ in type ‘SIPSorceryMedia.Encoders.VpxVideoEncoder相关推荐

  1. 报错, Exception: Missing URI template variable ‘id‘ for method parameter of type Long

    问题: 2021-03-24 17:31:05.391 ERROR 12756 --- [io-12000-exec-2] c.y.w.c.GlobalControllerExceptionHandl ...

  2. Android Room提示 错误: Not sure how to convert a Cursor to this method's return type的原因及解决办法

    错误: Not sure how to convert a Cursor to this method's return type 最近在使用Room+协程+LiveData查询数据的时候,我的查询方 ...

  3. Eclipse 报错The method xxx of type must override a superclass method、Description Resource Path Locati

    问题: 如上图, 没改钱@Override会报错The method run() of type must override a superclass method 原因: java1.5中继承接口是 ...

  4. Duplicate modifier for the method isExist in type UploadMusicInfoController

    Duplicate modifier for the method isExist in type UploadMusicInfoController 在UploadMusicInfoControll ...

  5. 解决“The method XXXXXX of type XXXXXXXXX must override a superclass method”

    我的Eclipse版本是3. 6.1 @Override 时出现以下错误: The method XXXXXX   of type XXXXXXXXX must override a supercla ...

  6. Missing URI template variable 'XXXX' for method parameter of type String

    原因:就是spring的controller上的@RequestMapping的实参和方法里面的形参名字不一致 方法:改成一样就可. ps.还能用绑定的方法,不建议,因为太麻烦了 @RequestMa ...

  7. Java重写父类使用@Override时出现The method destroy() of type xxx must override a superclass method的问题解决...

    解决方法: 1.把JDK版本改成1.6以上的. 2.把Compiler改成1.6以上的. 关于这两者的区别,参考:http://www.cnblogs.com/EasonJim/p/6741682.h ...

  8. The method xxx of type xxx must override or implement a supe

    这点代码: @Override public void showValue(View view) { ShowValueFromNativeC.showValueFromNativeC(); } 但是 ...

  9. The method xxx of type xxx must override a superclass method

    原因是1.5及以下不认识@override,修改编译版本为1.6及以上 步骤1 2. 步骤2 3.

最新文章

  1. 用Python爬取42年数据,告诉你高考有多难!
  2. S6 edge+的多米诺骨牌效应:大屏的趋势
  3. linux week3
  4. 将IDEA工程代码提交到Github
  5. mysql 第几周 时间戳_php时间戳函数实现计算第几周,以及当天所在周的具体日期范围...
  6. 原型图和设计常犯错误,导致前端页面返工
  7. Network in Network----Global Average Pooling
  8. java实现rabbitmq简单队列模型,生产者 消费者 消息队列
  9. [20141124]sql server密码过期,通过SSMS修改策略报错
  10. 科大讯飞语音接口调用实现语音识别
  11. 如何清理苹果MAC电脑系统缓存数据?
  12. SQL语句简单增删改查
  13. 华为android手机root,华为手机root权限获取教程
  14. “强方杯“首届北京高校概率篮球棋邀请赛收枰
  15. 安卓近距离通信--蓝牙通信开发
  16. 微软账户服务器连不上开不了机,Win10无法登录微软账户提示“内部服务器错误(500)”怎么解决?...
  17. 视频处理指定颜色的提取
  18. linux 查明文密码,登录页面密码支持明文查看
  19. iframe 接班人-微前端框架 qiankun 在中后台系统实践
  20. 手机APP与机顶盒互通

热门文章

  1. 专为懒人设计!一款功能强大的 Docker 管理工具
  2. C语言零基础项目:打飞机游戏,300行源码分享+详细思路
  3. Jpa的criteriaBuilder.in 使用
  4. php正则匹配验证密码,最新密码验证正则表达式
  5. 【C语言入门】从键盘中输入一组字符,统计其中大写字母的个数、小写字母的个数和数字字符的个数。
  6. 【100%通过率】华为OD机试真题 Java 实现【货币单位换算】【2022.11 Q4 新题】
  7. 按F1才能进系统怎么办?电脑开机需要按f1才能进入系统的解决办法
  8. 【Python数据分析学习实例】动态新闻标题热点挖掘
  9. projectwbs表_Microsoft Project制作WBS基本使用
  10. https的443与8443