Engaging with rich media—whether watching a movie, video chatting, or playing music—is one of the most prevalent and enjoyable things we do on our.

Download Report

Transcript Engaging with rich media—whether watching a movie, video chatting, or playing music—is one of the most prevalent and enjoyable things we do on our.

Engaging with rich media—whether
watching a movie, video chatting, or
playing music—is one of the most
prevalent and enjoyable things we do on
our PCs today.
Media Foundation
Media Foundation
http://msdn.microsoft.com/en-us/library/windows/apps/hh452756.aspx
MediaElement
AddAudioEffect()
VideoTag
AddVideoEffect()
MediaTranscoder
AddAudioEffect()
AddVideoEffect()
MediaCapture
AddEffectAsync()
msInsertAudioEffect()
msInsertVideoEffect()
AudioTag
msInsertAudioEffect()
MediaCapture
StartRecordToCustomSinkAsync()
StartPreviewToCustomSinkAsync()
.RegisterAudioDecoder()
.RegisterVideoDecoder()
.RegisterAudioEncoder()
.RegisterVideoEncoder()
.RegisterSchemeHandler()
.RegisterByteStreamHandler()
Method
Description
BeginCreateObject
Begins an asynchronous request to create a media source from a byte
stream.
CancelObjectCreation Cancels the current request to create a media source.
EndCreateObject
Completes an asynchronous request to create an object from a URL.
Completes an asynchronous request to create a media source.
GetMaxNumberOfBytesR Retrieves the maximum number of bytes needed to create the media source
equiredForResolution or determine that the byte stream handler cannot parse this stream.
MediaElement.Source = new Uri(“video.mv4");
Method
Description
BeginCreateObject
Begins an asynchronous request to create an object from a URL.
CancelObjectCreation Cancels the current request to create an object from a URL.
EndCreateObject
Completes an asynchronous request to create an object from a URL.
MediaElement.Source = new Uri("myscheme://square");
Represents a byte stream from some data
source:
• Local file
• Network file
• Some other source
This interface supports typical stream
operations such as reading, writing, and
seeking.
Method
BeginRead
BeginWrite
Close
EndRead
EndWrite
Flush
GetCapabilities
GetCurrentPosition
GetLength
IsEndOfStream
Read
Seek
SetCurrentPosition
SetLength
Write
Come to our question-and-answer session!
http://blogs.msdn.com/b/b8/archive/2012/06/08/building-a-richand-extensible-media-platform.aspx
http://code.msdn.microsoft.com/windowsapps/Media-extensionssample-7b466096
http://msdn.microsoft.com/enus/library/windows/apps/hh452756.aspx
http://msdn.microsoft.com/enus/library/windows/desktop/aa371872(v=vs.85).aspx
http://msdn.microsoft.com/enus/library/windows/desktop/ms700134(v=vs.85).aspx
http://msdn.microsoft.com/enUS/windows/apps/br229512
http://design.windows.com/
http://code.msdn.microsoft.com/windows
apps/Windows-8-Modern-Style-AppSamples
http://channel9.msdn.com/Windows
http://aka.ms/BuildSessions