My TVML layout looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<img src="https://www.myserver.com/images/myimage.jpg" />
…but what if I want to reference that background image path within my tvOS app resources itself? Like
<img src="pkg:/images/myimage.jpg" />
This has to be simple, but I’ve yet to find an answer in online docs. Thanks!
@perrycbrown Do you still have issues with this?
Yes, I haven’t found a way to directly reference images within the app itself. The only thing I’ve seen so far is using a ResourceLoader that depends upon the name of the image in an XML file that is loaded with a page. That seems too complicated to me.
Any way to directly reference an image in the app’s resources?
Since no one has an answer to this question, I assume there is no answer to it.
Too bad. It would have been so nice to allow TVML to reference in-app resources – like images – more simply.
This topic was automatically closed after 166 days. New replies are no longer allowed.