Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

ios - Can't Play video in android uploaded from iphone

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 me error message

"sorry this video can not be played"

video is in mp4 format.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...