issue #12 #13 Fixing couldn't launch wavve on ur762h0nd tv model.

This commit is contained in:
paul kim
2025-06-24 15:24:33 +09:00
parent 39f3fa4b87
commit e67612d210

View File

@@ -1572,7 +1572,7 @@ HotelTV.hal = (function() {
if (g_nativApps_info.generalapp != null) { if (g_nativApps_info.generalapp != null) {
if (_name == "coupangplay") { if (_name == "coupangplay") {
for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) { for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) {
if (item.title == 'Coupang Play') { if (item.title.toLowerCase() == 'coupang play') {
hcap.application.launchApplication({ hcap.application.launchApplication({
"id" : item.appId, "id" : item.appId,
"onSuccess" : function() { "onSuccess" : function() {
@@ -1586,7 +1586,7 @@ HotelTV.hal = (function() {
} }
} else if (_name == "wavve") { } else if (_name == "wavve") {
for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) { for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) {
if (item.title == 'wavve') { if (item.title.toLowerCase() == 'wavve') {
hcap.application.launchApplication({ hcap.application.launchApplication({
"id" : item.appId, "id" : item.appId,
"onSuccess" : function() { "onSuccess" : function() {
@@ -1600,7 +1600,7 @@ HotelTV.hal = (function() {
} }
} else if (_name == "tving") { } else if (_name == "tving") {
for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) { for (const [key, item] of Object.entries(g_nativApps_info.generalapp)) {
if (item.title == 'TVING') { if (item.title.toLowerCase() == 'tving') {
hcap.application.launchApplication({ hcap.application.launchApplication({
"id" : item.appId, "id" : item.appId,
"onSuccess" : function() { "onSuccess" : function() {
@@ -1649,7 +1649,7 @@ HotelTV.hal = (function() {
if (g_nativApps_info.preapp != null) { if (g_nativApps_info.preapp != null) {
if (_name == "youtube") { if (_name == "youtube") {
for (const [key, item] of Object.entries(g_nativApps_info.preapp)) { for (const [key, item] of Object.entries(g_nativApps_info.preapp)) {
if (item.title == 'YouTube') { if (item.title.toLowerCase() == 'youtube') {
hcap.preloadedApplication.launchPreloadedApplication({ hcap.preloadedApplication.launchPreloadedApplication({
"id": item.id, // YOUTUBE "id": item.id, // YOUTUBE
"onSuccess": function() { "onSuccess": function() {
@@ -1663,7 +1663,7 @@ HotelTV.hal = (function() {
} }
} else if (_name == "netflix") { } else if (_name == "netflix") {
for (const [key, item] of Object.entries(g_nativApps_info.preapp)) { for (const [key, item] of Object.entries(g_nativApps_info.preapp)) {
if (item.title == 'Netflix') { if (item.title.toLowerCase() == 'netflix') {
hcap.preloadedApplication.launchPreloadedApplication({ hcap.preloadedApplication.launchPreloadedApplication({
"id": item.id, // NETFLIX "id": item.id, // NETFLIX
"parameter": `{'params': {'hotel_id':${_param.hotel_name},'launcher_version':'1.0'}`, "parameter": `{'params': {'hotel_id':${_param.hotel_name},'launcher_version':'1.0'}`,