Jump to content

Help: Video Integration


JMars89

Recommended Posts

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,

 

Link to comment
Share on other sites

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());

Projects:

Discontinued:

- N2ConfigAPI

- Meachanical Crafting Table

 

Latest:

- CollectionUtils

 

Coöperations:

- InGameConfigManager

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.