The video shows how to play custom sounds in the Xbox app. The first step is to add some custom mp3 files. Next add a MediaElementPlayer to the XAML and write a few lines of code to play the files.
- [Instructor] Adding a custom sound to a project…requires a few simple steps.…First thing, you want to put some MP3 files some place…where you can access them.…In my case, I put them inside the project.…You can see them here in the Assets folder.…In the Sounds folder, I have three files here.…Clicker, Droner and Droner 2,…but I can also put these on a server,…as long as I can get a URI that points to the file.…I decided to keep local for this example.…Let's talk about the UI next.…
The UI is similar to the previous example.…I've got a number of buttons arranged in a grid.…I changed the text on the buttons…and I still have a combo box down here.…What is the same, also is…that I have disabled the default sounds.…So, I said, "Element sound mode off" on all the buttons…in the combo box.…There's a new element on this page,…it's down at the bottom.…It's this one, the media player element.…This is the same element I use to show the videos…in the Orange Valley app.…
Here, I am setting auto play to false…and I'm setting the visibility to collapse…
Author
Released
5/5/2017- Configuring the deploy and debug settings
- Understanding the controllers
- Using the KeyUp event with controller buttons
- Understanding XY focus navigation
- Choosing a good initial focus
- Understanding Xbox UI scaling
- Working with sounds
Skill Level Intermediate
Duration
Views
Related Courses
-
Windows 10: Security
with Martin Guidry2h 4m Intermediate
-
Introduction
-
Welcome1m 14s
-
-
1. Getting Started
-
Tour the starter application4m 48s
-
-
2. Work with Controller
-
Understand the controllers2m 41s
-
Understand controller events3m 32s
-
Use Y button for Search6m 22s
-
-
3. Work with Focus
-
Choose a good initial focus4m 44s
-
4. Design Guidance for TV Screen UI
-
Understand Xbox UI scaling3m 27s
-
Understand TV overscan3m 7s
-
-
5. Work with Sounds
-
Enable audio feedback2m 39s
-
Play custom sounds2m 46s
-
-
Conclusion
-
Next steps1m 45s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Play custom sounds