mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 05:26:15 -08:00
同步本地视频的标题
This commit is contained in:
1 parent
04ea075cc4
commit
ef5558e2d3
3 files changed
+6
-2
No files matched your search
@@ -4125,7 +4125,8 @@
|
||||
function localVideo(art) {
|
||||
var proxy = art.events.proxy,
|
||||
template = art.template,
|
||||
player = art.player;
|
||||
player = art.player,
|
||||
option = art.option;
|
||||
|
||||
function loadVideo(file) {
|
||||
if (file) {
|
||||
@@ -4133,6 +4134,7 @@
|
||||
|
||||
if (canPlayType === 'maybe' || canPlayType === 'probably') {
|
||||
var url = URL.createObjectURL(file);
|
||||
option.title = file.name;
|
||||
player.switchUrl(url, file.name);
|
||||
} else {
|
||||
errorHandle(false, 'Playback of this file format is not supported');
|
||||
|
||||
Reference in new issue
Block a user