Windows IoT


How to play an MP3 on IoT running on a RPI2


Hi guys,
What would be the way to play an MP3 file, located in some folder, using C#? I've been hunting high and low for sample code or explanation of this, and can't seem to find a definitive answer anywhere, so I thought I would post the question here.
Thanks
Wayne
I've successfully used this in a headless application:
https://github.com/ms-iot/UniversalMediaEngine
Hi,
do you use a XAML media element or do you use just plain C#?
Did you read this
post?
Kind regards, Toby
Best Regards. When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. This helps us build a healthy and positive community.
Hi Toby,
I won't be using a media element, or don't intend to as I need to run it as a console application.
I'm wanting to write something that sits on a headless unit, scans a folder of mp3's and plays them.
No, haven't read that post yet, will go through it now.
Thanks
Wayne
#Knersis i dont think you will be happy with the links Tobias provided, windows 10 does not have a windows media player and you cant compare a sandboxed UWP app with a normal desktop app
you could try to create an instance to a media element fro your c# code, that should also work from headless apps...
btw you could use this sample as start...
IoTCoreMediaPlayer
I've successfully used this in a headless application:
https://github.com/ms-iot/UniversalMediaEngine
I have written a background mediaplayer that scan all usb memories and play all music files it may find. Do you want the sorce code?

Related Links

Unable to Preinstall apps on Windows IoT Pro & Update it via Windows Store
Door Ajar/Raspberry/GPIO/Python/C#
Windows 10 IoT Core Pricing
WiFi support for USB devices with external antenna
WifiDirect API fails to pair with device
How to read from dht11 ? Raspberry C# UWP
What to exclude in UWF to receive updates from Store
How i connect raspberry as bluetooth speaker with android (using windows 10 IoT core) ?
SerialSample sends wrong Data
Prioritize Ethernet Connection Over Wifi Connection
Pi 3 keeps restarting during boot
Execute powershell commands from an exe(Windows form application) used in UWP app deployed on Dragonboard
Windows 10 IoT Enterprise UWF Servicing Screensaver
Calling Application.Current.Exit() in UWP cause Windows IoT Bluescreen?
W10 LTSB 2016 missing features?
IoTOnboardingTask Startup App

Categories

MSDN
Windows Desktop Develo...
JScript and Scripting
Machine Translation an...
Microsoft ISV Communit...
Windows Server
Microsoft Atlas API: D...
Archived Forums A-B
Archived Forums I-L
Archived Forums M
Archived Forums SA-SM
Microsoft R
Open source Developmen...
Forums Issues (not pro...
Off-Topic Posts (Do No...
Visual C#
Visual Basic
Submitting and Publish...
Dev Center App
DirectShow Development
Windows Desktop Search...
Message Analyzer
Hardware Development B...
SharePoint 2010 - Usin...
SharePoint 2010 - Search
Azure Management Portal
Microsoft Azure Site R...
Azure HDInsight
Azure Scheduler
Azure Scripting and Co...
Azure App Service - AP...
Azure Blockchain
Windows Workflow Found...
Team Foundation Server...
Architecture General
Code Contracts
Visual Basic for Appli...
Microsoft Device Emulator
Data Mining
SQL Server Reporting S...
Microsoft Drivers for ...
Standard 7: Misc
SQL Server 2012 Report...
Windows Forms Sample A...
Windows Live General: ...
Windows Live Messenger...
Orchard - Help and Sup...
WebsitePanel - Discuss...
WebsitePanel - Support
WebsitePanel - Develop...
Bing Maps General
Bing Maps WPF, WP7/8/8...
Getting Started with S...
Connected Services Fra...
Retired SharePoint Bus...
.NET Framework Network...
ADO.NET Entity Framewo...
Developer Documentatio...
Chart Controls for .NE...
Microsoft ESP Platform...
Model-Based Testing wi...
Multimap API Developme...
Monitor, Alert and Aut...
Popfly Bugs and Sugges...
Popfly Game Creator
NUI API and Programmin...
Search Server: Develop...
Search Server: Feature...
Silverlight (formerly ...
SQL Server 2014 Data Q...
SQL Server 2014 Self-S...
Team Foundation Server...
Using Visual Round Tri...
TFS Deployment to Azure
Tailoring your Windows...
Visual Basic Express E...
Visual Basic Language
Visual C# Language
Visual Studio Async CTP
Visual Studio 2008 (Pr...
Visual Studio Class De...
Visual Studio Gallery ...
Visual Studio Team Sys...
Visual Studio Tools fo...
Web Development in Vis...
Windows CardSpace ('In...
Windows Error Reportin...
Windows Live Search: D...
Windows MultiPoint Mou...
Working with Data and ...
Microsoft R Open

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile