Success callback should fire if closing the video early on iOS
See original GitHub issueWhat version of Streaming-Meda-Cordova-Plugin are you using? 2.1.2
What version of Cordova are you using? 8.0.0
What devices are affected? iOS (Android works)
Please describe the issue in detail, with relevant code samples
// Play a video with callbacks
var options = {
successCallback: function() {
//Confirmed this does not trigger on iOS. Unable to test the errorCallback.
}
...
};
window.plugins.streamingMedia.playVideo(videoUrl, options);
What did you expect to happen? options.successCallback should trigger so my dependent javascript functions can be engaged.
What actually happened? The callback does not trigger. This issue does not persist on Android. Tested on iOS:
- 4.5.5
- 4.5.4
- 4.4.0
Please let me know if you need of any other information and I will oblige.
EDIT: After looking at your code, I see you are capturing the callback when the video ends. I was exiting the video before it completed, which would be a common user action. Would it be possible to trigger the success callback when the user exits the player before the video has finished?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11

Top Related StackOverflow Question
Success callback should not fire if manually closing the video on iOS… any update this issue
@html-rulez-d00d I figured out, that for a portrait only app it still fires the orentationchange event when the landscape video is shown or hidden. Thats enough for me to be able to add a class when the video is showing in landscape.