Sign in to follow this  

CEF local html and images

Recommended Posts

I am unable to put any images in my local html via the browser.

If i load the image directly ( via loadBrowserURL(browser,"image.gif") ) it works correctly, but if i load a html page containing an image, it does not show.


<body > 
<img src="dancething.gif"> 

If i load this, it does show the text, but not the images.

This is in my meta:

    <info  description="test" type="misc" version="1.0" /> 
    <file src="dancething.gif"/> 
    <script src="test_c.lua" type="client" /> 
    <file src="html.html" /> 

This is what shows ingame:


So my question is, is anyone able to show images in their local html ?

Share this post

Link to post

I solved this by loading the image in html with mtalocal://

<img src="mtalocal://dancething.gif"> 

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.