Where to find missing referenced items in 'How to Play Media Files with Media Foundation'

Thomas Littlepage 20 Reputation points
2024-03-28T17:51:59.62+00:00

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

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,529 questions
{count} votes

Accepted answer
  1. Castorix31 81,726 Reputation points
    2024-03-28T20:35:06.2233333+00:00
    #pragma comment(lib, "mfuuid")
    #pragma comment(lib, "Strmiids")
    

0 additional answers

Sort by: Most helpful