Help Videos
caution
This method was removed in netDecor 6.0
netDecor can play videos (located in the 'Help' tab). The list of videos can vary based on the selected language. To add videos to your netDecor instance, use the following method:
NetDecor.Help.AddVideoList(videoFilesJson: string);
Parameters:
videoFilesJSON: string – A JSON string containing video information in the following format:
videoJson = {
"LangCode1": [
{"Name": "Display name", "FilePath": "video URL"},
{"Name": "Display name", "FilePath": "video URL"}
],
"LangCode2": [
{"Name": "Display name", "FilePath": "video URL"},
{"Name": "Display name", "FilePath": "video URL"}
],
"LangCode3": [
{"Name": "Display name", "FilePath": "video URL"},
{"Name": "Display name", "FilePath": "video URL"}
]
};
"LangCode" refers to the ISO 639-1 language code (two letters). Available languages depend on your specific netDecor customization. The Help tab will display the video list corresponding to the selected language.
Example:
function onReady() {
videoJson = {
"PL": [
{"Name": "Dodatkowe Wyposażenie", "FilePath": "PL//dodatkowewyposazenie.mp4"},
{"Name": "Kolor Ścian I Podłogi", "FilePath": "PL//kolorscianipodlogi.mp4"}
],
"EN": [
{"Name": "Additional Equipment", "FilePath": "PL//dodatkowewyposazenie.mp4"},
{"Name": "Floor and Walls Color", "FilePath": "PL//kolorscianipodlogi.mp4"}
],
"DE": [
{"Name": "Zusatzausstattung", "FilePath": "PL//dodatkowewyposazenie.mp4"},
{"Name": "Wand-und Bodenfarbe", "FilePath": "PL//kolorscianipodlogi.mp4"}
]
};
NetDecor.Help.AddVideos("PL", (JSON.stringify(videoJson)));
}
RunNetPlusApp("appcontainer",
"Build/", "{ \"dbaddr\":\"database/\"}", onReady);