karl-rousseau / hybridtvviewer Goto Github PK
View Code? Open in Web Editor NEW[WIP] Web extension making Firefox & Chrome emulate iTV webpages instead of downloading them.
License: MIT License
[WIP] Web extension making Firefox & Chrome emulate iTV webpages instead of downloading them.
License: MIT License
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?
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.
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 !
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
Chrome is unable to mockup video/broadcast
object but Firefox works. Latest browsers in Win10.
Simple test app, bottom right corner should run video.mp4 placeholder.
https://refapp.hbbtv.org/dash/broadcast-object/broadcast-object.html
<object type="video/broadcast" id="broadcastVideo"> </object>
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?
I used this to install it:
https://superuser.com/a/252990/200128
But I think that is better to put it in the README.
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?
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!
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
do you have a bml webpage example?
chrome extension manifest.json version 2 is deprecated
warning in an extension details page.
Also, manifest key "applications":{..}
is not recognized.
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.
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.
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.