Difference between revisions of "Flash DRM content"

From ArchWiki
Jump to: navigation, search
(+ external link)
m (Lahwaacz moved page Amazon Instant Video to Flash DRM content: use more generic title, see Talk:Amazon_Instant_Video#Inappropriate_title.3F)
(No difference)

Revision as of 11:21, 29 December 2013

If you try to watch Amazon Instant Video, you may see the following error: an error occurred and your player could not be updated. This likely indicates that the video is protected with DRM and that the Flash Player could not perform some of the functions required to securely deliver the protected content.

To deliver DRM-protected content, Flash calls several functions provided by the HAL daemon and its libraries. While Flash-based players remain popular, HAL has been deprecated and is not commonly installed on newer systems. To provide the necessary HAL functionality on such systems, you can either install the full HAL package and run the HAL daemon or install a modified HAL library 'stub' that uses the modern UDisks daemon instead.

Using the HAL package

Install the halAUR package from the AUR. You will need to install hal-infoAUR first as it is a dependency for halAUR.

Running the HAL daemon

The HAL daemon is managed by hal.service, which can be controlled by systemctl.

Alternatively, one can use the following script, which also takes care of cleaning the cache.


## written by Mark Lee <bluerider>
## using information from <https://wiki.archlinux.org/index.php/Chromium#Google_Play_.26_Flash>

## Start and stop Hal service on command for Google Play Movie service

function main () {  ## run the main insertion function
     clear-cache;  ## remove adobe cache
     start-hal;  ## start the hal daemon
     read -p "Press 'enter' to stop hal";  ## pause the command line with a read line
     stop-hal;  ## stop the hal daemon

function clear-cache () {  ## remove adobe cache
     cd ~/.adobe/Flash_Player;  ## go to Flash player user directory
     rm -rf NativeCache AssetCache APSPrivateData2;  ## remove cache

function start-hal () {  ## start the hal daemon
     sudo systemctl start hal.service && ( ## systemd : start hal daemon
          echo "Started hal service..."
) || (
          echo "Failed to start hal service!") 

function stop-hal () {  ## stop the hal daemon
sudo systemctl stop hal.service && (  ## systemd : stop hal daemon
          echo "Stopped hal service..."
     ) || (
          echo "Failed to stop hal service!"

main;  ## run the main insertion function

Using the modified libhal stub

As an alternative to installing all of HAL, you can install a modified version of the libhal library from the AUR that uses the modern UDisks daemon instead of the deprecated HAL. Note that this libhal provides just enough of the HAL functionality to meet Flash's needs for copy-protected delivery: if you have other programs that require HAL, this stub probably won't satisfy them and you should use the full hal package instead.

Installing UDisks and hal-flash

You will need to install hal-flashAUR from the AUR, which relies on UDisks.

Running UDisks

Since the libhal stub passes its calls to UDisks, UDisks should be running before you attempt to play DRM-protected Flash videos.

Make sure that udisks.service is started, see systemd#Using units for details.

Remove Flash Player cached files

To get a fresh start after installing the package(s), remove some Flash Player cached files:

$ cd ~/.adobe/Flash_Player
$ rm -rf NativeCache AssetCache APSPrivateData2

See also