The CFileItemPtr HasVideoInfoTag is a method that checks if a video file has a metadata tag containing information about the video. This is useful for applications that require video information, such as video players or editors.
Code Example:
```c++
CFileItemPtr videoFile = new CFileItem("example.mp4"); // create a new video file item
bool hasVideoInfo = videoFile->HasVideoInfoTag(); // check if the file has video information
if (hasVideoInfo) {
// display the video information
std::cout << "Video information found!" << std::endl;
std::cout << "Codec: " << videoFile->GetVideoCodec() << std::endl;
std::cout << "Duration: " << videoFile->GetVideoDuration() << std::endl;
// etc.
} else {
// handle case where no video information is found
std::cout << "No video information found." << std::endl;
}
```
This method belongs to the Kodi (formerly known as XBMC) package library, which is a free and open-source media player software application developed by the XBMC Foundation.
C++ (Cpp) CFileItemPtr::HasVideoInfoTag - 30 examples found. These are the top rated real world C++ (Cpp) examples of CFileItemPtr::HasVideoInfoTag extracted from open source projects. You can rate examples to help us improve the quality of examples.