Follow

RSOfflinePlayer - Getting started with the Sample App code

Avatar

Overview

The RSOfflinePlayer Sample App is intended to be a head-start for developing your own iOS app that can play SCORM Engine content offline. It is not intended to be a full featured application, rather a starting point for understanding the features of the SDK and building your own application.


Preparing the code

To get started with the code, run pod install from the command line to install all the dependencies for the project. Then open the RSOfflinePlayerSampleApp.xcworkspace file. This will then be ready for your testing and code edits.


Setting the SCORM Engine server path

The OfflinePlayer SDK requires a 2013.1+ SCORM Engine installation to connect to. This URL is set in the UserDefaults for the app and can be changed at runtime via the iOS settings panel. You can set a new default in the Settings.bundle->Root.plist if you want to have it set up automatically for each launch. The path in the configuration should contain the ScormEngineInterface part of the URL already as the internal paths expect to start from that location.


Changing the UI colors

The main app colors can be changed with the settings.plist file for the project. The available color settings are: button-text-color, button-color, cell-color (for the tableview), header-color (for the top navbar header) and page-color. Using these settings will allow you to easily skin your application code for customization.


Where to go next

After you have hooked the SampleApp to your SCORM Engine instance, you should be able to see the OfflineCatalog populate with the packages you have marked for inclusion. You may want to customize how the catalog data looks or even what it contains (via the SCORM Engine Integration Layer), or add some real authentication to the login screen. This is just a shell to get you started on your way to a full-blown mobile app and is open to whatever you would like to add to it.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk