惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - neverlost

客户端开发杂记 html5 元素 来自 nativeformelements.com 闲扯,面向对象的ext4中的一些事儿1 Ext 4 beta1 发布似乎仍不给力 .net 下比较蛋疼的word 表格转excel表格 webservice传输数据量较大的情况的解决方案 - neverlost - 博客园 现场保障系统开发过程中增加并行处理(一) vs2010中文版+codesmith 5.2 安装失败 转的 winform开发连接webservice中单向证书 .net下开发windows服务的经验 .net 写的 webservice 给java调用 ext中使用tab方式 ext做列表页面关于查询多行的办法 关于架构的问题 ext的grid 获取页面内容方式 - neverlost - 博客园 微软.net下 charting 要注意的事情 - neverlost .net 获取 其他类型的webservice的方式以及看法 2条路 代码生成 or 配置 2.1 2条路 代码生成 or 配置 2
浅述教学上基于Media Player的视频切片方式
neverlost · 2010-12-31 · via 博客园 - neverlost

在web页中采用Media Player,通常除了看电影以外 还有教学研究意义。

我们可以通过对一个个视频片段的反复研读和分析对该视频片段想表达的知识进行学习和研究。

在线视频我们对视频各个片段进行分析,按照一定的分析模型对每个片段进行分析,我们称这个片段为切片,划分片段的过程就是切片的过程,这样的做法一般仅仅是逻辑意义上的切片(如果是物理的则会产生很多垃圾文件)。

对于在线视频通常有字幕文件来表示一般是通过smil文件。

1.RealNetworks 的 RealOne 平台提供了对 SMIL 2.0 的充分支持

2.Oratrix 的 GRiNS for SMIL-2.0 提供了一款 SMIL 2.0 播放器

3.InterObject 的 SMIL 播放器支持 SMIL 2.0 的基础框架

在进行切片的同时也把字幕文件的内容进行组合那么就可以我们根据模型划分片段,重新知识点的内容。在根据切片播放的时候有效的组织好字幕一起播放。

一般来说在页面上控制mediaplay都是通过js来实现也比较简单:

//播放视频

function playwmv(url) {
    
var v = document.getElementById("WMPObject"); //视频控件
    v.URL = url;
    v.controls.currentposition 
= 0;
    v.controls.play();
}

代码

//停止播放 
function OnStop() {
    
var v = document.getElementById("WMPObject");
    
//由于取到的currentposition都是非整数所以只能定个范围,目前定位0.3
    if ((v.controls.currentposition > stopPos && v.controls.currentposition < stopPos + 0.3|| (v.controls.currentposition < stopPos && v.controls.currentposition > stopPos - 0.3)) {
        v.controls.pause();
        
if (istopflag == 0) {
            alert(
"切片结束,停止播放");
        }
        istopflag 
= 1
        
return;
    }
    window.setTimeout(
"OnStop()"500);
}
//从某个时间点开始播放
function OnNavi(pos, Spos, url) {
    
var v = document.getElementById("WMPObject");
    v.URL 
=  url;
    v.controls.pause();
    v.controls.currentposition 
= pos;
    v.controls.play();
    window.setTimeout(
"OnStop()"500);
}

而在视频控件的html中需要设置字幕的路径

<param name="SAMIFileName" value="具体路径"/>

大致以上的内容是针对视频切片的,当然这是基于微软的media service 包括smil字幕

而目前用的比较多的flash的方式没做过深入研究。