Ios html5 video mp4

To get> 10 minute videos in my application, I need to implement html5 video in webview. The video connects as I hear the sound, but the video is a black screen. The video is all mp4 and I use the following html

<html><body style="margin: 0; padding: 0;"><video width="480" height="300" controls="controls"><source src="'+video+'" type="video/mp4"></video></body></html> 

Can someone help me get my pictures?

0
source share
1 answer

I'm going to guess that this is a video format.

Here is what is approved:

H.264 video up to 720p, 30 frames per second, Main profile level 3.1 Audio: AAC-LC up to 160 Kbps, 48 โ€‹โ€‹kHz, stereo File types: .m4v, .mp4 and .mov

MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Audio profile : AAC-LC up to 160 Kbps per channel, 48 kHz, stereo File types: .m4v, .mp4 and .mov

Miro can help you, as it has the โ€œfor iphoneโ€ option, which sets up the video just right.

+1
source

Source: https://habr.com/ru/post/985336/


All Articles