Bug 227120 - [GTK][MiniBrowser] AudioTrack label not decoded?
Summary: [GTK][MiniBrowser] AudioTrack label not decoded?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2021-06-17 06:44 PDT by luigifab
Modified: 2021-06-17 06:46 PDT (History)
1 user (show)

See Also:


Attachments
Screenshot of the video with console results (231.99 KB, image/png)
2021-06-17 06:46 PDT, luigifab
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description luigifab 2021-06-17 06:44:46 PDT
OS: Debian Testing amd64
Package: libwebkit2gtk-4.0-37 (v2.32.1-2) (http://ftp2.fr.debian.org/debian/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.32.1-2_amd64.deb)

Command line used: /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/MiniBrowser --enable-media-stream=True --enable-encrypted-media=True --enable-media-capabilities=True

Go to: https://www.luigifab.fr/sintel-en-fr.webm (IPv6 required)

Run in console (F12): document.querySelector('video').audioTracks[0]
Result is: AudioTrack, ... label: "english" ...

Run in console (F12): document.querySelector('video').audioTracks[1]
Result is: AudioTrack, ... label: "français" ...


Do the same with Chrome 91, Edge 91 and Opera 77 (after enabling Experimental Web Platform features in chrome://flags).
The second result is always: AudioTrack, ... label: "français" ...


With MiniBrowser, I can "fix" the label with: decodeURIComponent(escape(label))
Comment 1 luigifab 2021-06-17 06:46:26 PDT
Created attachment 431657 [details]
Screenshot of the video with console results