You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project I have to make multiple calls to my Kaltura Server and those calls cannot be synchronous as it would damage the user experience. Now the issue is when I use the Singleton design pattern the KalturaClientDelegate works as expected. But I use a separate KalturaClient instance for some server calls. In those cases I do not get any delegate method callbacks.
Here are some notable points that may help understand the problem:
Synchronous calls always work
Asynchronous calls (aka KalturaClientDelegate mehods) work if I use KalturaClient in a singleton object
If I create a new instance of KalturaClient then the asynchronous calls do not work
The sample code looks like this:
let config = KalturaClientConfiguration.init()
let logger = KalturaNSLogger.init()
config.logger = logger
config.serviceUrl = KalturaBaseURL
let client = KalturaClient.init(config: config)
client?.ks = KalturaSessionToken
client?.delegate = self
let categoryList = client?.category.list()
print(categoryList.totalCount)
If I comment out the client?.delegate = self line then I receive the response.
Here's the implementation of the delegate protocol.
Thank for you reporting an issue and helping improve Kaltura!
To get the fastest response time, and help the maintainers review and test your reported issues or suggestions, please ensure that your issue includes the following (please comment with more info if you have not included all this info in your original issue):
Is the issue you're experiencing consistent and across platforms? or does it only happens on certain conditions?
please provide as much details as possible.
Which Kaltura deployment you're using: Kaltura SaaS, or self-hosted?
If self hosted, are you using the RPM or deb install?
Packages installed.
When using RPM, paste the output for:
# rpm -qa \"kaltura*\"
For deb based systems:
# dpkg -l \"kaltura-*\"
If running a self hosted ENV - provide the MySQL server version used
If running a self hosted ENV - is this a single all in 1 server or a cluster?
If running a self hosted ENV, while making the problematic request, run:
In my project I have to make multiple calls to my Kaltura Server and those calls cannot be synchronous as it would damage the user experience. Now the issue is when I use the Singleton design pattern the
KalturaClientDelegate
works as expected. But I use a separateKalturaClient
instance for some server calls. In those cases I do not get any delegate method callbacks.Here are some notable points that may help understand the problem:
KalturaClientDelegate
mehods) work if I useKalturaClient
in a singleton objectKalturaClient
then the asynchronous calls do not workThe sample code looks like this:
If I comment out the
client?.delegate = self
line then I receive the response.Here's the implementation of the delegate protocol.
The text was updated successfully, but these errors were encountered: