由于实现了webView和native之间的交互,所以,我们可以在web上进行音频以及视频的播放,然后web上面的内容也可以在后台进行播放;
实现方案:
1、一首歌一首歌进行传递和播放,
2、直接所有的歌的列表都传递到native中,然后在进入后台之后,可以按照列表进行播放;【mp4等列表好像是有格式的】
2017-08-21 20:28:23.567277+0800 VideoBackgroundModel[35927:7147152] [] <<<< Async >>>> playerasync_runAsynchronousCommandOnQueue: Command 3 returned -12784; this async error will be discarded
2017-08-21 20:40:17.347946+0800 YDOpenHardwareSimple[35989:7157097] webview request:<NSMutableURLRequest: 0x1c000a540> { URL: about:blank }
2017-08-21 20:40:25.123981+0800 YDOpenHardwareSimple[35989:7157097] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> image must be non-nil
2017-08-21 20:40:25.245177+0800 YDOpenHardwareSimple[35989:7157097] CredStore - performQuery - Error copying matching creds. Error=-25300, query={
class = inet;
"m_Limit" = "m_LimitAll";
"r_Attributes" = 1;
sync = syna;
}
2017-08-21 20:40:28.803673+0800 YDOpenHardwareSimple[35989:7157097] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> image must be non-nil
今天web和native之间的交互总是会爆出这些警告, credStore 这应该是链接的问题, 下面的delegate的问题,应该是webview 相互之间的调用的web的delegate还是没有设置好;
至于这个playerasync_runAsynchronousCommandOnQueue 就不知道为什么了?哪位大声考到麻烦说一下?