Home > Net >  The Response. The ContentType="video/mp4" file open will play video, download other video
The Response. The ContentType="video/mp4" file open will play video, download other video

Time:04-14

The Response. ContentType="video/mp4"; Set type and then opened by the following ways, can play MP4
Format of the video, but there are a lot of video format, tried the avi Response. The ContentType="video/avi"; Open the download directly, this is why
The Response. The Charset="GB2312";
The Response. The WriteFile (" address ");

Have what method can open in the background through the above other format video

Never done, inquire, thank you

CodePudding user response:

Someone in here ~ ~

CodePudding user response:

Is still not clear about the concept of local and network, you simply say there is a mp4 file header metadata, support downloading while playing, avi format does not support downloading while playing,

Video a lot, then start with format conversion, also can consider other network protocols, are not necessarily of the HTTP protocol,

CodePudding user response:

refer to the second floor HZTLTGG response:
is still not clear about the concept of local and network, you simply say there is a mp4 file header metadata, support downloading while playing, avi format does not support downloading while playing,

Video a lot, then start with format conversion, also can consider other network protocols, are not necessarily of the HTTP protocol,
bosses have instance, the more anxious, and less likely

CodePudding user response:

It what instance, not a code problem, save point? Are you looking for a software formats are converted to mp4 bai

CodePudding user response:

reference 4 floor HZTLTGG response:
what this instance, not a code problem, save point? Are you looking for a software formats are converted to mp4 bai
because it is for the customer side, customer may not only mp4,

CodePudding user response:

Because it is a Video format, the browser know so a browser automatically converted into the support the Video tag

Video format and standard H5 know

Total support three formats: Ogg, MPEG4, WebM, (mainly in the 3, of course, also include some variant format, avi not he knows)
MP4 MPEG 4=file using the H264 video codec and AAC audio codec
WebM=WebM files use VP8 video codec and Vorbis audio codec
Ogg=Ogg files use Theora video codec and Vorbis audio codec

Mainly because many video file formats in the patent protection period, so the browser manufacturers don't want to cause patent appeals, so only use open or itself has a patent right to the use of
Ps: there are a large number of ActiveX before the player can support a variety of formats, but now many browsers are not prepared to support the technology, so it some awkward, (some not to use, but he provided incomplete)





CodePudding user response:

refer to fifth floor lost look elegant reply:
Quote: refer to 4th floor HZTLTGG response:
what this instance, not a code problem, save point? Are you looking for a software formats are converted to mp4 bai
because it is for the client side, the customer may not only mp4,


Don't know your customers what nature, normally, if video is less transformation first, if the dynamic upload video, write a program, after uploading processing format conversion
  • Related