Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[[ Player ]] Update Windows player control to use MediaFoundation #7358

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

livecodeian
Copy link
Contributor

This patch replaces the current windows player control implementation with one based on the MediaFoundation API.

The primary motivation for this update is the lack of support in DirectShow for newer file formats and inconsistencies in support for certain features such as non-standard playback rates and mirrored video playback.

The "tracks", "trackCount", and "enabledTracks" properties are now supported in the player control.
The "loadedTime" property is no longer supported"

Ian Macphail added 2 commits May 14, 2020 15:19
…undation

This patch replaces the current DirectShow-based windows media player
implementation with one based on the MediaFoundation API
@livecodeian livecodeian added this to the 9.7.0-dp-1 milestone May 14, 2020
@livecodeian livecodeian self-assigned this May 14, 2020
Ian Macphail added 6 commits May 15, 2020 15:48
This patch modifies the track media type property to return an
enumeration value instead of a string, in order to ensure that the media
type string used in the track list is consistent between platforms.
This patch changes the return type of player track offset and duration
properties to MCPlatformPlayerDuration as these values may overflow the
current uint32_t return type
This patch implements the underlying platform player API functions used
to provide the 'tracks', 'trackCount', and 'enabledTracks' properties
of player objects
…acks

This patch reduces the work done by platform players when setting the
enabledTracks property by only changing the enabled state of tracks
added or removed from the enabledTracks.

This is useful for some player implementations (e.g. Windows
MediaFoundation) which need to reload the media source when enabling or
disabling tracks.
This patch updates the dictionary entries for the "enabedTracks",
"trackCount", "tracks", and "loadedTime" properties to show that the
support for these properties has changed on Windows due to the switch
to MediaFoundation.

In addition, references to QuickTime have been removed as these are
now obsolete.
This patch adds a release note for the change of implementation in the
Windows player control from DirectShow to MediaFoundation.
@livecodeian livecodeian force-pushed the feature-player-win32-media-foundation branch from e12584d to 88e8f9b Compare May 15, 2020 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant