#includeIn this example, we first create a new CFileItemPtr object with the name 'example.mp4'. We then use the GetVideoInfoTag() method to obtain the video information from the file. Finally, we print the video duration in seconds to the console. It is likely that the CFileItemPtr class and GetVideoInfoTag function are part of a multimedia library, such as VLC Media Player or FFmpeg.#include #include #include using namespace std; CFileItemPtr video = new CFileItemPtr("example.mp4"); if (video->GetVideoInfoTag()->GetDuration() > 0 ) { cout << "Video Duration: " << video->GetVideoInfoTag()->GetDuration() << " seconds" << endl; }