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.
| Comment | File | Size | Author |
|---|---|---|---|
| brightcove-video_cache.patch | 1.6 KB | k.dani |
Comments
Comment #1
tamasd commentedCan you elaborate me what is this issue about?
Comment #2
k.dani commentedHi 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
Comment #3
tamasd commentedMerged to 7.x-3.x.