Video.js: prevent download ts files with download manager applications

Created on 25 Feb 2017  路  6Comments  路  Source: videojs/video.js

I have created a video sharing website, and i convert my mp4 videos to ts files. when i open my website through chrome idm catch ts files , and wants to download them, how can i prevent this ?

All 6 comments

There is no way, like your mp4 file.

@Globulopolis please tell me what i am looking for ?

@elhampour try to read.

@Globulopolis please be nice.

@elhampour chrome doesn't support ts segments by default. So, when encountered with a file like that, it seems that idm wants to download it rather than trying to play it. If you're trying to play HLS content, you'll want something like contrib-hls to be able to play it back.

A browser only will force to download a file, if it doesn't know how to handle it, so the first step is make sure that you are serving the correct mime type for the file. You must to check your server configuration and the mime type for ts files = video/mp2t

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SolmazKh picture SolmazKh  路  4Comments

aagiulian picture aagiulian  路  3Comments

zhulduz picture zhulduz  路  3Comments

victorpfm picture victorpfm  路  4Comments

TheKassaK picture TheKassaK  路  3Comments