Hot answers tagged

68

If those streaming services use DRM, you must enable DRM in Firefox's settings: Preferences -> General -> Play DRM-controlled content You might also have to install package libavcodec-extra to get the codecs: sudo apt install libavcodec-extra


22

Many of the features on that table are extremely new. The Media Source Extension spec, for example, is still a draft and is still being written. And it's being driven by Google and Netflix. It's going to take time for the spec to mature to a point where Mozilla want to spend any time implementing it. h.264 support is somewhat easier (if you're on 12.04 - it'...


14

My config is Firefox 64.0, Ubuntu 18.04.1. Experienced the same problem. After searching and reading, finally was able to fix it. Changed layers.acceleration.force-enabled option to true in the about:config Edit: You may also try to create mozilla.widget.use-argb-visuals as Boolean and set it to false in about:config Source: Firefox Bug 1516224 Semi-...


12

I added "webm" to /etc/mime.types, which was picked up by Apache as well: video/webm webm


11

On top of the accepted answer, on Ubuntu 14.10 (FF 36.0) to obtain the OK for the MSE & H.264 you should set this properties to true on about:config: media.fragmented-mp4.exposed=true media.fragmented-mp4.ffmpeg.enabled=true media.mediasource.mp4.enabled=true Here you can find more details


11

Due to legal restrictions Opera is unable to distribute H264 codec. You can use the following workaround: Install chromium-codecs-ffmpeg-extra package and create a link to libffmpeg.so: sudo ln -sf /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so You can check your opera installation directory in the About dialog.


10

I'm not sure what you mean with "hybrid" (a C++ app which displays an webapp? distribute app code between C++/QML/javascript? ), but you can use the WebView component to display a webpage/webapp on a qml application. This should work on Ubuntu Phone also. Take this simple application composed by: "app.qml", "app.html" and "app.js" (yeah I know, this "...


9

I found the solution! It was not related to chromium or firefox, it was a configuration setting. In pulseaudio, sound stream from this 2 applications were configured to go to HDMI audio output, instead of built-in speakers. As you can not change this setting for each application in the default "sound" application, I had to install pavucontrol and then I ...


5

Starting with ubuntu-html5-theme package version 14.04.20140123-ppa2 (Trusty), one can launch the HTML5 app with the --inspector argument added. (This can be added to the ubuntu-html5-app-launcher command in the shell and by setting the run configuration in the SDK). With the --inspector argument, the app's shell output shows an IP address and port. You ...


5

I developed BAT, which is a tiny tool for building desktop applications with HTML, JS and CSS. I wrote an article about it on my blog. Installation BAT JavaScript API Examples Example index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { ...


4

What solved this for me is setting media.mediasource.webm.enabled to true in about:config I also have the following keys set to true manually: media.mediasource.enabled media.fragmented-mp4.exposed media.fragmented-mp4.ffmpeg.enabled These settings let you adjust the video quality as well (to me it does not work out of the box, everything is only ...


3

If you are using HTML, you should be using Cordova to access the native devices. You are saying that Cordova is not working for you, but unless you are more descriptive in what exactly is not working, it's difficult for anyone to help. Alternatively, if you port your app to pure QML, you can then use the Camera component to access the device's camera.


3

The problem in the space in your path. The launcher only sees the first part of the path as the www argument, and rightly notices that this isn't a directory in which it could find an index.html file. It also helpfully points out that it got the second half of the path as an additional argument, but doesn't know what to do with it. You can fix this with ...


3

The Applications templates are not Ubuntu Touch templates, those are actually just Qt Creator templates, you can't use them for Ubuntu Apps. When you make an Ubuntu HTML5 app you can use standard JavaScript mouse event handlers like onmousemove, onmouseover and onmouseout although right now those don't work very well. Ubuntu Touch is in rapid development ...


3

I have the very same issue trying to install ubuntu-sdk on a new VM today The VM is running Ubuntu 12.04 LTS 64bit Here how I solved the issue: downloaded the packages: qtdeclarative5-ubuntu-ui-extras-browser-plugin qtdeclarative5-ubuntu-ui-extras-browser-plugin-assets installed manually the packages dependencies: sudo apt-get install libqt5core5 sudo ...


3

The default configuration file for the files being served by your Apache installation is /etc/apache2/sites-enabled/000-default. It's a good idea to backup the original file before you play around with this file. #To make a backup of the original config file: sudo cp /etc/apache2/sites-enabled/000-default /etc/apache2/sites-enabled/000-default.orig ...


3

All the steps above greatly helped me above, for anyone stuck, i have listed a "all in one" fix 1) Open terminal and enter sudo apt-get install ubuntu-restricted-extras 2) open firefox and enter about:config in the address bar, then search : mediasource 3) Change all listed values to True 4) search media.fragmented-mp4 again set the 3 values from the top ...


3

To test the app in your device, just plug the device to your development pc using a USB cable. Assuming that your device is recognized by the OS, from the terminal and in app's root directory type: cordova run --device Cordova should build the app for your device's platform (assuming you have added a platform during development), copy it to the device and ...


3

Currently only Chrome indeed, that is because Google's Chrome is the only browser that uses Encrypted Media Extension on Linux. Chromium and Opera even though based on the same engine do not bundle the DRM tools needed by Netflix. Is unsure when/if Opera or Chromium will open the doors to DRM. Mozilla said that they will not implement EME directly, instead ...


3

I had installed opera with the deb package downloadable from Opera's site and it did not load HTML 5 videos from youtube. The only solution that worked for me was to uninstall the version I had with: sudo apt-get remove --purge opera-stable and then installed the version from the PPA package following this other AskUbuntu post. Adding a pointer to the ...


2

The .htaccess file would be something you create in the DocumentRoot directory of your web site.


2

This is not related to python, but javascript under webkit. Please see this question on Stack Overflow. To summarise it, you can't use openDatabase over local web pages, you will need to use a full local server. You can use SimpleHTTPServer to start a server from python and connect to it using webview.


2

You can use HTML5 websockets with the latest stable Nginx installed, to easily install it use the repositories: sudo add-apt-repository ppa:nginx/stable sudo apt-get update sudo apt-get install nginx Remember, you have to remove your old nginx, nginx-common and nginx-full packages before installing the new version. I've already tested proxying websockets (...


2

With JDownloader you can download almost every kind of content available on the web. Its up-to-date addon system allows to select available quality and filetype easily (video-audio/audio only). Not the easiest way but it's one of the most effective. EDIT: Just discovered youtube-dl command. Its GUI version is also available through a WebUpd8's PPA, but is ...


2

The trick is to use WebKit's remote inspector. Here's how I got it working in QtCreator 3.0: Download Google Chrome if you don't already have it. (I believe Safari also works.) In QtCreator, click "Projects" in the left column, then click the "Run" tab at the top. Next to "Run Environment", click the "Details" drop-down. Click "Add" to add a new ...


2

The HTML5 tutorial is outdated due to code changes in the SDK PPA. Very sorry for the confusion. For example, as you note, at the time the tutorial was written, there were two types of HTML5 app projects you could create: one for Cordova HTML5 apps, one for non Cordova HTML5 apps (which was named "HTML5 Touch UI"). There is now only a single type of HTML5 ...


2

QtWebkit supports WebSQL and IndexedDB: The following code samples return true: var websqlAvailable = typeof window.openDatabase != 'undefined'; var indexeddbAvailable = typeof window.indexedDB != 'undefined'; As a side notice, only an older version of indexeddb is available in QtWebkit. More information on using Web SQL, IndexedDB and Web Storage in ...


2

HTML5 app development is under rapid development now. Very sorry for any confusion this causes. We will publish a tutorial content soon that shows a working example of using the Cordova camera API in an HTML5 app on developer.ubuntu.com. Thanks for you patience!


2

html5 and css requires web rendering engine in the background . So you have to use one of the web rendering engine . Webkit is the most commonly used web rendering engine because of its perfomence and portability , You can also try Gecko from firefox but it is very hard to implement when compared to webkit


2

Right now, I'm using Firefox Nightly (27.0a1 (2013-10-24)) on Ubuntu 13.10. I made the change on the flag media.gstreamer.enabled to true. You also need to install the package gstreamer0.10-ffmpeg. You can check if you have h.264 enabled in this page: http://www.youtube.com/html5


Only top voted, non community-wiki answers of a minimum length are eligible