After starting - TV in a black screen, nothing happens
I think, need to generate specific profiles for each type of TV (Samsung, LG, Philips, etc) didl-lite and use them as the last parameter in the function SetAVTransportURI?
This is much more complicated than you think it is.
You will have to read the (expensive) DLNA specifications, then realize it's all bullshit and nobody really cares about standards, then analyze what others are doing with wireshark depending on each TV manufacturer and whether it's raining or a full moon, then hopelessly hack at your keyboard trying to emulate that.
There is a reason why all UPnP/DLNA controlpoints which work with current TV models are a) closed source b) cost money and c) keep how they work a closely guarded secret.
Thanks for the clarification ...
But still ... how to use your library to generate the correct DIDL-Lite? While I was generating it from a template string, but it's not quite right :)
If it possible, small sample (cling 2.0)
I don't know about "correct" because there is a huge difference between semantically correct and actually working. But of course the basic usage of the DIDL support functions is documented in the manual.