我想播放使用CrossSimpleAudioPlayer插件下载的声音。
我实例化并初始化了插件,并且一切都可以在IOS上正常运行,但是在android上,当我加载文件“ Java.IO.FileNotFoundException”但文件存在并且具有读取权限时,它给了我这个错误
并在控制台上显示此“ [MediaPlayer]错误(1,-2147483648)”。
我以这种方式加载剪辑
ISimpleAudioPlayer player = Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current;
player.Load("/data/user/0/com.my.app/files/20.wav");
Run Code Online (Sandbox Code Playgroud)
当我改为加载Stream时,抛出错误“ Java.IO.IOException:准备失败。:status = 0x1”
var temp = new MemoryStream(DependencyService.Get<IFileHelper>().GetFileAsByte(path));
//This works fine and loads the file
player.Load(temp); //throws the error
Run Code Online (Sandbox Code Playgroud)
如果我加载链接而不是本地文件,则可以正常工作,但是我需要本地文件。
我不知道为什么这会在Android上发生
我一直在寻找这个但找不到任何东西。
我想设置图像的最大高度。它可能位于其他元素内部,也可能不在其他元素内部。
我不希望该图像具有静态尺寸。
我很感激任何帮助
I have a webview inside my application and when an external link is clicked (that in normal browser is open in a new tab), I can't then go back to my website.
It is possible when a new tab is open to have the menu closed that tab like Gmail do ?
目标是,无论何时点击链接,用户都可以选择查看内容的选项,例如,点击链接会建议打开 youtube 应用程序或谷歌浏览器。目的是出现谷歌浏览器选项
或者你有什么建议来处理这种情况?