Zabrimus / vdr-osr-browser

CEF (chrome embedded framework) OSR (offscreen browser) für VDR
GNU General Public License v2.0
10 stars 2 forks source link

develop branch video #1

Open 9000h opened 4 years ago

9000h commented 4 years ago

I did a bit play around to follow the progress of the code, very impressive!

Javascript called me: VIDEO_URL:http://cdn-storage.br.de/MUJIuUOVBwQIbtCCBLzGiLC1uwQoNA4p_2ES/_-ZS/_Axc9-kp571S/17425caf-fbe5-47a3-8a1b-94a300e437a6_X.mp4
Video URL: http://cdn-storage.br.de/MUJIuUOVBwQIbtCCBLzGiLC1uwQoNA4p_2ES/_-ZS/_Axc9-kp571S/17425caf-fbe5-47a3-8a1b-94a300e437a6_X.mp4
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'http://cdn-storage.br.de/MUJIuUOVBwQIbtCCBLzGiLC1uwQoNA4p_2ES/_-ZS/_Axc9-kp571S/17425caf-fbe5-47a3-8a1b-94a300e437a6_X.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.45.100
  Duration: 00:44:04.00, start: 0.000000, bitrate: 3668 kb/s
    Stream #1:0(deu): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #1:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 3470 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[libx264 @ 0x2e3277fd0900] using SAR=1/1
[libx264 @ 0x2e3277fd0900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x2e3277fd0900] profile High, level 3.1
[mpegts @ 0x2e3278139e00] H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option with ffmpeg)
LOG: Error -1094995529 while receiving packet from decoder: Invalid data found when processing input
Javascript called me: ERROR_VIDEO
[0403/190253.146744:INFO:CONSOLE(28468)] "Failed to load because no supported source was found.", source: client://js/hbbtv_polyfill.js (28468)
Javascript called me: PAUSE_VIDEO
Video streaming paused
ON LOAD START
ON LOAD END mode=2, injectJavascript=ja
Inject javascript
9000h commented 4 years ago

correction did try the last commit but I may do miss something,

the browser start inside the plugin is challenge me bit as the plugin complains about the params

vdr -Psatip -P"softhddevice -f -v va-api -a default -c softvol -w alsa-driver-broken" -P"hbbtv -s -p /opt/vdr-osr-browser/vdrosrbrowser -c --debug --remote-debugging-port=9222 --user-data-dir=remote-profile' -l/opt/vdr-osr-browser/debug.log"

any hints?

Zabrimus commented 4 years ago

I'm using vdr.conf. But Is this working? A ' was missing before -c. vdr -Psatip -P"softhddevice -f -v va-api -a default -c softvol -w alsa-driver-broken" -P"hbbtv -s -p /opt/vdr-osr-browser/vdrosrbrowser '-c --debug --remote-debugging-port=9222 --user-data-dir=remote-profile' -l/opt/vdr-osr-browser/debug.log"

9000h commented 4 years ago

ok got it. would it make sense to clear the ipcs deadc0de key before starting the browser from the plugin?

Zabrimus commented 4 years ago

Normally both the browser and the plugin clears the shared memory. This doesn't work sometimes, if a process crashed hard, then the exit handler has no chance to do this. But i think, it's a good idea to clear the shared memory while initialising the plugin, before starting the browser.

9000h commented 4 years ago

hmm, but if you like to support internal and external browser use the ipc should only be cleared if the key is orphaned

9000h commented 4 years ago

could it be that if the browser starts inside the plugin /tmp/vdrosr_tobrowser.ipc= and /tmp/vdrosr_tovdr.ipc= need to be there in advance?

Zabrimus commented 4 years ago

If all processes detaches from shared memory it will automatically deleted, the last detach will do this. If one process still uses the shared memory (e.g. external browser), the shared memory will not be deleted.

Both /tmp/vdrosr* will be created if needed, either by the browser or vdr. Currently the browser will be started first and then further plugin initialization takes place. So i think, the browser creates both files.

I have deleted both files, started VDR and both unix sockets are newly created.

Are you observing some problems?

9000h commented 4 years ago

I do have one strange effect when starting in a term with skinnopacity

vdr -u root -l3 -Psatip -P"softhdvaapi -f -a default -c softvol -w alsa-driver-broken" -P"hbbtv -s -p /opt/vdr-osr-browser/vdrosrbrowser '-c --debug --remote-debugging-port=9222 --user-data-dir=remote-profile' -l/opt/vdr-osr-browser/debug.log" -Pskinnopacity vdr: magick/semaphore.c:606: LockSemaphoreInfo: Zusicherung »semaphore_info != (SemaphoreInfo *) NULL« nicht erfüllt. Aborted (core dumped)

from strace [pid 20705] <... futex resumed>) = 0 [pid 20689] <... readv resumed>[{iov_base="\0SP\0\0P\0\0", iov_len=8}], 1) = 8 [pid 20688] sendmsg(27, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0SP\0\0000\0\0", iov_len=8}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL <unfinished ...> [pid 20639] <... times resumed>{tms_utime=94, tms_stime=64, tms_cutime=0, tms_cstime=0}) = 1719869224 [pid 20706] mprotect(0x7f5e1c000000, 135168, PROT_READ|PROT_WRITE <unfinished ...> [pid 20705] futex(0x7f5e8a89dda8, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1590679855, tv_nsec=655000000}, FUTEX_BITSET_MATCH_ANY <unfinished ...> [pid 20689] futex(0x564f3b194378, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> [pid 20639] write(2, "vdr: magick/semaphore.c:606: Loc"..., 121vdr: magick/semaphore.c:606: LockSemaphoreInfo: Zusicherung »semaphore_info != (SemaphoreInfo *) NULL« nicht erfüllt. <unfinished ...> [pid 20706] <... mprotect resumed>) = 0 [pid 20688] <... sendmsg resumed>) = 8 [pid 20639] <... write resumed>) = 121 [pid 20706] sendto(3, "<15>May 28 17:30:45 vdr: [20706]"..., 97, MSG_NOSIGNAL, NULL, 0 <unfinished ...> [pid 20690] <... futex resumed>) = 0 [pid 20689] <... futex resumed>) = 1

9000h commented 4 years ago

ok did catch this one in skinnopacity, so it's unrelated

--- skinnopacity.c.orig 2020-05-28 19:09:23.035210926 +0200
+++ skinnopacity.c  2020-05-28 19:09:37.619246610 +0200
@@ -96,6 +96,7 @@
 }

 bool cPluginNopacity::Initialize(void) {
+  InitializeMagick(NULL);
   return true;
 }
9000h commented 4 years ago

I'm unable to find a pattern jet for the intermittent non starting browser from the plugin, did you notice this also? the logging if the browser is really started would be helpful too

9000h commented 4 years ago

one error I get is as root when starting inside vdr [2020-05-29 12:02:54.740] [vdrosrbrowser] [info] /opt/vdr-osr-browser/vdrosrbrowser [2020-05-29 12:02:54.740] [vdrosrbrowser] [info] --debug [2020-05-29 12:02:54.740] [vdrosrbrowser] [info] --remote-debugging-port=9222 [2020-05-29 12:02:54.740] [vdrosrbrowser] [info] --user-data-dir=remote-profile Unable to bind nanomsg socket to ipc:///tmp/vdrosr_tovdr.ipc. Please check the file permissions. Aborting... this is probably when a browser process is not stoped

if I remove both ipc file before vdr starts it works srwxrwxrwx 1 root root 0 Mai 29 12:01 /tmp/vdrosr_tobrowser.ipc= srwxrwxrwx 1 root root 0 Mai 29 12:01 /tmp/vdrosr_tovdr.ipc=

9000h commented 4 years ago

looks better now

9000h commented 4 years ago

on ARD Mediathek I did found this one in the log but you may know it already

[0529/203554.755063:INFO:CONSOLE(29537)] "hbbtv-polyfill: BroadcastVideo release() ...2", source: client://js/hbbtv_polyfill.js (29537)
[0529/203554.767792:INFO:CONSOLE(28797)] "hbbtv-polyfill: BROADBAND VIDEO PLAYER ...", source: client://js/hbbtv_polyfill.js (28797)
[2020-05-29 20:35:54.768] [vdrosrbrowser] [debug] Javascript called me: VIDEO_URL:http://media.tagesschau.de/video/2020/0529/TV-20200529-2015-2900.webl.h264.mp4
[2020-05-29 20:35:54.768] [vdrosrbrowser] [debug] Video URL: http://media.tagesschau.de/video/2020/0529/TV-20200529-2015-2900.webl.h264.mp4
Send string  1 PLAY_VIDEO:
[2020-05-29 20:35:54.768] [vdrosrbrowser] [debug] Set Input video http://media.tagesschau.de/video/2020/0529/TV-20200529-2015-2900.webl.h264.mp4
[0529/203555.467827:INFO:CONSOLE(28580)] "hbbtv-polyfill: registerEmbeddedVideoPlayerEvents doc= [object HTMLDocument]", source: client://js/hbbtv_polyfill.js (28580)
[0529/203555.470536:INFO:CONSOLE(28460)] "Im Mapping, Play, speed = 1", source: client://js/hbbtv_polyfill.js (28460)
[2020-05-29 20:35:55.470] [vdrosrbrowser] [debug] Javascript called me: RESUME_VIDEO
[2020-05-29 20:35:55.470] [vdrosrbrowser] [debug] Video streaming resume
[2020-05-29 20:35:55.470] [vdrosrbrowser] [debug] Resume video
[2020-05-29 20:35:55.558] [vdrosrbrowser] [debug] ReadContentType http://cdn-gl.imrworldwide.com/novms/html/ls.html, Cookies i00=0037e520c2a1115195ed0dd8e0001%3B5ed155fb%3B6046002c;
[0529/203555.648039:INFO:CONSOLE(28736)] "hbbtv-polyfill: durationchanged", source: client://js/hbbtv_polyfill.js (28736)
[0529/203555.651348:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[0529/203555.651424:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[0529/203555.651458:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Zabrimus commented 4 years ago

I never got this error message: "Failed to connect to bus...". After some research i have found bus.cc and also the error message in the chromium sources. This has something to do with chromium and dbus connection, but i have no clue what's wrong and if it's possible to fix it. I dont't know if it's either a problem with cef or chromium internal or if it's system dependant.

9000h commented 4 years ago

I do had another issue, seen for the first time, the browser did crash

May 29 20:52:14 localhost vdr: [57335] [hbbtv] try to ping browser
May 29 20:52:14 localhost vdr: [57335] Send command 'KEY VK_RED'
May 29 20:52:14 localhost kernel: [55516.313592] traps: vdrosrbrowser[57348] general protection fault ip:7f07f3c5bc30 sp:7fff3105fb58 error:0 in libc-2.31.so[7f07f3af9000+178000]
May 29 20:52:17 localhost vdr: [57335] Send Key Command 'KEY VK_GREEN' to browser
May 29 20:52:17 localhost vdr: [57335] [hbbtv] try to ping browser
May 29 20:52:17 localhost vdr: [57335] Send command 'KEY VK_GREEN'
May 29 20:52:17 localhost vdr: [57335] Send Key Command 'KEY VK_YELLOW' to browser
May 29 20:52:17 localhost vdr: [57335] [hbbtv] try to ping browser
May 29 20:52:17 localhost vdr: [57335] Send command 'KEY VK_YELLOW'
May 29 20:52:18 localhost vdr: [57335] Send Key Command 'KEY VK_BLUE' to browser
May 29 20:52:18 localhost vdr: [57335] [hbbtv] try to ping browser
May 29 20:52:18 localhost vdr: [57335] Send command 'KEY VK_BLUE'
May 29 20:52:21 localhost vdr: [57335] Send Key Command 'KEY VK_RED' to browser
May 29 20:52:21 localhost vdr: [57335] [hbbtv] try to ping browser
May 29 20:52:22 localhost vdr: [57477] [softhddev]stopping OpenGL Worker Thread
May 29 20:52:22 localhost vdr: [57551] [softhddev]Cleaning up OpenGL stuff
May 29 20:52:22 localhost vdr: [57551] [softhddev]OglThread cleanup
May 29 20:52:23 localhost vdr: [57551] [softhddev]OpenGL Worker Thread Ended
May 29 20:52:23 localhost vdr: [57551] oglThread thread ended (pid=57335, tid=57551)
May 29 20:52:23 localhost vdr: [57477] [softhddev]OpenGL Worker Thread stopped
May 29 20:52:23 localhost vdr: video: crop to +0+0 1280x720
May 29 20:52:23 localhost vdr: video: stretch output 1920x995+0+0
May 29 20:52:23 localhost vdr: [57335] [hbbtv] browser is not running, command will be ignored
May 29 20:52:23 localhost vdr: [57335] ERROR: Browser is not running!
May 29 20:52:23 localhost vdr: [57335] ERROR: attempt to open OSD while it is already open - using dummy OSD!
May 29 20:52:23 localhost vdr: [57335] max. latency time 2 seconds
May 29 20:52:23 localhost vdr: [57335] Send Key Command 'KEY VK_RED' to browser
May 29 20:52:23 localhost vdr: [57335] [hbbtv] try to ping browser
May 29 20:52:25 localhost vdr: [57335] [hbbtv] browser is not running, command will be ignored
May 29 20:52:25 localhost vdr: [57335] ERROR: Browser is not running!

do you think it would make sense to try a browser restart?

Zabrimus commented 4 years ago

Exists there still some bugs which should be fixed? I plan to finally destroy the develop branch, if no release critical bug exists. The branch existed much longer, than expected.

9000h commented 4 years ago

I do have seen browser crashes, but not very often. The overall functionality is improved a lot, and make it to the master + a notice in the vdr-portal to get more user is a good idea.

9000h commented 4 years ago

hmm, there is one missing thing on ZDF when start with the RED button, on a regular tv you get the info popup on the right button but also a popup on the left BLUE button which is missing atm.

but wait, could it be only on HBBTV 2? hbbtv-blue-button-replay-120~_v-img__16__9__xl_-d31c35f8186ebeb80b0cd843a7c267a0e0c81647

Zabrimus commented 4 years ago

I also see a blue button on the left. But the caption is "Von vorne schauen..." on ZDF. And it vanishs very early. But pressing the blue button, the video starts immediately. On Alpha i have to wait some time, then it is shown.

While investigating some problems, i have tried to read many javascript files and there are always many conditions regarding the UserAgent (Samsung2012, ... Samsun2014, Panasonic and so on). Therefore it is possible that the application show a different behaviour on different TV and also this application.

I think i was sometimes too impatient. I have never seen the blue button before you mentioned it.

9000h commented 4 years ago

the master looks good here the only thing I did notice on ADR red then blue button gives an error here Screenshot from 2020-06-07 16-14-04

Zabrimus commented 4 years ago

The blue button to restart the currently played video on the channel? I will start some investigations.

9000h commented 4 years ago

on ARD red button some times the wrong page come up Screenshot from 2020-06-15 17-18-48

[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --enable-features=CastMediaRouteProvider
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --disable-features=OutOfBlinkCors
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --lang=de
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --service-sandbox-type=network
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --no-sandbox
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --locales-dir-path=/opt/cef/lib/locales
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --log-file=/opt/vdr-osr-browser/debug.log
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --resources-dir-path=/opt/cef/lib
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --user-agent=HbbTV/1.4.1 (+DRM;Samsung;SmartTV2015;T-HKM6DEUC-1490.3;;) OsrTvViewer
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --lang=en-US
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --log-file=/opt/vdr-osr-browser/debug.log
[2020-06-15 17:16:46.426] [vdrosrbrowser] [info]    --shared-files=v8_snapshot_data:100
[0615/171646.515833:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[2020-06-15 17:17:36.510] [vdrosrbrowser] [debug] ReadContentType http://itv.ard.de/ardstart/index.html, Cookies ardstart=rbp*1*rangeid*202006*ra*202006*u*f8sgomcf2n75uvy6z9v0ag*v*3*ts*15915560;
[2020-06-15 17:17:36.597] [vdrosrbrowser] [debug] BrowserClient::ProcessRequest: http://itv.ard.de/ardstart/index.html, Method: GET
[2020-06-15 17:17:36.597] [vdrosrbrowser] [debug] HbbtvCurl::LoadUrl http://itv.ard.de/ardstart/index.html, Cookies ardstart=rbp*1*rangeid*202006*ra*202006*u*f8sgomcf2n75uvy6z9v0ag*v*3*ts*15915560;
[2020-06-15 17:17:36.650] [vdrosrbrowser] [debug] BrowserClient::ReadResponse, bytes_to_read 65536
[2020-06-15 17:17:36.650] [vdrosrbrowser] [debug] BrowserClient::ReadResponse, bytes_to_read 63513
[0615/171736.954797:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at http://ioam.de/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.", source: http://itv.ard.de/ardstart/index.html (0)
[0615/171737.270607:INFO:CONSOLE(1)] "Uncaught SyntaxError: Unexpected token ';'", source: http://itv.ard.de/ardstart/index.html (1)
[0615/171737.579946:INFO:CONSOLE(29276)] "hbbtv-polyfill: keyEventInit", source: client://js/hbbtv_polyfill.js (29276)
[0615/171753.060294:INFO:CONSOLE(29352)] "hbbtv-polyfill: browser keydown 116 internal true", source: client://js/hbbtv_polyfill.js (29352)
[2020-06-15 17:17:53.096] [vdrosrbrowser] [debug] ReadContentType https://de.ioam.de/aid.io?st=ctvardpr&cp=ard_start_hbbtv&pt=CP&ps=lin&er=N22&rf=&r2=&ur=itv.ard.de&xy=1280x720x0&lo=DE%2FBayern&cb=000a&i2=000ac00f8520cc4745ee79110&ep=1619999995&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1592234273074&ev=&u2=http%3A%2F%2Fitv.ard.de%2Fardstart%2Findex.html&cs=z35naj&mo=1, Cookies i00=00359279287d7f7dc5edd37bf0001%3B5ee63734%3B608ce0c0;
[2020-06-15 17:17:53.340] [vdrosrbrowser] [debug] BrowserClient::ProcessRequest: https://de.ioam.de/aid.io?st=ctvardpr&cp=ard_start_hbbtv&pt=CP&ps=lin&er=N22&rf=&r2=&ur=itv.ard.de&xy=1280x720x0&lo=DE%2FBayern&cb=000a&i2=000ac00f8520cc4745ee79110&ep=1619999995&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1592234273074&ev=&u2=http%3A%2F%2Fitv.ard.de%2Fardstart%2Findex.html&cs=z35naj&mo=1, Method: GET
[2020-06-15 17:17:53.340] [vdrosrbrowser] [debug] HbbtvCurl::LoadUrl https://de.ioam.de/aid.io?st=ctvardpr&cp=ard_start_hbbtv&pt=CP&ps=lin&er=N22&rf=&r2=&ur=itv.ard.de&xy=1280x720x0&lo=DE%2FBayern&cb=000a&i2=000ac00f8520cc4745ee79110&ep=1619999995&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1592234273074&ev=&u2=http%3A%2F%2Fitv.ard.de%2Fardstart%2Findex.html&cs=z35naj&mo=1, Cookies i00=00359279287d7f7dc5edd37bf0001%3B5ee63734%3B608ce0c0;
[2020-06-15 17:17:53.562] [vdrosrbrowser] [debug] BrowserClient::ReadResponse, bytes_to_read 65536
[2020-06-15 17:17:53.563] [vdrosrbrowser] [debug] BrowserClient::ReadResponse, bytes_to_read 60350
[0615/171753.567452:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at http://xiti.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.", source: http://itv.ard.de/ardstart/index.html (0)
[0615/171755.036074:INFO:CONSOLE(29352)] "hbbtv-polyfill: browser keydown 116 internal true", source: client://js/hbbtv_polyfill.js (29352)
[2020-06-15 17:17:55.056] [vdrosrbrowser] [debug] ReadContentType https://de.ioam.de/aid.io?st=ctvardpr&cp=ard_start_hbbtv&pt=CP&ps=lin&er=N22&rf=&r2=&ur=itv.ard.de&xy=1280x720x0&lo=DE%2FBayern&cb=000a&i2=000ac00f8520cc4745ee79110&ep=1619999995&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1592234275042&ev=&u2=http%3A%2F%2Fitv.ard.de%2Fardstart%2Findex.html&cs=ruc83p&mo=1, Cookies i00=00359279287d7f7dc5edd37bf0001%3B5ee79121%3B608ce0c0;
[0615/171756.086695:INFO:CONSOLE(29352)] "hbbtv-polyfill: browser keydown 116 internal true", source: client://js/hbbtv_polyfill.js (29352)
[2020-06-15 17:17:56.101] [vdrosrbrowser] [debug] ReadContentType https://de.ioam.de/aid.io?st=ctvardpr&cp=ard_start_hbbtv&pt=CP&ps=lin&er=N22&rf=&r2=&ur=itv.ard.de&xy=1280x720x0&lo=DE%2FBayern&cb=000a&i2=000ac00f8520cc4745ee79110&ep=1619999995&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1592234276089&ev=&u2=http%3A%2F%2Fitv.ard.de%2Fardstart%2Findex.html&cs=bjd6r4&mo=1, Cookies i00=00359279287d7f7dc5edd37bf0001%3B5ee79123%3B608ce0c0;
[0615/171756.736804:INFO:CONSOLE(29352)] "hbbtv-polyfill: browser keydown 116 internal true", source: client://js/hbbtv_polyfill.js (29352)
[2020-06-15 17:17:56.753] [vdrosrbrowser] [debug] ReadContentType https://de.ioam.de/aid.io?st=ctvardpr&cp=ard_start_hbbtv&pt=CP&ps=lin&er=N22&rf=&r2=&ur=itv.ard.de&xy=1280x720x0&lo=DE%2FBayern&cb=000a&i2=000ac00f8520cc4745ee79110&ep=1619999995&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1592234276739&ev=&u2=http%3A%2F%2Fitv.ard.de%2Fardstart%2Findex.html&cs=tu54tk&mo=1, Cookies i00=00359279287d7f7dc5edd37bf0001%3B5ee79124%3B608ce0c0;
[0615/171757.520808:INFO:CONSOLE(29352)] "hbbtv-polyfill: browser keydown 116 internal true", source: client://js/hbbtv_polyfill.js (29352)
[2020-06-15 17:17:57.533] [vdrosrbrowser] [debug] ReadContentType https://de.ioam.de/aid.io?st=ctvardpr&cp=ard_start_hbbtv&pt=CP&ps=lin&er=N22&rf=&r2=&ur=itv.ard.de&xy=1280x720x0&lo=DE%2FBayern&cb=000a&i2=000ac00f8520cc4745ee79110&ep=1619999995&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1592234277523&ev=&u2=http%3A%2F%2Fitv.ard.de%2Fardstart%2Findex.html&cs=prmwmh&mo=1, Cookies i00=00359279287d7f7dc5edd37bf0001%3B5ee79125%3B608ce0c0;
Zabrimus commented 4 years ago

This is something i also have and also the reason why i'm injecting the current channel information into the HTML page. Your screen is the default screen, Javascript catches the channel information and fills the screen with valid data via xmlhttprequest. But i don't know why it takes so much time and it's not something i'm able to change or fix, because these are the scripts from ARD itself. And i don't have a chance to get any event when the page has been filled with real data.

9000h commented 4 years ago

hmm, some time it get the right page ARD, but did you notice the "Event 1, umlaut ä" on top Screenshot from 2020-06-17 20-09-43 it's also showing up on ORF1 Screenshot from 2020-06-17 20-14-41

9000h commented 4 years ago

great improved ! there is still a issue on the NTV channel, where the browser is crashing but that is not important atm the navigation on Tageschau is only working partially only the numbers work

9000h commented 4 years ago

there are also some issues on ORF and SRF1 the last lines from SRF the video did not play

[2020-06-25 17:55:55.702] [browser] [debug] ReadContentType https://at.iocnt.net/aid.io?cn=at&st=at_w_atorf&cp=RedCont%2FNachrichten%2FNachrichtenueberblick%2Fv1news%2Ffront%2Fhbbtv&ps=lin&pt=CP&rf=orfhbbtv.orf.at&r2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fteletext%2Findex.html.id.teletext.ref.portal&ur=orfhbbtv.orf.at&xy=1280x720x0&lo=DE%2FBayern&cb=0004&i2=0004753c027c76d365ef4c8cd&ep=1617673650&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1593100555686&ev=&u2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fnewsportal%2Findex.html%3Fid%3Dportal%26ref%3Dteletext&cs=27k9jf&mo=1, Cookies i00=0001eac3cf39f798a5ef4c8cd0001%3B5ef4c908%3B6038bdf8; 
[2020-06-25 17:55:55.943] [browser] [info] JS WARNING: Source http://orfhbbtv.orf.at/orf/newsportal/index.html?id=portal&ref=teletext:0, Message: A cookie associated with a cross-site resource at http://iocnt.net/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
[2020-06-25 17:55:56.242] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29297, Message: hbbtv-polyfill: call init
[2020-06-25 17:55:56.242] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29248, Message: hbbtv-polyfill: load
[2020-06-25 17:55:56.242] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29319, Message: hbbtv-polyfill: keyEventInit
[2020-06-25 17:55:56.242] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:28841, Message: hbbtv-polyfill: BROADCAST VIDEO PLAYER ...
[2020-06-25 17:55:56.242] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29521, Message: hbbtv-polyfill: Create video to oipf object mapper.
[2020-06-25 17:55:56.242] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29538, Message: hbbtv-polyfill: BROADCAST VIDEO PLAYER ... ADDED
[2020-06-25 17:55:56.242] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29289, Message: hbbtv-polyfill: loaded
[2020-06-25 17:55:56.242] [browser] [error] JS ERROR: Source http://orfhbbtv.orf.at/orf/newsportal/minjs/min_hbbtvlib_newsportal_1_9_8.js:16, Message: Refused to get unsafe header "Date"
[2020-06-25 17:55:56.242] [browser] [error] JS ERROR: Source http://orfhbbtv.orf.at/orf/newsportal/minjs/min_hbbtvlib_newsportal_1_9_8.js:16, Message: Refused to get unsafe header "Date"
[2020-06-25 17:55:56.242] [browser] [error] JS ERROR: Source http://orfhbbtv.orf.at/orf/newsportal/minjs/min_hbbtvlib_newsportal_1_9_8.js:16, Message: Refused to get unsafe header "Date"
[2020-06-25 17:55:56.242] [browser] [error] JS ERROR: Source http://orfhbbtv.orf.at/orf/newsportal/minjs/min_hbbtvlib_newsportal_1_9_8.js:16, Message: Refused to get unsafe header "Date"
[2020-06-25 17:55:56.351] [browser] [debug] JS: Title changed to ORF SMART
[2020-06-25 17:56:00.609] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 40 internal true
[2020-06-25 17:56:01.504] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 38 internal true
[2020-06-25 17:56:02.204] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 39 internal true
[2020-06-25 17:56:03.221] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 13 internal true
[2020-06-25 17:56:03.332] [browser] [debug] ReadContentType https://at.iocnt.net/aid.io?cn=at&st=at_w_atorf&cp=RedCont%2FNachrichten%2FChronik%2Fv3oeka%2Fv2tir%2Fv2lana%2Fstories%2F%2F3054826%2Fhbbtv&ps=lin&pt=CP&rf=orfhbbtv.orf.at&r2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fteletext%2Findex.html.id.teletext.ref.portal&ur=orfhbbtv.orf.at&xy=1280x720x0&lo=DE%2FBayern&cb=0004&i2=0004753c027c76d365ef4c8cd&ep=1617673650&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1593100563297&ev=&u2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fnewsportal%2Findex.html%3Fid%3Dportal%26ref%3Dteletext&cs=ijfr8p&mo=1, Cookies i00=0001eac3cf39f798a5ef4c8cd0001%3B5ef4c90c%3B6038bdf8; 
[2020-06-25 17:56:03.907] [browser] [debug] JS: Title changed to ORF SMART
[2020-06-25 17:56:05.189] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 39 internal true
[2020-06-25 17:56:05.229] [browser] [debug] ReadContentType https://at.iocnt.net/aid.io?cn=at&st=at_w_atorf&cp=RedCont%2FNachrichten%2FChronik%2Fv3oeka%2Fv2tir%2Fv2lana%2Fstories%2F%2F3054826%2Fhbbtv&ps=lin&pt=CP&rf=orfhbbtv.orf.at&r2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fteletext%2Findex.html.id.teletext.ref.portal&ur=orfhbbtv.orf.at&xy=1280x720x0&lo=DE%2FBayern&cb=0004&i2=0004753c027c76d365ef4c8cd&ep=1617673650&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1593100565203&ev=&u2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fnewsportal%2Findex.html%3Fid%3Dportal%26ref%3Dteletext&cs=g7ch8k&mo=1, Cookies i00=0001eac3cf39f798a5ef4c8cd0001%3B5ef4c913%3B6038bdf8; 
[2020-06-25 17:56:05.546] [browser] [debug] JS: Title changed to ORF SMART
[2020-06-25 17:56:05.922] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 39 internal true
[2020-06-25 17:56:05.954] [browser] [debug] ReadContentType https://at.iocnt.net/aid.io?cn=at&st=at_w_atorf&cp=RedCont%2FNachrichten%2FChronik%2Fv3oeka%2Fv2tir%2Fv2lana%2Fstories%2F%2F3054826%2Fhbbtv&ps=lin&pt=CP&rf=orfhbbtv.orf.at&r2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fteletext%2Findex.html.id.teletext.ref.portal&ur=orfhbbtv.orf.at&xy=1280x720x0&lo=DE%2FBayern&cb=0004&i2=0004753c027c76d365ef4c8cd&ep=1617673650&vr=416&id=j5ycsv&i3=nocookie&n1=1&dntt=0&lt=1593100565935&ev=&u2=http%3A%2F%2Forfhbbtv.orf.at%2Forf%2Fnewsportal%2Findex.html%3Fid%3Dportal%26ref%3Dteletext&cs=3dtpah&mo=1, Cookies i00=0001eac3cf39f798a5ef4c8cd0001%3B5ef4c915%3B6038bdf8; 
[2020-06-25 17:56:06.287] [browser] [debug] JS: Title changed to ORF SMART
[2020-06-25 17:56:06.289] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 40 internal true
[2020-06-25 17:56:07.190] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 38 internal true
[2020-06-25 17:56:07.907] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 38 internal true
[2020-06-25 17:56:10.930] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 403 internal true
[2020-06-25 17:56:12.825] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 39 internal true
[2020-06-25 17:56:26.495] [browser] [debug] ReadContentType http://hbbtv.swisstxt.ch/v3/index.html?customer=srf&channel=srf1, Cookies 
[2020-06-25 17:56:26.619] [browser] [debug] BrowserClient::ProcessRequest: http://hbbtv.swisstxt.ch/v3/index.html?customer=srf&channel=srf1, Method: GET
[2020-06-25 17:56:26.619] [browser] [debug] HbbtvCurl::LoadUrl http://hbbtv.swisstxt.ch/v3/index.html?customer=srf&channel=srf1, Cookies 
[2020-06-25 17:56:26.728] [browser] [debug] BrowserClient::ReadResponse, bytes_to_read 65536
[2020-06-25 17:56:26.729] [browser] [debug] BrowserClient::ReadResponse, bytes_to_read 63919
[2020-06-25 17:56:26.753] [browser] [info] JS: Change Frame URL to http://hbbtv.swisstxt.ch/v3/index.html?customer=srf&channel=srf1
[2020-06-25 17:56:26.777] [browser] [debug] ReadContentType http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1, Cookies 
[2020-06-25 17:56:26.898] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29578, Message: hbbtv-polyfill: BroadcastVideo release() ...2
[2020-06-25 17:56:26.899] [browser] [debug] BrowserClient::ProcessRequest: http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1, Method: GET
[2020-06-25 17:56:26.899] [browser] [debug] HbbtvCurl::LoadUrl http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1, Cookies 
[2020-06-25 17:56:26.978] [browser] [debug] BrowserClient::ReadResponse, bytes_to_read 65536
[2020-06-25 17:56:26.979] [browser] [debug] BrowserClient::ReadResponse, bytes_to_read 64366
[2020-06-25 17:56:27.012] [browser] [info] JS: Change Frame URL to http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1
[2020-06-25 17:56:27.012] [browser] [debug] JS: Title changed to HbbTV by SwissTXT
[2020-06-25 17:56:28.389] [browser] [info] JS: Change Frame URL to http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo
[2020-06-25 17:56:28.418] [browser] [debug] JS: Title changed to HbbTV by SwissTXT
[2020-06-25 17:56:28.648] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29297, Message: hbbtv-polyfill: call init
[2020-06-25 17:56:28.648] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29248, Message: hbbtv-polyfill: load
[2020-06-25 17:56:28.649] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29319, Message: hbbtv-polyfill: keyEventInit
[2020-06-25 17:56:28.651] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:28841, Message: hbbtv-polyfill: BROADCAST VIDEO PLAYER ...
[2020-06-25 17:56:28.651] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29521, Message: hbbtv-polyfill: Create video to oipf object mapper.
[2020-06-25 17:56:28.653] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29538, Message: hbbtv-polyfill: BROADCAST VIDEO PLAYER ... ADDED
[2020-06-25 17:56:28.673] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29289, Message: hbbtv-polyfill: loaded
[2020-06-25 17:56:35.393] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 403 internal true
[2020-06-25 17:56:35.402] [browser] [info] JS: Change Frame URL to http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo/v:launchbar
[2020-06-25 17:56:35.402] [browser] [debug] JS: Title changed to HbbTV by SwissTXT
[2020-06-25 17:56:35.767] [browser] [info] JS: Change Frame URL to http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo/v:launchbar/a:play-srf
[2020-06-25 17:56:35.767] [browser] [debug] JS: Title changed to HbbTV by SwissTXT
[2020-06-25 17:56:36.318] [browser] [info] JS WARNING: Source http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo/v:launchbar/a:play-srf:0, Message: A cookie associated with a cross-site resource at http://serverside3666.tagcommander.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
[2020-06-25 17:56:36.489] [browser] [info] JS WARNING: Source http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo/v:launchbar/a:play-srf:0, Message: A cookie associated with a cross-site resource at http://wemfbox.ch/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
[2020-06-25 17:56:36.489] [browser] [info] JS WARNING: Source http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo/v:launchbar/a:play-srf:0, Message: A cookie associated with a cross-site resource at http://sftv.wemfbox.ch/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
[2020-06-25 17:56:36.489] [browser] [info] JS WARNING: Source http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo/v:launchbar/a:play-srf:0, Message: A cookie associated with a cross-site resource at http://tagcommander.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
[2020-06-25 17:56:43.196] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 39 internal true
[2020-06-25 17:56:44.890] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29395, Message: hbbtv-polyfill: browser keydown 13 internal true
[2020-06-25 17:56:44.892] [browser] [info] JS: Change Frame URL to http://hbbtv.swisstxt.ch/v3/app.html?customer=srf&channel=srf1#/v:promo/v:launchbar/a:play-srf/v:player/a:2d207d6d-b9fe-4c8f-a56b-25e8c58f0982/a:play-srf
[2020-06-25 17:56:44.892] [browser] [debug] JS: Title changed to HbbTV by SwissTXT
[2020-06-25 17:56:46.334] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:29578, Message: hbbtv-polyfill: BroadcastVideo release() ...2
[2020-06-25 17:56:46.336] [browser] [debug] JS: Title changed to HbbTV by SwissTXT
[2020-06-25 17:56:46.336] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:28848, Message: hbbtv-polyfill: BROADBAND VIDEO PLAYER ...
[2020-06-25 17:56:46.338] [browser] [debug] Javascript called me: VIDEO_URL:
[2020-06-25 17:56:46.338] [browser] [debug] Video URL: 
[2020-06-25 17:56:46.338] [browser] [debug] Set Input video 
[2020-06-25 17:56:46.508] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:28635, Message: hbbtv-polyfill: registerEmbeddedVideoPlayerEvents doc= [object HTMLDocument]
[2020-06-25 17:56:46.518] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:28478, Message: Im Mapping, Play, speed = 1
[2020-06-25 17:56:46.518] [browser] [debug] Javascript called me: RESUME_VIDEO
[2020-06-25 17:56:46.518] [browser] [debug] Video streaming resume
[2020-06-25 17:56:46.518] [browser] [debug] Resume video
[2020-06-25 17:56:46.518] [browser] [debug] Javascript called me: CHANGE_VIDEO_URL:http://hbbtvsource.srf.ch/file/world/hbbtv/bf7b88a1-188e-4754-b9f7-23c6b7e68a1c
[2020-06-25 17:56:46.518] [browser] [debug] Video URL: http://hbbtvsource.srf.ch/file/world/hbbtv/bf7b88a1-188e-4754-b9f7-23c6b7e68a1c
[2020-06-25 17:56:46.519] [browser] [debug] Set Input video http://hbbtvsource.srf.ch/file/world/hbbtv/bf7b88a1-188e-4754-b9f7-23c6b7e68a1c
[2020-06-25 17:56:46.519] [browser] [debug] Stop video
Zabrimus commented 4 years ago

I tagged the current version, because i assume that fixing n-tv and tagesschau could be difficult and needs some time. And also the MPEG-DASH videos (e.g. tagesschau) will need some more investigations. The video events fpr MPEG-DASH are not that usable, because e.g. "seek to" is meant as "seek to" byte position instead the usual "seek to" time.

I have one problem with ORF and SRF1: I cannot receive both channels, because my cable provider does not provide them. But hopefully i can use the links in your last post to be able to test something.

9000h commented 4 years ago

not sure if this is useful or not https://github.com/OpenPLi/enigma2/pull/1212/commits/044ee64d1b4bc13937e93293420d1397a3f072ee#diff-e39bdf88cb0f5896f405bc32f5ad16eeL300-R303

9000h commented 4 years ago

what I found in the browser cache in regards to encoding, not sure if this is of any help strings "/opt/vdr-osr-browser/cache/Code Cache/js/2238e752f4f7ccfa_0"|grep utf -i application/x-www-form-urlencoded; charset=UTF-8

9000h commented 4 years ago

not sure if there is any useful to find, a topfield project https://forum.tms-taps.net/viewtopic.php?f=118&t=51214&start=140

9000h commented 4 years ago

there is another plugin for chrome https://chrome.google.com/webstore/detail/redorbit-hbbtv-emulator/mmgfafehampkahlmoahbjcjcmgmkppab?hl=en

Zabrimus commented 4 years ago

The topfield project is interessting. It's nice to see that other ones falls into the same pitfalls as me ;) And also the Tagesschau problem has been rudimentary resolved. Interessting solution. I think, i will give it a try. The other plugin will also be checked.

Thanks for pointing to these sites!

9000h commented 4 years ago

there are some updates https://github.com/karl-rousseau/HybridTvViewer/commits/master

9000h commented 4 years ago

can this comment help us https://chrome.google.com/webstore/detail/redorbit-hbbtv-emulator/mmgfafehampkahlmoahbjcjcmgmkppab

9000h commented 4 years ago

if you not have it already for tests http://urju.de/hbbtv/

9000h commented 4 years ago

not sure how to debug this, on ARD Tatort the text encoding is not right "Ihr Wunsch-"Tatort"" is shown Screenshot from 2020-07-25 18-11-01

[2020-07-25 18:01:57.817] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:1225, Message: XMLHttpRequest.async: true
[2020-07-25 18:01:57.818] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:1226, Message: XMLHttpRequest.url: api.php/broadcastsearch-100.jsp?assetType=hybrid&id=ihr-wunsch-tatort-162
[2020-07-25 18:01:57.818] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:1230, Message: XMLHttpRequest.newurl: api.php/broadcastsearch-100.jsp?assetType=hybrid&id=ihr-wunsch-tatort-162
[2020-07-25 18:01:58.075] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:1234, Message: XMLHttpRequest: url api.php/broadcastsearch-100.jsp?assetType=hybrid&id=ihr-wunsch-tatort-162, load: {^M
                                "status" : "ok",^M
                                "result" : {^M
                                        "broadcasts" : [^M
                                                {"id":"ihr-wunsch-tatort-162","name":"Ihr Wunsch-&#034;Tatort&#034;","descriptionShort":"Deutschlands älteste und erfolgreichste Krimi-Reihe wird 50! Die Zuschauerinnen und Zuschauer haben die Wahl und können ihr \"Tatort\"-Programm an elf Sonntagen im Sommer selbst bestimmen.","textHTML":"","date":"2020-07-26T20:15:00.000+02:00","url":"https://www.daserste.de/api/unterhaltung/krimi/tatort/sendung/ihr-wunsch-tatort-162.json","onlineFirst":"","webUrl":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/ihr-wunsch-tatort-162.html","serialProgram":{"id":"tatort-hierarchydocument-100","broadcastCrid":"crid://daserste.de/tatort","serialProgramId":"tatort","serialProgramName":"Tatort","searchCategories":["krimi","film"],"url":"https://www.daserste.de/api/unterhaltung/krimi/tatort/tatort-hierarchydocument-100.json"},"images":[{"id":"wunschtatort-voting-100","alttext":"Wunsch-Tatort Voting ","caption":"Sie haben die Wahl: Wählen Sie Ihren Lieblingsfall! ","captionLong":"","imageUrls":{"varhbbtvm":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-varhbbtvm.jpg","varl":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-varl.jpg","varm":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-varm.jpg","vars":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-vars.jpg","varvideol":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-varvideol.jpg","varxl":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-varxl.jpg","varxxl":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-varxxl.jpg","varxxs":"https://www.daserste.de/unterhaltung/krimi/tatort/specials/wunschtatort-voting-100~_v-varxxs.jpg"}},{"id":"23_Tatort_Das_Muli-100","alttext":"Nina Rubin und Robert Karow lösen ihren ersten Fall. Karow beginnt seinen ersten Arbeitstag an einem blutigen Tatort ohne Leiche. Das Team beginnt zu ermitteln, doch Nina ist skeptisch, weil ihrem Kollegen ein fragwürdiger Ruf vorauseilt. Tatort: \"Das Muli\" | 22.03.2015","caption":"Sie haben die Wahl: Wählen Sie Ihre Lieblingsermittler!","captionLong":"Nina Rubin und Robert Karow lösen ihren ersten Fall. Karow beginnt seinen ersten Arbeitstag an einem blutigen Tatort ohne Leiche. Das Team beginnt zu ermitteln, doch Nina ist skeptisch, weil ihrem Kollegen ein fragwürdiger Ruf vorauseilt. Tatort: \"Das Muli\" | 22.03.2015","imageUrls":{"varhbbtvm":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-varhbbtvm.jpg","varl":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-varl.jpg","varm":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-varm.jpg","vars":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-vars.jpg","varvideol":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-varvideol.jpg","varxl":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-varxl.jpg","varxxl":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-varxxl.jpg","varxxs":"https://www.daserste.de/unterhaltung/krimi/tatort/sendung/23_Tatort_Das_Muli-100~_v-varxxs.jpg"}}],"videos":[]}^M
                                        ]^M
                                }^M
                        }
[2020-07-25 18:01:58.079] [browser] [debug] JS: Title changed to Das Erste Tatort-App für HbbTV
Zabrimus commented 4 years ago

Ah okay. You have found the source of the wrong title. " | Anführungszeichen oben | &quot; | &#34; | &#x0022; The main question is, why is it not converted while showing it in the page?

9000h commented 4 years ago

same here on ARD Alpha , on the top Event 1, umlaut ä Screenshot from 2020-07-25 18-32-25

9000h commented 4 years ago

hmm https://github.com/opensource-hisense/SmartTV-SeriesL/blob/master/nfbe/content/renderer/hbbtv_support/oipf_hbbtv_key_event_support.cc

Zabrimus commented 4 years ago

At some other places in the Tatort site, they are using \" to show an quotation mark and this is working as expected. Why this one place exists, where &#034; is used is not understandable. The browser makes then "\&#034;" out of this string to show exactly "\"" in the page :(

9000h commented 4 years ago

hmm, my Panasonic TV (2016) did show the same :-1: so it's maybe the content itself

but whats about ARD Alpha there seem to be somthing

Zabrimus commented 4 years ago

I've searched the source code of the hbbtv javascript and found this:

        oipfPluginObject.programmes = [];
        oipfPluginObject.programmes.push({ name: 'Event 1, umlaut \u00e4', channelId: 'ccid:dvbt.0', duration: 600, startTime: Date.now() / 1000, description: 'EIT present event is under construction' });
        oipfPluginObject.programmes.push({ name: 'Event 2, umlaut \u00f6', channelId: 'ccid:dvbt.0', duration: 300, startTime: Date.now() / 1000 + 600, description: 'EIT following event is under construction' });

This means, that the Browser needs some epg or program information from VDR. Some other channels are receiving the program information directly from their servers, but not all.

To solve this, i have to modify both plugin and browser and exchange current program information. I will add a TODO in my new list :)

9000h commented 4 years ago

in regards to NTV and all the other private channels do you see any possible workaround to make the osd area in front of the scaled video transparent or is there still a general issue like here Screenshot from 2020-07-26 11-10-45 and by using the full screen button the video is not shown in full screen

Zabrimus commented 4 years ago

Hmm. The scaled TV and also the scaled videos (like in n-tv) are currently under investigation. The n-tv videos are now visible, but playing is far from good. And i'm not sure, what exactly the problem is.

I've not tested the fullscreen button. But i will.

9000h commented 4 years ago

did you notice the video overlaps the osd in my last screenshot?

Zabrimus commented 4 years ago

Hmm. I have overlooked this. Ohh. This could be very difficult to solve... I have to check this

9000h commented 4 years ago

going, better and better :+1: did you notice on RTL II, if the fullscreen button is hit no scaling is happen Screenshot from 2020-07-28 18-54-40

9000h commented 4 years ago

on pro7 if you hit green the live video is not going away

and found also this one

[2020-07-28 20:58:58.360] [browser] [info] JS INFO: Source client://js/beforeend.js:2, Message: hbbtv-polyfill: The last script called.... [2020-07-28 20:58:58.360] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:740, Message: hbbtv-polyfill: Init VideoHandler [2020-07-28 20:58:58.360] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:757, Message: hbbtv-polyfill: BROADCAST VIDEO PLAYER ... [2020-07-28 20:58:58.360] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:1591, Message: hbbtv-polyfill: Create video to oipf object mapper. [2020-07-28 20:58:58.360] [browser] [info] JS INFO: Source client://js/hbbtv_polyfill.js:1598, Message: hbbtv-polyfill: injectBroadcastVideoMethods, length 1 [2020-07-28 20:58:58.361] [browser] [error] JS ERROR: Source client://js/hbbtv_polyfill.js:1706, Message: Uncaught TypeError: Cannot assign to read only property 'getChannelConfig' of object '#' [2020-07-28 20:58:59.946] [browser] [debug] JS: Title changed to Red Button prod

[2020-07-28 20:59:26.015] [browser] [info] JS: Change Frame URL to http://hbbtv.redbutton.de/extern/redorbit/hbbtv/apps/mediathek/v3/web/p7de/home/p7de
[2020-07-28 20:59:26.044] [browser] [error] JS ERROR: Source http://hbbtv.redbutton.de/extern/redorbit/hbbtv/apps/mediathek/v3/web/p7de/home/p7de:12, Message: Uncaught SyntaxError: Unexpected token ';'
[2020-07-28 20:59:26.045] [browser] [debug] JS: Title changed to Mediathek

Screenshot from 2020-07-28 20-59-47

9000h commented 4 years ago

with latest git, not sure how I did trigger the crash

Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] OsdDispatcher: Reopen HbbtvPage Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] Construct HbbtvPage... Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] Show Browser Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage Show() Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage Display() Jul 28 20:58:33 localhost vdr: [96649] [softhddev]CreateOsd: left 0, top 0, level 0, using OpenGL OSD support Jul 28 20:58:33 localhost vdr: [96649] [softhddev]cOglOsd osdLeft 0 osdTop 0 screenWidth 1920 screenHeight 1080 Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage SetOsdSize() Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage SetOsdSize, Get new OSD size Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] Area size set to 0:0 - 1919:1079 Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage SetOsdSize, Mutex Lock Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage SetOsdSize, Create pixmap 1920x1080 Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage SetOsdSize, Clear Pixmap Jul 28 20:58:33 localhost vdr: [96649] [hbbtv] HbbtvPage SetOsdSize, Mutex unlock Jul 28 20:58:39 localhost vdr: [96649] [hbbtv] Send Key Command 'KEY VK_RED' to browser Jul 28 20:58:39 localhost kernel: [111984.534330] traps: vdrosrbrowser[96997] general protection fault ip:562270491c30 sp:7ffc5bbe5a30 error:0 in vdrosrbrowser[56227045c000+19d000] Jul 28 20:58:39 localhost vdr: [96687] [hbbtv] Received Status: STOP_VIDEO Jul 28 20:58:39 localhost systemd[1]: Starting Process error reports when automatic reporting is enabled... Jul 28 20:58:41 localhost vdr: [96649] [hbbtv] Send Key Command 'KEY VK_RED' to browser Jul 28 20:58:41 localhost vdr: [96649] [hbbtv] Send Key Command 'KEY VK_RED' to browser

Zabrimus commented 4 years ago

The video disappears now after using the green button - hopefully.

I already tried to find the reason for

[2020-07-28 20:58:58.361] [browser] [error] JS ERROR: Source client://js/hbbtv_polyfill.js:1706, Message: Uncaught TypeError: Cannot assign to read only property 'getChannelConfig' of object '#'

but yet without success. I know the line, but not the reason.

I assume this one is coming from the server scripts. I don't have a change to fix it. But is it reproducible? And how exactly? Then i will take a look, just to be sure.

[2020-07-28 20:59:26.044] [browser] [error] JS ERROR: Source http://hbbtv.redbutton.de/extern/redorbit/hbbtv/apps/mediathek/v3/web/p7de/home/p7de:12, Message: Uncaught SyntaxError: Unexpected token ';'

did you notice on RTL II, if the fullscreen button is hit no scaling is happen

I already have seen this. I think the video plays behind the OSD, right?

Jul 28 20:58:39 localhost kernel: [111984.534330] traps: vdrosrbrowser[96997] general protection fault ip:562270491c30 sp:7ffc5bbe5a30 error:0 in vdrosrbrowser[56227045c000+19d0

This is hopefully fixed with the last commit. I was finally able to get a backtrace for at least one segfault.

did you notice the video overlaps the osd in my last screenshot?

I have an idea how to fix this, but i have to experiment a little bit.