改浏览器UA看HTML5视频的疑惑

秀秀桌面并和大家分享一下自己的经验。

版主: lionux天地乾坤

回复
头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

改浏览器UA看HTML5视频的疑惑

帖子 unreal » 2013-11-14 22:30

终所周知,国内那帮所谓支持HTML5 实际 iOS Only 的视频网站,想在非 iOS 设备上用浏览器看,须要改浏览器的 User Agent,弄成 iPhone/iPad/iPod 之类,如此大概有屈指可数的视频网站能看看了。俺在 Nokia N8(Symbian^3 Belle系统)手机上用Opera Mobile 测试了,看个动漫美剧国产剧还算不错。

--------------------------------------------疑惑的分隔线---------------------------------------
但此法在 OB 5.2 i386 上面无效。Midori 经 html5test.com 测试,影音功能支持度很高,自带UA切换且预置了iPhone移动设备代理。可是只能看到视频播放内容的起始画面,仍然无法播放 :(
Firefox 经测试基本不支持 html5影音功能,虽然它的 User Agent Switcher 插件可提供数十种移动设备代理。

综上,请各位兄弟指教!

f5b
锆 Zr
帖子: 642
注册时间: 2011-10-22 20:43

Re: 改浏览器UA看HTML5视频的疑惑

帖子 f5b » 2013-11-16 12:41

用OpenBSD current试试, 里面有firefox 25,html5支持更好了。

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-11-17 16:20

firefox 25.0.1 for winxp 的视频和音频测试:
Video 25/35
video element Yes ✔
DRM support No ✘
Media Source extensions No ✘
Subtitle support No ✘
Poster image support Yes ✔
Codec detection Buggy !
MPEG-4 support No ✘
H.264 support No ✘
Ogg Theora support Yes ✔
WebM with VP8 support Yes ✔
WebM with VP9 support No ✘
Audio 27/30
audio element Yes ✔
Web Audio API Yes ✔
Speech Recognition No ✘
Speech Synthesis Yes ✔
PCM audio support Yes ✔
AAC support No ✘
MP3 support No ✘
Ogg Vorbis support Yes ✔
Ogg Opus support Yes ✔
WebM support Yes ✔
可见对于国内常用的 mp4,h263,h264/mp3,aac 编码的 flv 视频还是没辙。

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-11-17 16:32

我怀疑手机浏览器改UA这个办法只是绕过了网站的识别,视频解码可能还是手机本地的Flash在起作用,因为不同网站的视频点击播放后都是手机自带播放器的界面。N8的Flash版本是4.0

另外,UA设为 Jelly Bean (Android 4.1) 也可以播放,同样是手机内嵌播放器界面。这么说国内视频网站也支持安卓4.1及更高版本的手机,请有安卓4.1手机的兄弟们测试看看。

f5b
锆 Zr
帖子: 642
注册时间: 2011-10-22 20:43

Re:

帖子 f5b » 2013-11-17 19:55

unreal 写了:firefox 25.0.1 for winxp 的视频和音频测试:
Video 25/35
video element Yes ✔
DRM support No ✘
Media Source extensions No ✘
Subtitle support No ✘
Poster image support Yes ✔
Codec detection Buggy !
MPEG-4 support No ✘
H.264 support No ✘

可见对于国内常用的 mp4,h263,h264/mp3,aac 编码的 flv 视频还是没辙。
xp下面的firefox根本无法和win 7下的firefox比较,更加无法和OpenBSD 下面的相比
后两者都支持h264/mp3/aac等编码,因为这些都和系统或依赖有关。

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-11-18 21:36

我觉得这与firefox的 html5支持度关系不大,midori 基本全都支持,但还是不能播放 html5视频。

f5b
锆 Zr
帖子: 642
注册时间: 2011-10-22 20:43

Re: Re:

帖子 f5b » 2013-11-19 8:29

f5b 写了:
unreal 写了:firefox 25.0.1 for winxp 的视频和音频测试:
Video 25/35
video element Yes ✔
DRM support No ✘
Media Source extensions No ✘
Subtitle support No ✘
Poster image support Yes ✔
Codec detection Buggy !
MPEG-4 support No ✘
H.264 support No ✘

可见对于国内常用的 mp4,h263,h264/mp3,aac 编码的 flv 视频还是没辙。
xp下面的firefox根本无法和win 7下的firefox比较,更加无法和OpenBSD 下面的相比
后两者都支持h264/mp3/aac等编码,因为这些都和系统或依赖有关。
sorry,实际测试情况是
win 7下面firofox 25得分最高 447 ,网站测试结果说支持h264/mp3/aac
OpenBSD snapshot下面的firefox 25得分402,网站测试结果说不支持h264/mp3/aac

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

Re:

帖子 unreal » 2013-11-19 10:57

unreal 写了:我怀疑手机浏览器改UA这个办法只是绕过了网站的识别,视频解码可能还是手机本地的Flash在起作用,因为不同网站的视频点击播放后都是手机自带播放器的界面。N8的Flash版本是4.0
安装了Gnash,猜测被证实了。果然必须本地浏览器有flash播放插件,然后UA骗过视频网站,然后页面上视频播放区域的播放按钮对鼠标指针感应,点击后浏览器弹出对话框,选择本地播放器或下载mp4。但是与手机不同的是,最正常的56网在OB没反应,反之sohuTV却有反应。

看来整个过程跟 HTML5 关系不大 :confused:

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

帖子 unreal » 2013-11-24 22:22

firefox禁用gnash插件、UA设为 iphone (ipad不行),m.tv.sohu.com 可以下载或使用外部播放器(与下载一样,不同之处是下载到 /tmp 然后调用 mplayer)。

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

帖子 unreal » 2014-01-10 22:12

升级到 OB 5.4 Release,Firefox 22.0,准备从sohu视频下载动画片,居然就直接播放了?! 不带这样的阿!下载怎么办阿,我已经许诺明天给女儿在电视机上放机器猫了阿 '_'

livemoon
铁 Fe
帖子: 61
注册时间: 2013-04-06 16:24

Re: 改浏览器UA看HTML5视频的疑惑

帖子 livemoon » 2014-01-11 0:54

unreal也是用ob做桌面吗,可以交流一下用的是什么和常用的软件吗

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

帖子 unreal » 2014-01-11 12:25

livemoon 写了:unreal也是用ob做桌面吗,可以交流一下用的是什么和常用的软件吗
我的dell d420发挥余热做上网本用~以前也有兄弟说过自己的常用软件,只是没有集中开帖。我对桌面的理解可能与常规的概念不同,基本是因陋就简,能用就行~基本环境是 OpenBox/SCIM-pinyin/Rox-filer/mrxvt/firefox/文泉驿字体/;Xorg之上所用软件列表:

aqualung-0.9beta11p12v0 advanced music player 这个能支持USB外接的光驱方CD
beret-1.2.1pl1p0 2D puzzle-platformer game
dgen-sdl-1.32 Sega Megadrive/Genesis emulator
dosbox-0.74p3 x86 with DOS emulator targeted at playing games
feh-2.9.3 lightweight image viewer 加载壁纸、与roxfiler关联看图用
firefox-22.0 Mozilla web browser
firefox-i18n-zh-CN-22.0 zh-CN language pack for Firefox
flwm-1.0.0p2 fast-light window manager 替代wm2的超轻量窗口管理器
fritzing-0.7.7 interactive electronics designing software
gnome-font-viewer-3.8.0p0 font viewer for GNOME 加载其他非开源字体用
gnome-mplayer-1.0.8p2 GTK+/GNOME frontend for MPlayer
leafpad-0.8.18.1p2 simple GTK+ text editor
midori-0.5.2 lightweight web browser
mplayer-20130214p4 movie player supporting many formats
mrxvt-0.5.4p6 multi-tabbed terminal emulator 主力X终端模拟器
mupdf-1.2p2 graphic library, pdf parser, viewer and utilities
obconf-2.0.3.1p0 configuration utility for openbox
openbox-3.5.0p3 small, fast & usable window manager 主力窗口管理器
rox-filer-2.11 GTK+-2 file manager with desktop features
roxterm-2.0.1p8 terminal emulator for X
scim-pinyin-0.5.91p5 scim input method module for pinyin
sclock-0.6p1 simple digital clock
scrot-0.8p3 commandline screen capture util
unrar-4.20v1 extract, list, and test RAR archives
unzip-6.0p2 extract, list & test files in a ZIP archive
wmclock-1.0.13 Window Maker dock.app clock
xbill-2.1p1 save your computers from the evil clutches of Bill
xchm-1.20 display chm files 与roxfiler关联看chm文档
xcircuit-3.7.49 circuit drawing and schematic capture
xloadimage-4.1.17v0 graphics file viewer for X11
xpdf-3.03p0 PDF viewer for X11 与roxfiler关联看pdf
zsnes-1.42p0 Super Nintendo emulator for x86

还有个panel:tint2,前天安装卸载 python的时候不小心连带也删了,这个软件主要原来切换窗口,它有笔记本电池电量显示功能还不错。openbox的任务切换也很方便。

livemoon
铁 Fe
帖子: 61
注册时间: 2013-04-06 16:24

Re: 改浏览器UA看HTML5视频的疑惑

帖子 livemoon » 2014-01-14 19:41

unreal,你有什么联系方式吗

头像
unreal
银 Ag
帖子: 1072
注册时间: 2010-06-07 18:52

帖子 unreal » 2014-01-14 20:34

livemoon 写了:unreal,你有什么联系方式吗
你可以通过weibo @魔界统一战线 联系我;线下的联系方式可以发站内短信问。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 4 访客