question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Success callback should fire if closing the video early on iOS

See original GitHub issue

What 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:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

2reactions
rafiqvnscommented, Jul 26, 2019

Success callback should not fire if manually closing the video on iOS… any update this issue

1reaction
MatthewPringlecommented, Sep 6, 2018

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

URLSession background fails with t… | Apple Developer Forums
I read here that when using `URLSessionConfiguration.background(withIdentifier:)`, it shouldn't timeout and should try again 'till there is an available ...
Read more >
Background Modes Tutorial: Getting Started
The first capability you're going to add is background audio. ... iOS will signal you with a callback when your time is about...
Read more >
Angular JS - iOS 8 - iPad Air: Full Screen App keeps closing
I have a page, HTML5-jQuery. It works fine on Mobile Safari, and on Chrome. But when opened in full screen, it behaves really...
Read more >
Sure you want to leave?—browser beforeunload event
How and why should you use the `beforeunload` event to prevent users from closing a webpage? Watch the video and learn more ....
Read more >
Rewarded Video Ads - Audience Network - Meta for Developers
Rewarded video will be available for all gaming apps soon. If you don't see Rewarded Video in Monetization Manager and you're on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found