Good afternoon,
I am a developer for a Brazilian TV and radio broadcaster, and I would like assistance with testing, as I don’t have much experience with LG and have been facing issues during the testing phase.
We have two apps: one for streaming the TV channel and another for the radio stream.
Currently, the TV app works on newer TVs. On older models, it shows a black screen.
The radio app didn’t pass QA testing.
I’ve tried various coding approaches. I’ve used Firebase to fetch the URL via the cloud. I’ve also changed the video player, but the latest code that was rejected in QA testing is the same one we’ve always used for the TV app, only replacing the URL with the radio stream URL. This code has always passed their tests and worked fine for us. However, even with this, the test results indicate a black screen or infinite loading, just like all other attempts.
I don’t understand why this happens. Regarding the URL, the provider assured us that they used a South Korean VPN, and the stream worked perfectly. As for the tests, they stated that it shows a black screen even when using a VPN in Brazil.
As for my own tests, all the codes I mentioned worked in the browser, emulator, and real TVs. I tested on multiple TVs from different years.
That’s why I’m asking for help. I cannot determine why it consistently doesn’t work for them when it always works for me.
Here’s the current code, kept as simple as possible:
index.html
SCFM body { width: 100%; height: 100%; background-color: #000000; } div {
position: absolute;
height: 100%;
width: 100%;
display: table;
}
</style>
<script type="text/javascript" src="webOSTVjs-1.2.4/webOSTV.js" charset="utf-8"></script>
<script type="text/javascript" src="webOSTVjs-1.2.4/webOSTV-dev.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8" src="javascript.js"></script>
disconnected.html
SCFM body { background-color: #FFFFFF; background-image: "./bg.png"; font-size: 28pt; } div {
position: absolute;
top: 50%;
display: table;
text-align: center;
}
.vertical_mid {
position: absolute;
top: 50%;
left: 50%;
}
</style>
<script type="text/javascript" src="webOSTVjs-1.2.4/webOSTV.js" charset="utf-8"></script>
<script type="text/javascript" src="webOSTVjs-1.2.4/webOSTV-dev.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8" src="javascript.js"></script>
Por favor, verifique sua conexão com a internet e tente novamente.
javascript.js
function testConnection(){
var bridge = new WebOSServiceBridge();
var url = ‘luna://com.webos.service.connectionmanager/getStatus’;
bridge.onservicecallback = callback;
function callback(msg){
var response = JSON.parse(msg);
if(response.isInternetConnectionAvailable === false){
location.href = 'disconnected.html';
}
}
var params = '{}';
bridge.call(url, params);
}
function sair(){
window.close();
}