Created
April 13, 2018 23:52
-
-
Save Temidtech/045356b5f84c46951039134bc5a1a257 to your computer and use it in GitHub Desktop.
Flutter AssetManager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String assetName = call.argument("asset"); | |
String assetLookupKey = registrar.lookupKeyForAsset(assetName); | |
AssetFileDescriptor fd = registrar.context().getAssets().openFd(assetLookupKey); | |
player = new VideoPlayer(eventChannel, handle, fd, result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment