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

askaliuk picture askaliuk  路  3Comments

kitsunde picture kitsunde  路  4Comments

pblasi picture pblasi  路  3Comments

SolmazKh picture SolmazKh  路  4Comments

zhulduz picture zhulduz  路  3Comments