new LogoLoader(logoPath)
LogoLoader loads either a video or image for display during phone boot.
Only a single resource will be selected depending on what is availble
on the filesystem.
Parameters:
Name | Type | Description |
---|---|---|
logoPath | Object | Contains file paths for both a video and image. |
Methods
-
_initImage()
-
Tries to initialize an image if we can load it from disk.
-
_initVideo()
-
Tries to initialize a video if we can load it from disk.
-
_onLogoLoaded(element)
-
Called when we have a logo resource ready.
Parameters:
Name Type Description element HtmlElement An image or video element.