You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/08/25 01:00:13 UTC

[GitHub] CVeniamin opened a new issue #176: iOS: seekTo crashes if passed URL is served by WKWebView

CVeniamin opened a new issue #176: iOS: seekTo crashes if passed URL is served by WKWebView 
URL: https://github.com/apache/cordova-plugin-media/issues/176
 
 
   I use this plugin to play remote urls and at the same time to cache those file for following plays. 
   To achieve file caching both [file](https://github.com/apache/cordova-plugin-file) and [file-transfer](https://github.com/apache/cordova-plugin-file) are used.  In adding I also use [ionic-webview](https://github.com/ionic-team/cordova-plugin-ionic-webview) WKWebview engine which has an WebServer that will serve cached files.
   The issue that I have is related with seekTo function which works when Media is created from a remote url. 
   For example when using a remote url: 
   `var track = new Media("https://remote.url/never_gonna_give_you_up.mp3", onTrackEnd, onTrackError, onTrackStatus);`
   I'm able to play actual song and use `track.seekTo(5000);` always works.
   However when track is created from a localhost, e.g.: 
   `var track = new Media("http://localhost:8080/_file_/var/mobile/Containers/Data/Application/99ADB8B6-6915-4802-BBC5-0EDE9127A5C4/Library/files/never_gonna_give_you_up.mp3", onTrackEnd, onTrackError, onTrackStatus);`
   I'm able to pause and play the track however as soon I try to seekTo the app crashes. 
   After looking through the source code I couldn't find the reason to happen only for locally served files however there was an similar issue [CB-10535](https://issues.apache.org/jira/browse/CB-10535) and a PR #82 which showcased similar issue that occurred however on remote files. 
   
   Could it be that WebServer itself doesn't respond correctly back to AVPlayer, hitting a wrongful state?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org