是否可以在tvml中使用相對鏈接?我從來沒有遇到過在網頁中使用它們的問題,但無法讓它在我的tvml文檔中工作。tvml中的相關鏈接?
從我的SWIFT:
static let TVBaseURL = "http://localhost:9001/"
目前這從我的TVML它位於 「http://localhost:9001/templates/home.xml」
<lockup onselect="getDocument('templates/Featured.xml')">
<img src="http://localhost:9001/graphics/icons/ICON_featured.png" width="313" height="600" />
</lockup>
注意,ONSELECT鏈接是相對的,工作正常工作。
但是這不起作用:
<lockup onselect="getDocument('templates/Featured.xml')">
<img src="../graphics/icons/ICON_featured.png" width="313" height="600" />
</lockup>