Can't Play video in android uploaded from iphone

前端 未结 2 1383
北荒
北荒 2020-12-14 19:06

I have upload and play videos on both Android and iPhone devices but video uploaded from iPhone is not working on Android.it\'s not play in android video player. It\'s give

2条回答
  •  温柔的废话
    2020-12-14 19:51

    Yes, That's right.

    It happens because the android support limited codecs in-built like mp3,mp4,mpeg.

    While iphone support most of codecs.

    What is the way to resolve this?

    MP4 for video and MP3 for audio are widely accepted and work on both platforms.

    So you need do some stuff at the server. Implement the ffmpeg library that will convert all the videos to MP4 and audio to MP3.

    We are doing same mechanism to resolve this issue.

    Find FFMPEG implementation for PHP Here and

    Command to convert all videos to MP4 Here Hope this helps you.

    Thanks.

提交回复
热议问题