Video and audio type | Sololearn: Learn to code for FREE!
0

Video and audio type

How can I recognise the type of audio or video?

12th Jun 2024, 9:08 AM
Manos The Cuber
Manos The Cuber - avatar
6 odpowiedzi
+ 2
If you mean the mime type of the media file, you can refer this for a start https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types Those are mime types and the respective file extensions commonly used.
12th Jun 2024, 10:26 AM
Ipang
+ 2
What's the context in which you're trying to recognise the file? Maybe you could use regex to search the name for the file extension.
12th Jun 2024, 11:28 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
12th Jun 2024, 11:34 AM
Manos The Cuber
Manos The Cuber - avatar
+ 1
There are many differnt type of audio and video each one them has many type and the source and the control is differnt such us autoplay and loop and so on but in order to check the source for each video or audio you can put two typs or more to check if it supported
14th Jun 2024, 2:49 AM
Ali Alrahem
Ali Alrahem - avatar
+ 1
14th Jun 2024, 4:46 AM
Manos The Cuber
Manos The Cuber - avatar
0
Ipang I mean mp4 , ogg, mp3 and so more
12th Jun 2024, 10:40 AM
Manos The Cuber
Manos The Cuber - avatar