-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Added primary param to fix priority of html5 and flash player. 2. Added draggable param in HTML5 player. 3. Fixed the progress bar display problem on bootstrap framework. 4. Fixed the flash player can not play relative video path. 5. Fixes some mini bugs. ---------------------------------------------------- 1、增加primary参数,用于确定html5与flash播放的优先级。 2、HTML5模块加入draggable参数。 3、修复了在bootstrap框架中弹窗进度条错误的问题。 4、修复了Flash模块无法播放相对路径视频地址的问题。 5、修复了一此小问题。
- Loading branch information
1 parent
8f3d184
commit e4d80fa
Showing
59 changed files
with
487 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/> | ||
<title>Sewise Player</title> | ||
<script type="text/javascript" src="../player/sewise.player.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="player" style="width: 640px; height: 352px; "> | ||
<script type="text/javascript"> | ||
SewisePlayer.setup({ | ||
server: "vod", | ||
type: "mp4", | ||
primary: "flash", | ||
videourl: "http://jackzhang1204.github.io/materials/mov_bbb.mp4", | ||
poster: "http://jackzhang1204.github.io/materials/poster.png", | ||
skin: "vodWhite", | ||
claritybutton: "disable", | ||
title: "primary参数可设置为html5或flash", | ||
lang: "zh_CN" | ||
}, "player"); | ||
</script> | ||
</div> | ||
<div style="float: left; width: 100%; padding: 10px 30px; "><a href="https://github.com/jackzhang1204/sewise-player" target="_blank">Fork it on GitHub</a></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" /> | ||
<title>Sewise Player</title> | ||
<script type="text/javascript" src="../player/sewise.player.min.js"></script> | ||
</head> | ||
<body> | ||
<div style="width: 640px; height: 352px; "> | ||
<div id="container" style="width: 640px; height: 360px; "> | ||
<script type="text/javascript"> | ||
SewisePlayer.setup({ | ||
server: "vod", | ||
type: "flv", | ||
videourl: "http://219.232.161.202:5080/flvseek/data/userdata/vod/resource/201402/OVNNwRk1.flv", | ||
poster: "http://jackzhang1204.github.io/materials/poster.png", | ||
skin: "vodWhite", | ||
title: "Tile 标题", | ||
lang: 'en_US', | ||
claritybutton: 'disable' | ||
}, "container"); | ||
</script> | ||
</div> | ||
<script> | ||
//点播接口调用方法 | ||
function startPlay(){ | ||
SewisePlayer.doPlay(); | ||
} | ||
function playPause(){ | ||
SewisePlayer.doPause(); | ||
} | ||
function seekTo(){ | ||
SewisePlayer.doSeek(5); | ||
} | ||
function playStop(){ | ||
SewisePlayer.doStop(); | ||
} | ||
function changeVolume(){ | ||
SewisePlayer.setVolume(0.1); | ||
} | ||
function getDuration(){ | ||
alert(SewisePlayer.duration()); | ||
} | ||
function getPlayTime(){ | ||
alert(SewisePlayer.playTime()); | ||
} | ||
/*function switchProgram(){ | ||
SewisePlayer.playProgram("xqfa3cZn", 0, true); | ||
}*/ | ||
function switchVideo(){ | ||
SewisePlayer.toPlay("http://219.232.161.206:5080/flvseek/data/userdata/vismam/downfile/201307/02005220p.flv", "300' start play", 300, true); | ||
} | ||
function toFullScreen(){ | ||
SewisePlayer.fullScreen(); | ||
} | ||
function toNoramlScreen(){ | ||
SewisePlayer.noramlScreen(); | ||
} | ||
function getBufferProgress() { | ||
alert(SewisePlayer.bufferProgress()); | ||
} | ||
|
||
|
||
//播放器回调方法 | ||
function playerReady(name){ | ||
console.log("Sewise Player On Ready 1"); | ||
//SewisePlayer.toPlay("http://www.w3school.com.cn/i/movie.mp4", "title", 0, false); | ||
} | ||
SewisePlayer.playerReady(function(name){ | ||
console.log("Sewise Player On Ready 2"); | ||
}); | ||
|
||
function onStart(name){ | ||
console.log("onStart 1"); | ||
} | ||
SewisePlayer.onStart(function(name){ | ||
console.log("onStart 2"); | ||
}); | ||
|
||
function onStop(name){ | ||
console.log("onStop 1"); | ||
} | ||
SewisePlayer.onStop(function(name){ | ||
console.log("onStop 2"); | ||
}); | ||
|
||
function onMetadata(meta, name){ | ||
console.log("onMetadata 1"); | ||
} | ||
SewisePlayer.onMetadata(function(meta, name){ | ||
console.log("onMetadata 2"); | ||
}); | ||
|
||
function onClarity(clarity, name){ | ||
console.log("onClarity 1"); | ||
} | ||
SewisePlayer.onClarity(function(clarity, name){ | ||
console.log("onClarity 2"); | ||
}); | ||
|
||
function onPause(name){ | ||
console.log("onPause 1"); | ||
} | ||
SewisePlayer.onPause(function(name){ | ||
console.log("onPause 2"); | ||
}); | ||
|
||
function onSeek(time, name){ | ||
console.log("onSeek 1: " + time); | ||
} | ||
SewisePlayer.onSeek(function(time, name){ | ||
console.log("onSeek 2: " + time); | ||
}); | ||
|
||
function onPlayTime(time, name){ | ||
console.log("onPlayTime 1: " + time); | ||
} | ||
SewisePlayer.onPlayTime(function(time, name){ | ||
console.log("onPlayTime 2: " + time); | ||
}); | ||
|
||
function onBuffer(pt, name){ | ||
console.log("onBuffer 1: " + pt); | ||
} | ||
SewisePlayer.onBuffer(function(pt, name){ | ||
console.log("onBuffer 2: " + pt); | ||
}); | ||
|
||
</script> | ||
<div style="padding-top: 20px;"> | ||
<div style="padding-right: 20px;float: left;">[点播接口]</div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:startPlay();">播放</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:playPause();">暂停</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:seekTo();">跳转</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:playStop();">停止</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:changeVolume();">更改音量</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:getDuration();">获取总时长</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:getPlayTime();">获取当前时间</a></div> | ||
<!-- <div style="padding-right: 20px;float: left;"><a href="javascript:switchProgram();">切换节目</a></div> --> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:switchVideo();">切换视频</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:toFullScreen();">全屏</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:toNoramlScreen();">普屏</a></div> | ||
<div style="padding-right: 20px;float: left;"><a href="javascript:getBufferProgress();">缓冲进度</a></div> | ||
<br clear="all"/> | ||
</div> | ||
<div style="float: left; width: 100%; padding: 10px 30px; "><a href="https://github.com/jackzhang1204/sewise-player" target="_blank">Fork it on GitHub</a></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.