请选择 进入手机版 | 继续访问电脑版

跨平台开发论坛

 找回密码
 立即注册

QQ登录

互通

查看: 2798|回复: 1

运用android插件报错(VideoPlay)? [复制链接]

Rank: 1

签到
8
发表于 2012-6-19 14:14:07 |显示全部楼层
06-19 06:10:55.739: E/Web Console(300): TypeError: Result of expression 'window.plugins.VideoPlayer' [undefined] is not an object. at file:///android_asset/www/help.html:25

我在help.html里面调用JS如下写法


<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=320; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>关于我们</title>
<link rel="stylesheet" href="jquery-mobile/jquery.mobile-1.1.0.min.css" />
<link rel="stylesheet" href="master.css" />
<script src="jquery-mobile/jquery-1.5.min.js"></script>
<script src="jquery-mobile/jquery.mobile-1.1.0.js"></script>
<script src="jquery-mobile/cordova-1.8.0.js"></script>
<script charset="utf-8" src="jquery-mobile/video.js"></script>
<body class="theme">
<script type="text/javascript">
                window.plugins.VideoPlayer.play("http://*****/html5/mp4/video.mp4");
</script>
</body>
</html>


使用道具 举报

Rank: 7Rank: 7Rank: 7

发表于 2012-6-20 13:43:07 |显示全部楼层
你你有没有配置插件?具体参考http://prostorys.blog.51cto.com/blog/1522778/843696

没有P币?共享开发案例或转载开发文章就能够得到P币!

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

合作QQ:977809718|Archiver|手机版|cordova中国-PhoneGap提供开发工具

GMT+8, 2023-12-1 07:22 , Processed in 0.012542 second(s), 14 queries .

PhoneGap中文社区

© 2009-2012 PhoneGapCN.

回顶部