Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created December 14, 2021 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cardoso/c1cb7514023cb265b0ee996d03bb5ae2 to your computer and use it in GitHub Desktop.
Save cardoso/c1cb7514023cb265b0ee996d03bb5ae2 to your computer and use it in GitHub Desktop.
guard
let cssURL = Bundle.main.url(forResource: "bitmovinplayer-ui", withExtension: "min.css"),
let jsURL = Bundle.main.url(forResource: "bitmovinplayer-ui", withExtension: "min.js")
else {
print("Missing Custom UI files.")
return
}
// Create player configuration
let config = PlayerConfig()
config.styleConfig.playerUiCss = cssURL
config.styleConfig.playerUiJs = jsURL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment