Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Streaming-Media-Cordova-Plugin video's do not play when using the WKWebView plugin #269

Open
krisrandall opened this issue Feb 28, 2017 · 1 comment

Comments

@krisrandall
Copy link

I've just dropped this plugin into a Cordova app I have that was sitting on 100% in certain functions for certain iPhones. The performance boost in unbelievable - so awesome!
Unfortunately, my app has a lot of video content and I use this plugin to play the video's : https://github.com/nchutchind/Streaming-Media-Cordova-Plugin.git
With the WKWebView plugin added video's no longer play, and I see the following error in the Safari debugger when I attempt to play them :

No message (2)
DataCloneError (DOM Exception 25): The object can not be cloned.
postMessage
iOSExec — cordova.js:981
playVideo — StreamingMedia.js:27
(anonymous function) — main.js.uncompressed.js:13069
(anonymous function) — main.js.uncompressed.js:13111
signalListener — dojo.js.uncompressed.js:8066
signalWaiting — dojo.js.uncompressed.js:8057
resolve — dojo.js.uncompressed.js:8221
success — main.js.uncompressed.js:29248
signalListener — dojo.js.uncompressed.js:8066
signalWaiting — dojo.js.uncompressed.js:8057
resolve — dojo.js.uncompressed.js:8221
signalDeferred — dojo.js.uncompressed.js:8110
signalListener — dojo.js.uncompressed.js:8081
signalWaiting — dojo.js.uncompressed.js:8057
resolve — dojo.js.uncompressed.js:8221
signalDeferred — dojo.js.uncompressed.js:8110
signalListener — dojo.js.uncompressed.js:8087
signalWaiting — dojo.js.uncompressed.js:8057
resolve — dojo.js.uncompressed.js:8221
signalDeferred — dojo.js.uncompressed.js:8110
signalListener — dojo.js.uncompressed.js:8081
signalWaiting — dojo.js.uncompressed.js:8057
resolve — dojo.js.uncompressed.js:8221
handleResponse — dojo.js.uncompressed.js:15942
onLoad — dojo.js.uncompressed.js:15968
"postMessage@[native code]
iOSExec@http://localhost:12344/cordova.js:981:58
playVideo@http://localhost:12344/plugins/com.hutchind.cordova.plugins.streamingmedia/www/StreamingMedia.js:27:14
http://localhost:12344/js/build/newnrg/main.js.uncompressed.js:13069:68
http://localhost:12344/js/build/newnrg/main.js.uncompressed.js:13111:37
signalListener@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8066:25
signalWaiting@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8057:18
resolve@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8221:18
success@http://localhost:12344/js/build/newnrg/main.js.uncompressed.js:29248:24
signalListener@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8066:25
signalWaiting@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8057:18
resolve@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8221:18
signalDeferred@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8110:22
signalListener@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8081:20
signalWaiting@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8057:18
resolve@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8221:18
signalDeferred@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8110:22
signalListener@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8087:18
signalWaiting@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8057:18
resolve@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8221:18
signalDeferred@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8110:22
signalListener@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8081:20
signalWaiting@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8057:18
resolve@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:8221:18
handleResponse@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:15942:16
onLoad@http://localhost:12344/js/build/dojo/dojo.js.uncompressed.js:15968:23"

This is the line of the streaming media plugin that is causing this error :
cordova.exec(options.successCallback || null, options.errorCallback || null, "StreamingMedia", "playVideo", [url, options]);

image

@fdambrosio
Copy link

have you found a solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants