Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

ms-iot/UniversalMediaEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniversalMediaEngine

This is an IMFMediaEngine (Windows Media Foundation management class) wrapper that simplifies the playing of media in a Windows IoT Core headless applicaiton (since the XAML MediaElement is not avaliable to developers here).

##Usage:

  • Either build/add the Windows Runtime Component as a binary reference to your solution of add the UniversalMediaEngine project to your solution.
  • Initialize an instance of the MediaEngine object in your code like so:
            this.mediaEngine = new MediaEngine();
            var result = await this.mediaEngine.InitializeAsync();
            if (result == MediaEngineInitializationResult.Fail)
            {
                // Your error logic           
            }
  • The MediaEngine object exposes Play (you pass a valid URL), Pause and Volume set/get as well as a callback that is fired when the state of media playback changes.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages