The problem source is the following:
$id = (int) $id;
If we remove this row from each functions, everything works as it should, otherwise, the $id's value change.

I also add more values to the cached video object(in ajax_upload_dialog_close_callback()), because it's useful, when you want to use these before the video content is created on BC side.

CommentFileSizeAuthor
brightcove-video_cache.patch1.6 KBk.dani

Comments

tamasd’s picture

Status: Needs review » Postponed (maintainer needs more info)

Can you elaborate me what is this issue about?

k.dani’s picture

Status: Postponed (maintainer needs more info) » Needs review

Hi Yorirou!

The problem is that the $id is not the same before and after the type casting. In my local environment, all "available" video id will be the following after type casting: 2147483647. This is the max value of the 32bit integer, so in this case, the type casting is not work properly. Is this type casting really important?

By the way, I would like to use this cached value for auto fill my custom content type's fields, after I uploaded a new video to Brightcove.

Thanks,
Daniel

tamasd’s picture

Status: Needs review » Fixed

Merged to 7.x-3.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.