为什么彩信单幅图像有时会显示为视频?

发布于 2024-10-08 08:05:06 字数 389 浏览 9 评论 0原文

我写了一个愚蠢的应用程序,它允许人们将预设图像发送到用户。该应用程序大部分工作正常(只要用户有一个可以在手机上处理彩信的应用程序),但我有一些用户抱怨彩信在他们的手机上显示为视频而不是图像。视频最终只是一个图像,持续了几秒钟。

代码的工作方式是将文件复制到 SD 卡,然后将其传递到 EXTRA_STREAM Intent extra 中。我知道所有图像都是 PNG,并且它们都是以设置为“image/png”的类型发送的。然而不知何故,它们最终以视频形式出现在接收端。

有谁知道可能出了什么问题?这是彩信应用程序的错误吗?或者我可以采取什么措施?

I wrote a silly app that allows people to send preset images to users. The app mostly works fine (as long as the user has an app that can handle MMS on their phone) but I've had some users complain that the MMSes show up on their phones as video rather than as an image. The video ends up just being a single image, over the span of a few seconds.

The way that the code works, it copies the file to the SD card, which is then passed into the EXTRA_STREAM Intent extra. I know that all the images are PNGs, and they're all sent with the type set to "image/png". Yet somehow they end up as videos on the receiver's end.

Does anyone know what might be going wrong? Is this the fault of the MMS application, or is there something I can do on my end?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文