What is MIME type "video/x-plt"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
video/x-plt is a MIME type for playlist files. It defines how a media player should read a sequence of video entries stored in a tab-separated format.Files with this MIME type, like those with the extension PLT, instruct software on how to sequence and organize video playback automatically.
- Primary use: Arrange and manage video playback order.
- Key functionality: Lists video file references and playback metadata in a TSV format.
- Other uses: Integration into custom media applications and automated video streaming environments.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: video/x-plt
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="video/x-plt">Download file</a>
Server-side (Node.js)
Setting the Content-Type header in Node.js:
const http = require('http');
http.createServer((req, res) => {
res.setHeader('Content-Type', 'video/x-plt');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the primary function of the video/x-plt MIME type?
The video/x-plt MIME type identifies a playlist file used to sequence video playback. Unlike actual video files (like MP4 or AVI), a .plt file served with this type contains text-based instructions—specifically tab-separated values—that tell a media player which video files to play and in what order.
How do I configure Apache to serve .plt files correctly?
To ensure your Apache server sends the correct headers for playlist files, add the following line to your .htaccess file or main configuration: AddType video/x-plt .plt. Without this, the server might default to text/plain or application/octet-stream, potentially causing playback issues in specialized players.
Can web browsers play video/x-plt files natively?
No, standard web browsers (Chrome, Firefox, Edge) do not natively support playing video/x-plt playlists within a generic <video> tag. To use this format on the web, you would typically need a custom JavaScript player that parses the TSV content and feeds the video URLs to the browser's media engine.
Is the .plt extension used for other file types?
Yes, this is a common source of confusion. The .plt extension is also widely used for HPGL Plotter files (vector graphics), often associated with MIME types like application/vnd.hp-hpgl. When working with video/x-plt, ensure the file is actually a text-based video playlist and not a CAD drawing.
How can I edit a video/x-plt file?
Since video/x-plt files are text-based (specifically using a tab-separated format), you can open and edit them using any standard text editor like Notepad, TextEdit, or VS Code. You simply need to ensure you maintain the correct tab spacing between video file paths and metadata.
What are common alternatives to video/x-plt?
For broader compatibility, developers often use standard playlist formats like M3U (audio/x-mpegurl) or PLS (audio/x-scpls). For modern web streaming, formats like HLS (application/vnd.apple.mpegurl) or DASH are preferred over the older or proprietary video/x-plt format.
Why does this MIME type have an 'x-' prefix?
The x- prefix in video/x-plt indicates that it is a non-standard or experimental type not formally registered with the IANA (Internet Assigned Numbers Authority). While common in specific legacy systems, it does not have the universal support of standard types like video/mp4.
General FAQ
What is a MIME type?
A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.
MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.
MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.
How do I find the MIME type for a file?
You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.
Why are multiple MIME types listed for one extension?
Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.