小编rob*_*lls的帖子

Android iframe vimeo播放器控件消失

我有一个WebView可以很好地加载Vimeo视频并播放它们,但是,一旦视频开始播放,播放器控制(播放/暂停)消失,似乎没有办法让它们恢复.这是代码:

videoView = (WebView) findViewById(R.id.videoView);
String videoHtml = "<iframe src=\"https://player.vimeo.com/video/37551417\" width=\"300\" height=\"200\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
videoView.getSettings().setJavaScriptEnabled(true);
videoView.loadDataWithBaseURL("", videoHtml , "text/html",  "UTF-8", "");
Run Code Online (Sandbox Code Playgroud)

iframe android vimeo webview

9
推荐指数
0
解决办法
409
查看次数

引用和读取 .sqlite 数据库文件 (C#/UWP)

我想做的就是使用我存储在应用程序的 Assets 文件夹中的 .sqlite 数据库文件 (/Assets/CommonCore.sqlite)。我正在尝试建立连接,并且尝试了一些不同的操作:

    SQLite.Net.SQLiteConnection conn;

    public MainPage()
    {
        this.InitializeComponent();

        conn = new SQLite.Net.SQLiteConnection("Data Source=Assets/CommonCore.sqlite");
Run Code Online (Sandbox Code Playgroud)

但这会引发异常“不包含采用 1 个参数的构造函数”。

    string path;
    SQLite.Net.SQLiteConnection conn;

    public MainPage()
    {
        this.InitializeComponent();

        path = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "CommonCore.sqlite");

        conn = new SQLite.Net.SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), path);
Run Code Online (Sandbox Code Playgroud)

但这引用了文件夹“\AppData\Local\Packages\8ed84aca-896d-4286-ba91-e52316db2e89_dzc2ymb8n4xk4\LocalState\CommonCore.sqlite”,这显然不是我需要的文件。

我确信我错过了一些愚蠢的事情。

c# sqlite uwp

3
推荐指数
1
解决办法
4324
查看次数

标签 统计

android ×1

c# ×1

iframe ×1

sqlite ×1

uwp ×1

vimeo ×1

webview ×1