Ziggeo / ReactNativeSDK

React Native SDK
Apache License 2.0
7 stars 6 forks source link

Ziggeo.play() crashes the app #77

Closed bobananto24 closed 2 years ago

bobananto24 commented 2 years ago

Hello @3akat, Now another issue pops up

try {
      //record and upload the video and return its token
      var token = await Ziggeo.record();
      console.log("Token:" + token);
      if (token) {
        Ziggeo.play(token);  // app crashes here
      }
    } catch (e) {
      //recorder error or recording was cancelled by user
      alert(e);
    }
When the Ziggeo.record function finishes it crashes the app.
(This has happened in an android real device and when tried in an ios simulator nothing has happened at all neither playing nor crashing) 
3akat commented 2 years ago

Hi @bobananto24, will take a look

3akat commented 2 years ago

Please take a look at the v1.5.5

bobananto24 commented 2 years ago

Please take a look at the v1.5.5

yes, that was working as expected in android, but when it comes to ios(simulator) I can hear only the audio I couldn't see any visual changes happened in there. @3akat is there anything I have to change/modify? waiting for your suggestions. kindly response @3akat

jessypouliot98 commented 2 years ago

@bobananto24 https://github.com/Ziggeo/ReactNativeSDK/issues/69 (nice)

You can always bypass the Ziggeo.play() by using the video's url and loading it into a videoplayer

bobananto24 commented 2 years ago

@bobananto24 #69 (nice)

You can always bypass the Ziggeo.play() by using the video's url and loading it into a videoplayer

thanks @jessypouliot98 but how could I get the video URL recorded from ziggeo video recorder

jessypouliot98 commented 2 years ago

@bobananto24 https://ziggeo.com/docs/sdks/javascript/api

You can use any video player and pass the video url which is documented in Url Structure section

bobananto24 commented 2 years ago

@jessypouliot98 I couldn't able to implement it with the doc. Could you please give me a simple example which will be more helpful. Thank you

3akat commented 2 years ago

Hi @bobananto24, do you need any more help here?

bobananto24 commented 2 years ago

Hi @bobananto24, do you need any more help here?

Everything seems fine now, thanks @3akat