#pragma comment(lib, "mfuuid")
#pragma comment(lib, "Strmiids")
Where to find missing referenced items in 'How to Play Media Files with Media Foundation'
I am trying to cut and paste the code for CPlayer in the 'How to Play Media Files with Media Foundation' tutorial. I used code from the following browser search results: 'player.h - Win32 apps' & 'player.cpp - Win32 apps' . I cannot find the following items that are in the code:
In 'CreateMediaSinkActivate': MFMediaType_Audio & MFMediaType_Video if (MFMediaType_Audio == guidMajorType) else if (MFMediaType_Video == guidMajorType)
In 'CPlayer::OnTopologyStatus': MF_EVENT_TOPOLOGY_STATUS & MR_VIDEO_RENDER_SERVICE HRESULT hr = pEvent->GetUINT32(MF_EVENT_TOPOLOGY_STATUS, &status); (void)MFGetService(m_pSession, MR_VIDEO_RENDER_SERVICE, IID_PPV_ARGS(&m_pVideoDisplay));
In 'player.h': resource.h #include "resource.h"
I have included the following libraries in my code: #pragma comment(lib, "Mf.lib") #pragma comment(lib, "Mfplat.lib")
Can you please help me? Thanks.
Tom
-
Castorix31 81,726 Reputation points
2024-03-28T20:35:06.2233333+00:00