I am working on Adobe Premiere Pro CC r2 plug-in SDK to develop HEVC_Encoder exporter plug-in.
I modified SDK_Exporter example to integrate our H.265 Encoder.
I have done most of the job, I am able to get H.265 encode working.
But I am unsuccessful in getting the CANCEL working.
I worked with SDK_Exporter example. When the cancel button is pressed, it enters the "exportReturn_Abort" condition and it breaks, but it is not able to return from the function (RenderAndWriteAllVideo) to main function (exSDKExport).
It Hangs and no response.
I created a thread to update the "progress" from the main function (exSDKExport). the progress the periodically update by calling "UpdateProgressPercent".
when the user intend to cancel "exportReturn_Abort", the "progress" thread return to the main function (exSDKExport) and performs the rest of the code in the main function, after that the function (exSDKEndInstance) is not called to release all the suits & to perform the closing sequence. The Next RUN doesn't work properly.
Please help me to implement CANCEL facility in my Adobe Exporter plug-in.
Thanks in Advance
Where is the exporter hanging? Is it hanging on a callback into PPro? What line of code?
Are these problems that you've observed in the sample plug-in, or just in your modified version of the plug-in?
I solved this issue. It hanged in my modified code only. Actually I was not closing my Encoder,
I was opening my Encoder in exSDKBeginInstance () and closing it in exSDKEndInstance.
When Cancel is Pressed by the user, the exSDKEndInstance was not called, so my Encoder was not closed.
I moved both Open/Close of Encoder code to exSDKExport().