1 / 16

Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211

06 | Advanced Contracts Pt 2. Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211. Agenda for the Day. Visit xamlShow on CodePlex http://xaml.codeplex.com. Module Agenda. Search Contract PlayTo Contract. Search. Activations. Search Contract.

ailani
Download Presentation

Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 06 | Advanced Contracts Pt 2 Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211

  2. Agenda for the Day • Visit xamlShow on CodePlex • http://xaml.codeplex.com

  3. Module Agenda • Search Contract • PlayTo Contract

  4. Search

  5. Activations Search Contract • PlaceholderText = “People” • SuggestionsRequested • AppendQuerySuggestions • AppendSearchSeparator(“Person”) • AppendResultSuggestion • QuerySubmitted • ResultSuggestionChosen • ShowOnKeyboardInput • TrySetQueryText

  6. App.xaml.cs

  7. Search contract

  8. PlayTo contract

  9. Play To contract • Streams audio, video or images from your app to target devices • Target devices include • Xbox 360 • DLNA compliant devices such as TVs, Media Extenders, etc. • Windows 8 devices that implement the PlayTo receiver contract

  10. Play To architecture SourceRequested MediaElement PlayToManager Media Stream PlayToReceiver

  11. Adding Play To flow • Declare: “Private Networks” Capability • Register the view to the current PlayToManager • Handle the SourceRequestEvent and return the MediaElement that contains the content to be shared:

  12. Building a Play To receiver • Declare the “Private Networks” capability • PlayToReceiver • Configure receiver • Pass events to MediaElement • Pass MediaElement events to the receiver • Start the receiver • Advertises on local network

  13. Handle events PlayToReceiver MediaElement CurrentStateChanged MediaEnded MediaFailed MediaOpened RateChanged SeekCompleted VolumeChanged • CurrentTimeChangeRequested • MuteChangeRequested • PauseRequested • PlaybackRateChangeRequested • PlayRequested • SourceChangeRequested • StopRequested • TimeUpdateRequested • VolumeChangeRequested

  14. Play To

  15. Module Review • Search • PlayTo

More Related