Giter Site home page Giter Site logo

karl-rousseau / hybridtvviewer Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 25.0 1.97 MB

[WIP] Web extension making Firefox & Chrome emulate iTV webpages instead of downloading them.

License: MIT License

JavaScript 87.54% HTML 7.93% CSS 4.53%
browser-extension hbbtv webextension

hybridtvviewer's People

Contributors

asciiman avatar karl-rousseau avatar konstantinyaspas avatar tzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hybridtvviewer's Issues

user-agent manipulation

Hello,

we want to test some apps that blacklist some user-agents. Actually in Firefox the Samsung SmartTV 2015 user-agent is used and it is not possible to define a different configuration. It would be nice to test different options to test different blacklist behaviors.

Would i be possible to add an option to customize the complete user-agent?

How to test the actual status in Firefox

Hello,

it's nice to see that there are new developments for testing HbbTV Applications on PC. Since Firefox 57 FireHbbTV is not working anymore and so i'm glad so see this project.

What is the actual status? Why is the plugin not available anymore in the Firefox Addon-Base? Im not really familiar with exporting git-projects to XPI-Files for Firefox. An exported release in this repository would be nice.

Thanks,
Bond

HbbTV page gets downloaded on Chrome 72

When i try to open a HbbTV-Page on Chrome (V72.0.3626.119, Mac 10.14.3) the page wont show :( Instead it is getting downloaded. It is probably some MIME-Type issue.

The app sends following header:
Content-Type: application/vnd.hbbtv.xhtml+xml; charset=UTF-8

Following Metadata is set:
<!DOCTYPE html PUBLIC "-//HbbTV//1.1.1//EN" "http://www.hbbtv.org/dtd/HbbTV-1.1.1.dtd">
...
<meta http-equiv="content-type" content="application/vnd.hbbtv.xhtml+xml; charset=UTF-8"/>

Any idea?

Plugin is bypassed when ".jpg" appears in query parameters

With our hbbtv app, we include urlencoded paths to images in the query parameters.

http://example.com?startImageURL=http%3A%2F%2Fhbbtv-video.example.de%2FSpot-Exchange%2FStartTile.jpg

When we include this query parameter, the plugin is not loading, but the app is downloaded as a file instead.

I saw in the plugin code in patcher.js that if the url includes many known media extensions, the plugin is bypassed. Was this intended to be for query parameters also? Or just for the pathname part of the url?

Dash.js in Chrome can't be loaded

Hi,

thanks for developing this awesome plugin! It is a great help to us and we hope you will continue developing it.

Unfortunately we encountered one issue in chrome. Apparently chrome does not allow loading external js files and so the Dash.js player can't be loaded. In the chrome console get get this error:

Denying load of chrome-extension://kckknfffmadpohpni/https://cdn.dashjs.org/latest/dash.all.min.js. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

I fixed it for me by placing dash.js in the /js folder and updating all references to it. Of course it also has to be added to the web_accessible_resources in the manifest. However, I have no chrome plugin experience...

It would be great if you could update the plugin's security settings or change to a local version, so it works in chrome out of the box.

Thanks and keep up the good work!

Do not load dash.js if present already

Some sites come with their own build of dash.js

It makes debugging really difficult if the dash.js code is overwritten by the version of this extension.

SHOULD BE:
Add a dash.js loader to check if already present and prevent adding script tag and overwriting existing dash.js version.

Cannot always use Colour Keys RGYB as they don't seem mapped

Hello again and thank you for your great work on this extension.

Running Firefox 58.0.2 (64bit) on MacOS and v0.5 of your extension.

When loading our HbbTV portal URL, I cannot get the colour buttons to be mapped as keyboard letters R, Y, G, B. It seems Firefox is pushing the actual letters keycodes, judging from the debug window we have on-screen (that reports from within our code).

The portal seems detected from your plugin and Interactive mode is on.

Also there are cases that even clicking on the colour icons, doesn't produce the expected results (but haven't found a way to replicate 100%).

On your sample HbbTV pages e.g. ARTE, the colour buttons seem to work straight away as keyboard-presses.

Are there any special header you expect to find in index.xhtml or can there be a debug of your extension to provide to you?

Many thanks.

Disable debugging logs

Hello,

I'd like a way to disable the debug logging that is spamming the console. It looks like there is a _DEBUG_ flag, but it seem to be hardcoded to true, with no way that i could find to disable it.

Is there a solution that i'm missing ? :)

Thanks a lot !

Submission to Chrome Extension Store

Do you have any time estimate of the Chrome Extension Store submission for this plugin?
I have downloaded files and installed from the local disk but Chrome popups an annoying "developer mode extension" message each time Chrome is run.

When UI is centered (page) the background design is not stretched

Hello and many warm thanks for your great plugin/extension.

Running Firefox 58.0.2 64bit on MacOS and v0.5 of your extension.

Upon loading our HbbTV site(s), when I select in Preferences to center the HbbTV page in the UI, regardless of light or dark theme, the background image is not stretched (zebra-like) but stays only on top-left corner, rest of screen is grayish.

In the sample URLs you have (e.g. ARTE) this doesn't occur. What header do you expect in index.xhtml for example? How can I force the page to be HbbTV-interactive (per your comment on top of Preferences) to see if the background zebra-image is stretched?

Thanks!

ZDF-HbbTV Videos are shown with dimensions 0px x 0px

HybridTvViewer : 0.5.0
Browser: Firefox 58.0.2 (64-bit)
OS: Lubuntu (64bit) 16.04

When I try to watch a video of the ZDF mediathek http://hbbtv.zdf.de/zdfm3/index.php, I can hear the audio but I see no video.
Checking the page information shows the dimensions 0px x 0px.
When I open the video link in another tab the dimensions are NaNpx x NaNpx and I can see the video.
Please see attached screen shot!
Thanks,
Thomas

zdf_0x0_px

Test if plugin is active

What would be the recommended way to test if the plugin is active on the page?
I guess !!navigator.userAgent.match(/HybridTvViewer/i) would be sufficient.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.