由于实现了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: { 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: image must be non-nil
2017-08-21 20:40:25.245177+0800 YDOpenHardwareSimple[35989:7157097] CredStore - performQuery - Error copying matching creds.