Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Hbbtv devices #610

Closed
wants to merge 21 commits into from
Closed

Support Hbbtv devices #610

wants to merge 21 commits into from

Conversation

garritfra
Copy link
Contributor

@garritfra garritfra commented Nov 8, 2022

Fixes: #607
Supersedes: #609
Relates to: garritfra#8

Adds support for HbbTv information. Since I didn't receive any feedback on #607, I implemented the proposed solution. I'm happy to make adjustments if needed.

Here's a simple example:

    var parser = new UAParser();
    console.log(parser.getResult());

    var uastring = "Opera/9.80 (Linux mips; U; HbbTV/1.1.1 (;Sony; KDL32CX525; PKG4.027EUA; 2011;);; en) Presto/2.7.61 Version/11.00";
    parser.setUA(uastring);
    var result = parser.getResult();

    console.log(result.hbbtv);
    /*
            {
                version: "1.1.1",
                capabilities: "",
                "vendor": "Sony",
                "model": "KDL32CX525",
                "software": "PKG4.027EUA",
                "hardware": "2011"
            },
    */

@garritfra garritfra marked this pull request as ready for review November 14, 2022 09:16
@garritfra
Copy link
Contributor Author

Superseded by #618.

@garritfra garritfra closed this Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hbbtv version
1 participant