当前位置:网站首页>Troubleshoot typescript files being recognized as video

Troubleshoot typescript files being recognized as video

2022-06-10 10:09:00 Ruohai

Concept introduction

  • TypeScript It's an open source programming language developed by Microsoft , By means of JavaScript It is built by adding static type definition on the basis of
  • Transport Stream The transport stream , Is a common video packaging format , be based on MPEG-2 The packaging format of ( So is also called MPEG-TS)
  • TypeScript and Transport Stream The file extensions of are ts

Problem phenomenon

stay Windows On the operating system .ts Marked by default as Transport Stream, There is no problem for ordinary users , But for the TypeScript It's a disaster for developers : Open a file browser .ts Projects with many files , The system needs to scan all the documents , And try to identify the cover of the video , This process is almost frame by frame animation , Seriously affect work efficiency .

terms of settlement

To solve this problem , It must be revised Windows The registry , Save the following code as typescript.reg, Then double click Import registry , Restart the system .

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.ts]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Kindmap]
".ts"="document"

Restore video mode

Then someone might want to say , What if I want to recover one day ? The following is the registry code for recovery :

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.ts]
"Content Type"="video/vnd.dlna.mpeg-tts"
"PerceivedType"="video"

[HKEY_CLASSES_ROOT\.ts\OpenWithProgids]
"AppX6eg8h5sxqq90pv53845wmnbewywdqq5h"=hex(0):

[HKEY_CLASSES_ROOT\.ts\ShellEx]

[HKEY_CLASSES_ROOT\.ts\ShellEx\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"

[HKEY_CLASSES_ROOT\.ts\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Kindmap]
".ts"="video"

This article is published synchronously on the author's blog : https://www.rehiy.com/post/430

Tengyun pioneer (TDP,Tencent Cloud Developer Pioneer) Tencent cloud GTS Officially established and operated technology developer group . Here are the most professional developers & Customer , Be able to have close contact with product personnel , Proprietary questions & Demand feedback channels , There are a group of like-minded brothers and sisters . Come on Join the community of our developers Well   .

原网站

版权声明
本文为[Ruohai]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206100950548395.html