如何流通过MMS://

编程入门 行业动态 更新时间:2024-10-17 02:46:48
本文介绍了如何流通过MMS://的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有关于这方面的一些职位,但到目前为止,我还没有看到任何好的答案。有没有一种方法,我可以流从彩信音频:// URI的与Android? MediaPlayer的似乎不喜欢这些流。同时改变MMS://与HTTP或RTSP也不起作用。是不是有人找到解决方法,这?谢谢!

解决方案
  • 在下载Android NDK
  • 然后下载修改libmms和libffmpeg在 radiotime/apps/android.aspx
  • 基本上你必须有2个线程:
    • 下载从MMS站的音频数据第一个线程,然后写一个wma文件
    • 在C此WMA使用libffmpeg PCM数据第二线程去$ C $。
  • There are some posts about this, but so far, i haven't seen any good answer. Is there a way i can stream audio from mms:// uris with Android?. MediaPlayer seems not to like these streams. Also changing mms:// with http or rtsp doesn't work either. Did someone find a workaround to this?. Thanks!

    解决方案

  • Download Android NDK
  • Then download modified libmms and libffmpeg at radiotime/apps/android.aspx
  • basically you has to have 2 threads:
    • 1st thread for downloading the audio data from mms station then write to a wma file
    • 2nd thread decode this wma to PCM data using the libffmpeg.
  • 更多推荐

    如何流通过MMS://

    本文发布于:2023-11-24 02:14:52,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1623596.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:MMS

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!