brightcove / PHP-API-Wrapper

This project provides a starting point for integrating the Brightcove CMS API into your application. It provides simple ways to interact with the API, as well as a long list of helper functions.
25 stars 33 forks source link

Brightcove upload issue #27

Closed iammeenugupta96 closed 3 years ago

iammeenugupta96 commented 7 years ago

Hi,

I'm using 0.8 version of this library and using Drupal module 7.x-6.4. And using aws s3 as middle layer for temporary storage instead of \tmp directory locally. Sometimes, randomly it's happening that video gets uploaded in s3 but doesn't get uploaded to brightcove studio. And sometimes upload happens flawlessly. When I debugged the code, I found that upload takes place in the function "function _brightcove_upload_form_callback" of brightcove.module and within this function it calls "brightcove_upload_and_ingest" function, which internally calls to functions:

_brightcove_create_classes

and

$video = $cms->createVideo($video); $request = \Brightcove\API\Request\IngestRequest::createRequest($url, $profile);

when upload doesn't happen, it just returns [id:].

Can you please suggest why this can happen. It's a random issue I'm facing. Please suggest.

fadonascimento commented 6 years ago

I think that this issue should be open in the Drupal project module. Link: https://www.drupal.org/project/issues/brightcove?categories=All