JMars89 Posted October 21, 2015 Posted October 21, 2015 Hi all, I'm trying to integrage video w/ my mod. After not much success, I've boiled down to one basic issue. Forge uses a special type called "ResourceLocation" to reference assets. Most video players use the type "File" to read video. I can convert "ResourceLocation" to an input stream, but I can't get on from there. Any help would be greatly appreciated. Thanks, Quote
N247S Posted October 21, 2015 Posted October 21, 2015 So basically you want to convert a resourceLocation to a File object? I believe that there are methods to get the path of the resourceLocation meaning you can do something like this(dont know exact method, since Im not at my IDE) File vidFile = new File(resourceLocation.getPath()); Quote Projects: Discontinued: - N2ConfigAPI - Meachanical Crafting Table Latest: - CollectionUtils Coöperations: - InGameConfigManager
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.