获取错误' flash插件无法加载'使用以下消息时,使用Wowza测试播放器测试流路径应该是有效的。 jwplayer.js的本地路径是正确的。
<html>
<head>
<title>Stream Team Player Test</title>
<script src="jwplayer/jwplayer.js"></script>
<script src="jwplayer/jwplayer.flash.swf"></script>
<script>jwplayer.key="xxx";</script>
</head>
<body>
<div id="streamContainer">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("streamContainer");
playerInstance.setup({
playlist: [{
sources: [{
file: "http://xxx:1935/stream-team-dvr/apptest01/manifest.f4m?DVR"
},{
file: "http://xxx:1935/stream-team-dvr/apptest01/manifest.m3u8?DVR"
}]
}],
title: "Stream Team Test",
description: "This is the files description"
});
</script>
</body>
</html>
答案 0 :(得分:0)
您可以省略此行:A = LOAD 'SO/null_data2.csv' USING PigStorage(',') AS (f1, f2, f3, f4);
DESCRIBE A;
--DUMP A;
B = FOREACH A GENERATE
( f1 IS NULL ? 0 : 1 ) AS f1_validity,
( f2 IS NULL ? 0 : 1 ) AS f2_validity,
( f3 IS NULL ? 0 : 1 ) AS f3_validity,
( f4 IS NULL ? 0 : 1 ) AS f4_validity,
( f1 IS NULL ? 0 : f1 ) AS f1,
( f2 IS NULL ? 0 : f2 ) AS f2,
( f3 IS NULL ? 0 : f3 ) AS f3,
( f4 IS NULL ? 0 : f4 ) AS f4;
DESCRIBE B;
C = FOREACH B GENERATE
f1_validity + f2_validity + f3_validity + f4_validity AS not_null_cnt,
f1 + f2 + f3 + f4 AS sum;
DESCRIBE C;
DUMP C;
JW Player js库将确定是否需要.swf文件并将其包含在引擎盖下。
以下是一个资源,其中包含有关设置基本视频嵌入的更多信息,您可能会发现这些信息很有用:https://support.jwplayer.com/customer/portal/articles/1406723-basic-video-embed
答案 1 :(得分:0)
JWPlayer默认使用html5
播放器。如果它无法使用html5播放视频,那么它适用于您指定的flash播放器。
jwplayer('video').setup(
file: 'file/path'
flashplayer: '/jwplayer/jwplayer.flash.swf'
)
默认情况下,它会在'/'
更多详情here