let stylePath = Bundle.main.path(forResource:"style", ofType: "css")! let scriptPath = Bundle.main.path(forResource:"script", ofType: "js")! let playerConfig = THEOplayerConfiguration(defaultCSS: false, cssPaths:[stylePath], jsPaths: [scriptPath]) /* or let playerConfig = THEOplayerConfiguration(chromeless: true, cssPaths:[stylePath], jsPaths: [scriptPath]) */ var theoplayer = THEOplayer(configuration: playerConfig)
With the chromeless flag you can choose to use the chromeless version of the player which does not contain the THEOplayer UI. This allows you to write your own custom UI.
The THEOplayer css is not loaded when chromeless is enabled.
When chromeless is false, the THEOplayer UI is used. In that case the default style can still be disabled by setting the defaultCss flag to false.
To send a message the
_webkit.messageHandlers.<messageName>.postMessage(<message body>)_ method must be used.
lipo [path to THEOplayer.framework] -remove [i386, x86_64] -output [path to output the thinned framework]