The project also depends on the Xamarin FilePicker Plugin. This example is explained in detail at http://brianconrad.com/2019/06/20/sheetmusic/
- Clone or download this repository
- Download an OSMD build (
opensheetmusicdisplay.min.js) from the Github Releases
- For Android put the opensheetmusicdisplay.min.js file in the Assets folder and set Build Action as AndroidAsset.
- For iOS put the opensheetmusicdisplay.min.js file in the Resources folder and set Build Action as Content and Copy to Output Directory set to Copy if Newer.
- For UWP put the opensheetmusicdisplay.min.js file in the UWP project folder and set with Build Action as Content and Copy to Output Directory set to Copy if Newer.
Build and deploy the example. Select any musicxml file there are example files in the OpenSheetMusicDisplay repository: https://github.com/opensheetmusicdisplay/opensheetmusicdisplay/tree/develop/test/data Currently this project can only load files with the .musicxml and .xml extensions. The .mxl files are compressed (zip) files and will not work.
in the webview.
Add an ActivityIndicator if possible to display that the HTML file is processing as that may take some time.