I want to read metadata live content without a MainForm.cswith more details, i do not want to use BeginInvoke(new Action(()=> OnLiveContentEvent(Sender,e)) (code from the Sample MetadataLiveViewer)

I succeded to return metadataLiveSource but i can’t get the XML content of the metadata

The event will send the data as it happen in live mode. This is basically how MatadataLiveSource works.

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_live_1_1_metadata_live_source.html&tree=tree_search.html?search=metadatalivesource

Thank you @Bo Ellegård Andersen (Milestone Systems)​ for your quick response but my goal is to read metadata live content for some further analysis. I want to integrate this action of read in a smart client plugin but i am facing two problems:

(1) i can’t login automatically to the server via this function : “DialogLoginForm”.

due to this problem, i cannot create an instance of metadata item.

(2) Also i can’t execute the action through the proposed event automatically

How could you help me in this case ?

When doing a plugin you do not login. In the SMart Client environment thsi have already been done when the user starts the Smart Client.

Please do yourself a favor and start by creating a new plugin using the supplied template or alternatively modify an existing plugin.

MetadataLiveSource will not make sense without using the event. However you might want to use MetadataPlaybackSource, reading the newest will be close to live..

Recommended read:

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/plug-in_development.html&tree=tree_1.html

A Smart Client plugin might be the right choice if you immidiately wants to display something for the Smart Client user.

@Bo Ellegård Andersen (Milestone Systems)​ exactly I do not need to any login action.

In fact, when I develop my own smart client plugin application and when i try to get the metadata item always it is null object and can’t be acquired through Configuration.Instance.getItem() funtion.

For real time applications i think that MetadataLiveSource is most suitable.

If the issue is that you do not find the specific item then I guess for now it is not interesting to discuss how to best use the item.

Please verify that the metadata item is correctly configured and enabled in the Management Client.

Please test with the unmodified Config Dump tool plugin sample whether the metadata item it visible in the Smart Client plugin.

https://doc.developer.milestonesys.com/html/index.html?base=samples/configurationdump_sample.html&tree=tree_1.html