简体   繁体   English

如何在Android Phonegap的Videoplayer插件中使用Webview代替意图?

[英]How to use webview instead of intent in videoplayer plugin for android phonegap?

In my phonegap android application I need to get the video played for particular size.I have used video player plugin for android phonegap from github. 在我的phonegap android应用程序中,我需要按特定大小播放视频。我从github使用了适用于android phonegap的视频播放器插件。 I have used webview instead of intent in the plugin to reduce the size of the player. 我在插件中使用了webview而非意图来减小播放器的大小。

But my problem is : 1.when i use http://..../.mp4 it shows webpage not available. 但是我的问题是:1.当我使用http://..../.mp4时,它显示网页不可用。 2.when i use sdcard displayed the mp4 file as text file. 2.当我使用sdcard时,将mp4文件显示为文本文件。 somtimes It show could not open mediaplayer and failed to find provider info for com.android.calender in logcat somtimes它显示无法打开mediaplayer,并且无法在logcat中找到com.android.calender的提供者信息

tell me the solution. 告诉我解决方案。

please guide me 请指导我

Have you given your app permissions to access the internet? 您是否已授予您的应用访问互联网的权限? (Android) (Android)

<uses-permission android:name="android.permission.INTERNET" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM