个人工具

UbuntuHelp:FirefoxStreamingVideo/zh

来自Ubuntu中文

跳转至: 导航, 搜索
  1. title Streaming video in Firefox Web Browser

A great many websites have videos embedded in the website. To view those, some steps are needed.

Ubuntu 6.10 (Edgy Eft)

Absolute Beginners:- Streaming video is used by web sites, such as news.bbc.co.uk, to send video clips to a users Browser. The browser (the default shipped with Ubuntu is the Firefox browser) in turn needs a stream player plugin to play the video. In the case of the BBC News site the site allows for the selection of Windows Media Player or RealPlayer. In Ubuntu you can use either of these settings but you need to set up your Ubuntu differently in each case. The preferred choice is to use the streaming video player called gXine. This player can read .wmv files, the default video format for the Windows Media Player. You will be installing the totem-xine-firefox-plugin solution to play your video if you follow these instructions. There are others to try but keep with this page to get up and running in the first instance. Totem (Media Player) and Firefox (Browser) come as a default install with Ubuntu Edgy. You can check that they are there by going to the top left menu Applications>Internet to find Firefox and Applications>Sound & Video to find Totem (called Media Player in the list). The streaming video player requires codecs to enable it to play video streams within Firefox. The codecs for playing .wmv files are called w32codecs. To install the w32codecs, you need to get them from a third party. They are most quickly installed by using the code blocks below. To run this code open your terminal Applications>Accessories>Terminal, then paste in the code and press enter. Note that the codecs are available for different processors.

For an x86 PC/Mac copy and paste this code into your terminal
wget -c http://www.debian-multimedia.org/pool/main/w/w32codecs/w32codecs_20061022-0.0_i386.deb
Then when downloaded (may take a minute or two) run this code in your terminal
sudo dpkg -i w32codecs_20061022-0.0_i386.deb

For PowerPC-based Macs find further advice at https://help.ubuntu.com/community/RestrictedFormats/WindowsCodecs. To install gXine (and Totem and Firefox if not already present) go to System>Administration>Synaptic Package Manager (SPM). This application is your primary tool for installing and removing your software packages. You will need your administrator's password to log in to SPM. Select search and type in 'xine', enter. You need to find three files, called gxine, gxineplugin and totem-xine. Look for the checkbox alongside these files in the right hand window. If the check box is empty click on it and a curved arrow will show in the check box. Do this for all three files. Then click on Apply (gxine will be automatically selected when you select gxineplugin). Click Apply again on the top menu bar and again when the confirmation window opens. Thats it, enjoy your video. Next Steppers: If you prefer to take the RealPlayer route follow this link: https://help.ubuntu.com/community/RealplayerInstallationMethods?action=show&redirect=RealPlayerInstallationMethods