AIMP Forum

AIMP for Windows => Плагины / Plugins => Дополнения / Addons => Плагины-дополнения / Addons => Тема начата: Moshi0 от Января 02, 2017, 23:19:35

Название: AIMP DLNA v2.5.0.1 [AIMP4.50+]
Отправлено: Moshi0 от Января 02, 2017, 23:19:35
[catalog_card=1012]

Suggestions, comments and bug reports are welcome here or on github.

(https://img.shields.io/badge/source-aimp__dlna-blue.svg?style=for-the-badge&logo=github) (https://github.com/MoshiMoshi0/aimp_dlna)

Installation
  • Extract the archive's content into AIMP Plugins folder.
  • Open plugin manager and enable "DLNA Client" plugin.
  • Go to the new "DLNA" music library to browse servers.

Known Issues:
  • Tree view flashes twice on manual refresh (F5)
  • Settings UI does not match theme colors

Todo:

    Changelog:
    v2.5.0.1 - 2022/02/23
    • Fix incorrect length of unicode strings
    v2.5.0.0 - 2021/10/30
    • Fix album art not working on version 5 and later
    • Fix DeviceUuid field being visible in UI
    • Disable bookmarks to speed up startup times
    • Update Platinum UPnP SDK
    • Add estonian, spanish, korean, russian localisation
    v2.4.0.0 - 2019/01/24
    • Add support for album art. (Works only with AIMP v4.60 or later)
    v2.3.2.1 - 2018/11/01
    • Correct control lengths in options dialog.
    v2.3.2.0 - 2018/11/01
    • Cleanup options dialog.
    • Fix thread leak.
    v2.3.1.0 - 2018/09/29
    • Cleanup options dialog.
    v2.3.0.2 - 2018/09/25
    • Fix plugin exception.
    v2.3.0.0 - 2018/09/25
    • Add config options.
    • Rediscover servers on manual library refresh.
    • Change date field to year only.
    v2.2.2.0 - 2018/09/19
    • Add delay before tree refresh every time a server is found.
    v2.2.1.0 - 2018/09/19
    • Fix memory leak.
    v2.2.0.0 - 2018/09/15
    • Add support for filtering ("quick search").
    • Expose duration field.
    • Cleaup field list for each view.
    • Allow grouping customization.
    • Fire upnp discovery once instead of running it in a background task.
    • Refresh tree only if any servers are found.
    • Fix exception when browsing empty container.
    • Performance improvements.
    v2.1.1.0 - 2018/09/02
    • Fix remaining memory leaks.
    v2.1.0.0 - 2018/09/01
    • Add auto refresh after the first server has been found.
    v2.0.1.0 - 2018/08/31
    • Fix some memory leaks.
    • Fix song list displaying garbage characters.
    v2.0.0.0 - 2018/08/30
    • Complete rewrite in c++ using Platinum UPnP SDK.
    v1.0.5.97 - 2017/01/28
    • Code cleanup and performance improvements.
    • Refresh library when new device is found.
    • Removed logging from cache code which could cause longer load times.
    • Fail nicely instead of asserting when DLNA service can't be found for current selection.
    • Cache album art images.
    v1.0.4.45 - 2017/01/24
    • Download and display album art if available.
    • Enabled group and album art views.
    • Cache code cleanup.
    v1.0.3.15 - 2017/01/16
    • Fixed bug that caused empty cache to be created when browsing DLNA tree in certain order and prevented new items to be fetched from DLNA device.
    v1.0.2.8 - 2017/01/16
    • Fixed a bug that was causing an empty row to show up in song list in each folder.
    v1.0.1.4 - 2017/01/03
    • Fixed permission exception thrown by FileLogger which caused plugin to not load.
    • Logs now include full unhandled exceptions.
    v1.0.0.0 - 2017/01/02
    • Initial release.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Zhenya от Января 03, 2017, 00:04:05
    Requirements
    1. Newest .NET Framework
    https://www.microsoft.com/net/download/framework
    2. Microsoft Visual C++ 2015 Redistributable (x86)
    https://www.microsoft.com/en-us/download/details.aspx?id=53840

    I install it and reboot PC, but nothing appeared in plugin manager. I tried it on 1841 and 1879 builds.
    Windows 8.1 Update 1 32-bit.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Moshi0 от Января 03, 2017, 01:04:42
    I install it and reboot PC, but nothing appeared in plugin manager. I tried it on 1841 and 1879 builds.
    Windows 8.1 Update 1 32-bit.

    Ok, this is second time this gets reported. I'll spin up a Win 8 32bit VM tomorrow and try to recreate the problem.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: +Fix от Января 03, 2017, 11:09:50
    Made translation for your plugin
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Artem от Января 03, 2017, 11:48:25
    Awesome!
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: SanekK от Января 03, 2017, 12:46:54
    This plugin is DLNA client or server?
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Soolo от Января 03, 2017, 12:48:26
    On this build: https://yadi.sk/d/PpdSf6Nn36eHvc

    Bug after exit AIMP:
    (http://storage9.static.itmages.ru/i/17/0103/h_1483437658_2164523_33f9f5b1b4.png)
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Moshi0 от Января 03, 2017, 15:24:58
    Made translation for your plugin

    Thanks for the translation but there will be much more to translate when I'll add some configuration options.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Moshi0 от Января 03, 2017, 15:25:43
    This plugin is DLNA client or server?

    This is a client, basically it creates a tree that you can browse.
    I will update the post to make it more clear.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Moshi0 от Января 03, 2017, 15:26:37
    On this build: https://yadi.sk/d/PpdSf6Nn36eHvc

    Bug after exit AIMP:
    (http://storage9.static.itmages.ru/i/17/0103/h_1483437658_2164523_33f9f5b1b4.png)

    Yes, unfortunately that is a problem with .NET SDK, it is currently being worked on.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Moshi0 от Января 03, 2017, 17:57:27
    I install it and reboot PC, but nothing appeared in plugin manager. I tried it on 1841 and 1879 builds.
    Windows 8.1 Update 1 32-bit.

    Please try the 1.0.1.4 build.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Zhenya от Января 03, 2017, 18:23:35
    Please try the 1.0.1.4 build.
    It remains the same.
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Moshi0 от Января 03, 2017, 20:50:46
    It remains the same.

    Unfortunately I cant reproduce this problem. I have clean Win8.1 32bit, installed AIMP 4.12 and both C# framework and C++ redist using exactly the links in my post and it works.

    Is there a "Logs" folder inside the "aimp_dlna" folder? If so can you post the newest log?
    Название: Re: AIMP DLNA v1.0.0.0 [ALPHA] [AIMP4.12+] [.NET]
    Отправлено: Zhenya от Января 03, 2017, 22:24:00
    Is there a "Logs" folder inside the "aimp_dlna" folder?
    No.
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Августа 30, 2018, 18:12:08
    Plugin rewritten in c++ but there are still a few features missing from the now "legacy" version.
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Zhenya от Августа 30, 2018, 19:26:07
    There is a memory leak after the player is closed.

    (https://i.imgur.com/pepzQYC.png)

    The log was obtained using this debug build:
    https://yadi.sk/d/-Dacp9J83YuFWB

    Also after restarting the player with active DLNA tab, the tree on the left becomes empty. You need to manually press F5 in the music library to get a content of the tree back.
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Августа 30, 2018, 21:02:55
    There is a memory leak after the player is closed.

    The log was obtained using this debug build:
    Also after restarting the player with active DLNA tab, the tree on the left becomes empty. You need to manually press F5 in the music library to get a content of the tree back.

    Yea, you have to manually refresh for now as I had problems with signalling aimp that the tree has changed.

    About the memory leak, I honestly dont know how to find where I am leaking.
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Zhenya от Августа 30, 2018, 22:39:33
    Yea, you have to manually refresh for now as I had problems with signalling aimp that the tree has changed.

    Maybe MusicLibraryDemo (DemoExplorerView) from the SDK will help you?
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Августа 30, 2018, 23:52:38
    Maybe MusicLibraryDemo (DemoExplorerView) from the SDK will help you?

    Not really because its written in pascal not c++. There is no c++ examples of custom music library implementation as far as I can tell.
    I managed to fix some memory leaks but I cant figure out the rest.

    For example I commented almost all of the code but its still leaking memory on just plugin initialization:
    A memory block has been leaked. The size is: 36

    This block was allocated by thread 0x53C0, and the stack trace (return addresses) at the time was:
    0176a1d8 +04 AIMP.Runtime.dll System       4755 +20 @GetMem
    01249d6a +6e AIMP.Shared.dll  AIMP.Core     348  +3 TAIMPCore.RegisterExtension
    012e37ef +63 AIMP.Shared.dll  AIMP.Plugins  657  +5 TAIMPPluginPresenter.RegisterExtension
    012e2fab +5f AIMP.Shared.dll  AIMP.Plugins  461  +7 TAIMPPlugin.Initialize
    012e4d47 +0f AIMP.Shared.dll  AIMP.Plugins 1000  +2 TAIMPPluginManager.Load

    The block is currently used for an object of class: TAIMPMLGroupingPresetsAdapter

    Even tho im not even using a IAIMPMLGroupingPresets.
    It does not help that internal pascal function names are different from those in c++ sdk.
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Zhenya от Августа 31, 2018, 00:05:08
    I think it remains only to hope for help from Artem.
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 02, 2018, 02:04:46
    There is a memory leak after the player is closed.

    The log was obtained using this debug build:
    Also after restarting the player with active DLNA tab, the tree on the left becomes empty. You need to manually press F5 in the music library to get a content of the tree back.

    All memory leaks should be fixed.
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Soolo от Сентября 19, 2018, 14:28:02
    All memory leaks should be fixed.
    v2.2.0.0
    On this build: https://yadi.sk/d/-Dacp9J83YuFWB
    After AIMP exit

    (https://www.aimp.ru/forum/index.php?action=dlattach;topic=55370.0;attach=54956)
    Название: Re: AIMP DLNA v2.0.0.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 19, 2018, 16:42:46
    v2.2.0.0
    On this build: https://yadi.sk/d/-Dacp9J83YuFWB
    After AIMP exit

    (https://www.aimp.ru/forum/index.php?action=dlattach;topic=55370.0;attach=54956)

    Whoops. Fixed.
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Soolo от Сентября 19, 2018, 22:03:25
    Whoops. Fixed.
    Cool!

    v2.2.1.0
    not always shows all servers
    after installation of the plug-in - all servers are visible
    after AIMP exit and run AIMP again - not all servers are visible
    it occurs not always, but is frequent

    (https://www.aimp.ru/forum/index.php?action=dlattach;topic=55370.0;attach=54962) >>>(https://www.aimp.ru/forum/index.php?action=dlattach;topic=55370.0;attach=54961)
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 19, 2018, 23:54:05
    Cool!

    v2.2.1.0
    not always shows all servers
    after installation of the plug-in - all servers are visible
    after AIMP exit and run AIMP again - not all servers are visible
    it occurs not always, but is frequent

    Yeah, so the reason is that I cant refresh the tree every time a server is found because that makes it very annoying (gui flash, tree collapses, can sometime cause noticeable delays). I also want to make the initial load as fast as possible.
    To counter this the plugin refreshes the tree after the first server is found, which may cause some servers to not be included. But they should be still discovered and you can refresh the tree manually with F5 or right click and select refresh.

    In v2.2.2.0 I added a 1s delay every time a new server is discovered. I think that should help.
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Soolo от Сентября 20, 2018, 08:07:35
    or right click and select refresh.
    i have no this menu item

    (https://www.aimp.ru/forum/index.php?action=dlattach;topic=55370.0;attach=54964)
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 20, 2018, 12:50:21
    i have no this menu item

    Hmm I remember there being a refresh item, maybe it was removed in some update.
    I always use F5.

    Did the 1s delay help?
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Soolo от Сентября 20, 2018, 13:21:29
    Did the 1s delay help?
    yes
    but on feelings it is a big delay
    it is possible to make less
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 21, 2018, 16:40:59
    Oh, I now have the plugin page/card thingy. Nice!

    yes
    but on feelings it is a big delay
    it is possible to make less

    Ok, in the next update it will be smaller, maybe 0.25 or 0.5s.
    I guess I'll make this configurable when I add configuration dialog.
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 25, 2018, 18:48:26
    yes
    but on feelings it is a big delay
    it is possible to make less

    In v2.3.0.0 you can fine tune the values in configuration dialog.
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Zhenya от Сентября 25, 2018, 19:05:03
    In v2.3.0.0 you can fine tune the values in configuration dialog.

    v2.3.0.0:

    (https://i.imgur.com/c4eWFgV.png)
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 25, 2018, 19:39:51
    v2.3.0.0:

    (https://i.imgur.com/c4eWFgV.png)

    Sorry about that. Please try v2.3.0.2
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Zhenya от Сентября 25, 2018, 20:00:13
    Sorry about that. Please try v2.3.0.2

    Fixed.

    A small drawback - the focus doesn't go inside the plugin settings page with the Tab key.
    Also you can edit (and delete) content in Log level field:

    (https://i.imgur.com/E8KIEtA.png)

    Is it necessary?
    Название: Re: AIMP DLNA v2.2.1.0 [ALPHA] [AIMP4.12+]
    Отправлено: Moshi0 от Сентября 25, 2018, 20:29:22
    A small drawback - the focus doesn't go inside the plugin settings page with the Tab key.

    Yea tab switching is not yet implemented but it will be.

    Also you can edit (and delete) content in Log level field:

    (https://i.imgur.com/E8KIEtA.png)

    Is it necessary?

    Right, its not necessary. Will be fixed in the next update.

    BTW the logs are send to Debug output, you can inspect that with for ex. Sysinternals DebugView.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Pete82 от Октября 08, 2018, 17:32:44
    Ok it works. Thanks.  :) How can I now control playback from Android device? I tired aimp remote control - https://play.google.com/store/apps/details?id=com.invised.aimp.rc - but it can't see dnla.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Октября 09, 2018, 13:21:48
    Ok it works. Thanks.  :) How can I now control playback from Android device? I tired aimp remote control - https://play.google.com/store/apps/details?id=com.invised.aimp.rc - but it can't see dnla.

    I have not used this app but I guess it does not allow you to browse music libraries, only playlists. So you would need to create a playlist with songs from your dlna server on your pc first.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Soolo от Октября 09, 2018, 14:00:21
    the plug-in hinder close of the AIMP
    if I update plugin with drag and drop aimp_dlna.zip file to AIMP main window
    and then press button "Restart now" - AIMP not restarted
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Октября 09, 2018, 19:43:39
    the plug-in hinder close of the AIMP
    if I update plugin with drag and drop aimp_dlna.zip file to AIMP main window
    and then press button "Restart now" - AIMP not restarted

    Didnt know you can update plugins like that. But I tried it and it restarts just fine for me.
    Are you sure its aimp_dlna and not some other plugin? Any steps to reproduce this issue?
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Pete82 от Октября 09, 2018, 23:23:13
    I have not used this app but I guess it does not allow you to browse music libraries, only playlists. So you would need to create a playlist with songs from your dlna server on your pc first.

    Can you tell me step by step how to create Playlist which looks similar to folder view in the dnla library?
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Октября 10, 2018, 01:06:07
    Can you tell me step by step how to create Playlist which looks similar to folder view in the dnla library?

    Well, a playlist is a flat list of songs so it cant have folders.
    But you browse to a folder with songs you want, then right click on that folder, and you can add the songs to a playlist or create a new one.

    There is also a feature in the plugin that helps with this.
    You can browse all folders you want to include in your playlist, and then click on the parent folder and all browsed children songs will be included from cache.

    So for example if you have a tree:
    Music
        Artist 1
            Album 1
            Album 2
            Album 3
        Artist 2
            Album a
            Album b
            Album c

    You can first browse "Album 1", "Album 2", "Album 3" folders so the songs get loaded into the cache.
    Then you can click on the "Artist 1" folder, and the plugin will fetch songs from cache for folders "Album 1", "Album 2", "Album 3" and combine them in one list.

    There is a configuration option to set how deep should the cache be included, it defaults to 2 so you could also click on "Music" folder and it will still load "Album 1", "Album 2", "Album 3" from cache.

    Hope I explained that good enough.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Soolo от Октября 10, 2018, 08:00:32
    Didnt know you can update plugins like that. But I tried it and it restarts just fine for me.
    Are you sure its aimp_dlna and not some other plugin? Any steps to reproduce this issue?
    if I select the DLNA tab - there is the problem
    if I select local files tab - so good
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Pete82 от Октября 10, 2018, 13:43:38
    Well, a playlist is a flat list of songs so it cant have folders.
    But you browse to a folder with songs you want, then right click on that folder, and you can add the songs to a playlist or create a new one.

    There is also a feature in the plugin that helps with this.
    You can browse all folders you want to include in your playlist, and then click on the parent folder and all browsed children songs will be included from cache.

    So for example if you have a tree:
    Music
        Artist 1
            Album 1
            Album 2
            Album 3
        Artist 2
            Album a
            Album b
            Album c

    You can first browse "Album 1", "Album 2", "Album 3" folders so the songs get loaded into the cache.
    Then you can click on the "Artist 1" folder, and the plugin will fetch songs from cache for folders "Album 1", "Album 2", "Album 3" and combine them in one list.

    There is a configuration option to set how deep should the cache be included, it defaults to 2 so you could also click on "Music" folder and it will still load "Album 1", "Album 2", "Album 3" from cache.

    Hope I explained that good enough.

    Sound bad. :/ Only in my folder view I remember where I have music which I want play at specified moment. It's easy to find albums and tracks. DNLA plugin allow me to use folder view. But aimp remote can't see dnla library. :( So there is a way to add to aimp remote feature which allow me to view dnla library?
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Октября 10, 2018, 15:41:42
    Sound bad. :/ Only in my folder view I remember where I have music which I want play at specified moment. It's easy to find albums and tracks. DNLA plugin allow me to use folder view. But aimp remote can't see dnla library. :( So there is a way to add to aimp remote feature which allow me to view dnla library?

    No, there is nothing I can do. You have to write to the developer of aimp remote and ask him if he can add the ability to view/browse music libraries.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Октября 10, 2018, 16:09:06
    if I select the DLNA tab - there is the problem
    if I select local files tab - so good

    So if I understand correctly, when you click restart aimp closes but does not restart? I had this happen only once while testing so I cant reproduce this issue.

    Does this happen for you every time you want to update? Every time you click restart, aimp does not restart at all?
    If so, could you set debug level to FINEST in options, restart aimp, open DebugView from Sysinternals, and try to update again? Then please send me the last few lines from the log.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Soolo от Октября 10, 2018, 16:23:09
    So if I understand correctly, when you click restart aimp closes but does not restart? I had this happen only once while testing so I cant reproduce this issue.

    Does this happen for you every time you want to update? Every time you click restart, aimp does not restart at all?
    If so, could you set debug level to FINEST in options, restart aimp, open DebugView from Sysinternals, and try to update again? Then please send me the last few lines from the log.
    00000001 0.00000000 [772] pltupnp.cpp(200): 2018-10-10T16:27:19.767000000+03:00 [PLT_UPnP::Stop] INFO: Stopping UPnP...
    00000002 0.00010330 [772] plthttpservertask.cpp(436): 2018-10-10T16:27:19.767000000+03:00 [PLT_HttpListenTask::DoRun] WARNING: PLT_HttpListenTask exiting with -20021 (NPT_ERROR_CANCELLED)
    00000003 0.00142060 [772] plttaskmanager.cpp(226): 2018-10-10T16:27:19.767000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00BDE908] 0/50 running tasks
    00000004 0.05122430 [772] pltdatagramstream.cpp(83): 2018-10-10T16:27:19.818000000+03:00 [PLT_InputDatagramStream::Read] FINER: PLT_InputDatagramStream received 0
    00000005 0.05140810 [772] pltssdp.cpp(481): 2018-10-10T16:27:19.818000000+03:00 [PLT_SsdpSearchTask::DoRun] WARNING: PLT_SsdpSearchTask got an error (-20021) waiting for response
    00000006 0.05143710 [772] plttaskmanager.cpp(226): 2018-10-10T16:27:19.819000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00BDE758] 3/0 running tasks
    00000007 0.16013400 [772] plttaskmanager.cpp(226): 2018-10-10T16:27:19.927000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00BDE758] 2/0 running tasks
    00000008 0.16033690 [772] plttaskmanager.cpp(226): 2018-10-10T16:27:19.927000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00BDE758] 1/0 running tasks
    00000009 0.16041949 [772] plttaskmanager.cpp(226): 2018-10-10T16:27:19.928000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00BDE758] 0/0 running tasks
    00000010 0.17602541 [772] pltevent.cpp(123): 2018-10-10T16:27:19.943000000+03:00 [PLT_EventSubscriber::~PLT_EventSubscriber] FINE: Deleting subscriber (uuid:241948e5-43b3-4107-90d7-9497b0d5aef0)
    00000011 0.17609809 [772] pltevent.cpp(123): 2018-10-10T16:27:19.943000000+03:00 [PLT_EventSubscriber::~PLT_EventSubscriber] FINE: Deleting subscriber (uuid:299a8804-3a3b-4458-99a9-076434548ed4)
    00000012 0.17616110 [772] plthttpserver.cpp(140): 2018-10-10T16:27:19.943000000+03:00 [PLT_HttpServer::Stop] WARNING: NPT_CHECK failed, result=-20009 (NPT_ERROR_INVALID_STATE) [(NPT_ERROR_INVALID_STATE)]
    00000013 0.17644520 [772] pltdatagramstream.cpp(83): 2018-10-10T16:27:19.944000000+03:00 [PLT_InputDatagramStream::Read] FINER: PLT_InputDatagramStream received 0
    00000014 0.17649710 [772] plthttpservertask.cpp(179): 2018-10-10T16:27:19.944000000+03:00 [PLT_HttpServerSocketTask::Read] WARNING: NPT_CHECK failed, result=-20021 (NPT_ERROR_CANCELLED) [(res)]
    00000015 0.17656150 [772] plttaskmanager.cpp(226): 2018-10-10T16:27:19.944000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00BDE518] 0/0 running tasks
    00000016 0.23825841 [772] pltupnp.cpp(198): 2018-10-10T16:27:20.005000000+03:00 [PLT_UPnP::Stop] WARNING: NPT_CHECK failed, result=-20009 (NPT_ERROR_INVALID_STATE) [(NPT_ERROR_INVALID_STATE)]
    00000001 0.00000000 [7740] pltupnp.cpp(200): 2018-10-10T16:30:00.383000000+03:00 [PLT_UPnP::Stop] INFO: Stopping UPnP...
    00000002 0.00009830 [7740] plthttpservertask.cpp(436): 2018-10-10T16:30:00.384000000+03:00 [PLT_HttpListenTask::DoRun] WARNING: PLT_HttpListenTask exiting with -20021 (NPT_ERROR_CANCELLED)
    00000003 0.00147750 [7740] plttaskmanager.cpp(226): 2018-10-10T16:30:00.384000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A88260] 0/50 running tasks
    00000004 0.05863230 [7740] pltdatagramstream.cpp(83): 2018-10-10T16:30:00.441000000+03:00 [PLT_InputDatagramStream::Read] FINER: PLT_InputDatagramStream received 0
    00000005 0.05881050 [7740] pltssdp.cpp(481): 2018-10-10T16:30:00.442000000+03:00 [PLT_SsdpSearchTask::DoRun] WARNING: PLT_SsdpSearchTask got an error (-20021) waiting for response
    00000006 0.05891020 [7740] plttaskmanager.cpp(226): 2018-10-10T16:30:00.443000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A881A0] 3/0 running tasks
    00000007 0.16363440 [7740] plttaskmanager.cpp(226): 2018-10-10T16:30:00.547000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A881A0] 2/0 running tasks
    00000008 0.16383830 [7740] plttaskmanager.cpp(226): 2018-10-10T16:30:00.547000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A881A0] 1/0 running tasks
    00000009 0.16391119 [7740] plttaskmanager.cpp(226): 2018-10-10T16:30:00.548000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A881A0] 0/0 running tasks
    00000010 0.17951770 [7740] pltevent.cpp(123): 2018-10-10T16:30:00.563000000+03:00 [PLT_EventSubscriber::~PLT_EventSubscriber] FINE: Deleting subscriber (uuid:bd609199-def1-428b-ac84-1a794068ce43)
    00000011 0.17958499 [7740] pltevent.cpp(123): 2018-10-10T16:30:00.563000000+03:00 [PLT_EventSubscriber::~PLT_EventSubscriber] FINE: Deleting subscriber (uuid:bd37ab2c-83d7-477f-a129-c5c65a72e581)
    00000012 0.17964870 [7740] plthttpserver.cpp(140): 2018-10-10T16:30:00.563000000+03:00 [PLT_HttpServer::Stop] WARNING: NPT_CHECK failed, result=-20009 (NPT_ERROR_INVALID_STATE) [(NPT_ERROR_INVALID_STATE)]
    00000013 0.17993189 [7740] pltdatagramstream.cpp(83): 2018-10-10T16:30:00.564000000+03:00 [PLT_InputDatagramStream::Read] FINER: PLT_InputDatagramStream received 0
    00000014 0.17998920 [7740] plthttpservertask.cpp(179): 2018-10-10T16:30:00.564000000+03:00 [PLT_HttpServerSocketTask::Read] WARNING: NPT_CHECK failed, result=-20021 (NPT_ERROR_CANCELLED) [(res)]
    00000015 0.18005550 [7740] plttaskmanager.cpp(226): 2018-10-10T16:30:00.564000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A88380] 0/0 running tasks
    00000016 0.24176890 [7740] pltupnp.cpp(198): 2018-10-10T16:30:00.625000000+03:00 [PLT_UPnP::Stop] WARNING: NPT_CHECK failed, result=-20009 (NPT_ERROR_INVALID_STATE) [(NPT_ERROR_INVALID_STATE)]
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Октября 10, 2018, 16:43:47
    Please try this build. The first restart should still fail because the older plugin version will be loaded.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Soolo от Октября 11, 2018, 08:25:11
    Please try this build. The first restart should still fail because the older plugin version will be loaded.
    same behavior

    00000001 0.00000000 [8868] pltupnp.cpp(200): 2018-10-11T08:29:26.031000000+03:00 [PLT_UPnP::Stop] INFO: Stopping UPnP...
    00000002 0.00010160 [8868] plthttpservertask.cpp(436): 2018-10-11T08:29:26.031000000+03:00 [PLT_HttpListenTask::DoRun] WARNING: PLT_HttpListenTask exiting with -20021 (NPT_ERROR_CANCELLED)
    00000003 0.00178340 [8868] plttaskmanager.cpp(226): 2018-10-11T08:29:26.031000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A92B88] 0/50 running tasks
    00000004 0.05135010 [8868] pltdatagramstream.cpp(83): 2018-10-11T08:29:26.081000000+03:00 [PLT_InputDatagramStream::Read] FINER: PLT_InputDatagramStream received 0
    00000005 0.05156730 [8868] pltssdp.cpp(481): 2018-10-11T08:29:26.082000000+03:00 [PLT_SsdpSearchTask::DoRun] WARNING: PLT_SsdpSearchTask got an error (-20021) waiting for response
    00000006 0.05184180 [8868] plttaskmanager.cpp(226): 2018-10-11T08:29:26.083000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A92B28] 3/0 running tasks
    00000007 0.15097250 [8868] plttaskmanager.cpp(226): 2018-10-11T08:29:26.182000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A92B28] 2/0 running tasks
    00000008 0.15153620 [8868] plttaskmanager.cpp(226): 2018-10-11T08:29:26.182000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A92B28] 1/0 running tasks
    00000009 0.15165640 [8868] plttaskmanager.cpp(226): 2018-10-11T08:29:26.183000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A92B28] 0/0 running tasks
    00000010 0.15218090 [8868] plthttpserver.cpp(140): 2018-10-11T08:29:26.183000000+03:00 [PLT_HttpServer::Stop] WARNING: NPT_CHECK failed, result=-20009 (NPT_ERROR_INVALID_STATE) [(NPT_ERROR_INVALID_STATE)]
    00000011 0.15246500 [8868] pltdatagramstream.cpp(83): 2018-10-11T08:29:26.184000000+03:00 [PLT_InputDatagramStream::Read] FINER: PLT_InputDatagramStream received 0
    00000012 0.15253539 [8868] plthttpservertask.cpp(179): 2018-10-11T08:29:26.184000000+03:00 [PLT_HttpServerSocketTask::Read] WARNING: NPT_CHECK failed, result=-20021 (NPT_ERROR_CANCELLED) [(res)]
    00000013 0.15260071 [8868] plttaskmanager.cpp(226): 2018-10-11T08:29:26.184000000+03:00 [PLT_TaskManager::RemoveTask] FINER: [TaskManager 0x00A92708] 0/0 running tasks
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Октября 11, 2018, 23:23:26
    same behavior

    Sorry, I cant reproduce this.
    From the logs it looks like the plugin is unloaded correctly, so this has to be a bug with aimp and not my plugin.
    I assume you are running latest aimp version?

    Artem, if you could try to reproduce this and debug aimp internally I would appreciate it.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Artem от Октября 31, 2018, 22:57:44
    Artem, if you could try to reproduce this and debug aimp internally I would appreciate it.

    Sorry for long delay.
    I have tried to reproduce it on my machine, but faults.
    Anyway my debugging tool shows to me a leak of thread handle:

    allocation number: 69795
    program up time: 4,31 s
    type: Thread Handle
    handle: $e10
    access rights: $1fffff
    threadId: $50f4
    processId: $5f9c
    process exe: D:\Projects\AIMP\AIMP4Windows\trunk\AIMP\Binary\AIMP.exe

    main thread ($649c):
    671cfe5a madExcept32.dll madExceptDbg               3805 CreateThreadCallback
    004b0e8b AIMP.exe        madExcept                 17620 HookedCreateThread
    7619e9f4 ucrtbase.dll                                    _beginthreadex
    00cf79ae AIMP.exe        AIMP.ML.PluginDataStorage   311 TAIMPMLPluginBasedDataStorage.Create
    00cfbb14 AIMP.exe        AIMP.ML.Services            245 TAIMPMusicLibraryService.RegisterExtension
    0086ae7e AIMP.exe        AIMP.Core                   349 TAIMPCore.RegisterExtension
    0097a7e7 AIMP.exe        AIMP.Plugins                657 TAIMPPluginPresenter.RegisterExtension
    00979bf9 AIMP.exe        AIMP.Plugins                461 TAIMPPlugin.Initialize
    0097c2f5 AIMP.exe        AIMP.Plugins               1000 TAIMPPluginManager.Load
    0097c37a AIMP.exe        AIMP.Plugins               1015 TAIMPPluginManager.Load
    0097be1e AIMP.exe        AIMP.Plugins                926 TAIMPPluginManager.ConfigLoad
    00df7813 AIMP.exe        AIMPMain                   1227 ConfigLoadPlugins
    00df7bd7 AIMP.exe        AIMPMain                   1259 TAIMPMainForm.ConfigLoad
    00df6d1e AIMP.exe        AIMPMain                   1060 TAIMPMainForm.Initialize
    00e19ba7 AIMP.exe        AIMP                         69 initialization
    74a78482 KERNEL32.DLL                                    BaseThreadInitThunk

    Of course, it may be a false positive, but may be a root of evil.
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Ноября 01, 2018, 05:01:10
    same behavior

    Please try v2.3.2.0

    Anyway my debugging tool shows to me a leak of thread handle:

    Should be fixed in v2.3.2.0
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Soolo от Ноября 01, 2018, 07:45:49
    Please try v2.3.2.0
    fixed

    short line:

    (https://www.aimp.ru/forum/index.php?action=dlattach;topic=55370.0;attach=55339)
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Ноября 01, 2018, 16:10:48
    fixed

    Nice.

    short line

    Corrected in v2.3.2.1
    Название: Re: AIMP DLNA v2.3.1.0 [ALPHA] [AIMP4.50+]
    Отправлено: Soolo от Ноября 01, 2018, 16:12:21
    Corrected in v2.3.2.1
    fixed
    thx
    Название: Re: AIMP DLNA v2.3.2.0 [ALPHA] [AIMP4.50+]
    Отправлено: от Ноября 02, 2018, 16:44:12
    Moshi0,

    Hello, I am attaching the espanol-AR.lng [Spanish (Argentina)] language file below for this wonderful plugin! ;)

    Keep up that good work!
    Название: Re: AIMP DLNA v2.3.2.0 [ALPHA] [AIMP4.50+]
    Отправлено: Moshi0 от Ноября 05, 2018, 22:47:29
    Moshi0,

    Hello, I am attaching the espanol-AR.lng [Spanish (Argentina)] language file below for this wonderful plugin! ;)

    Keep up that good work!

    Thanks. I'll be adding translations once the plugin hits beta.
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Moshi0 от Января 24, 2019, 13:18:13
    I marked v2.4.0.0 as beta so if you have any translations I'll be including them from now.
    I've already included espanol-AR.lng.

    If no one reports any bugs this will be a release version.
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: pcdinh от Марта 18, 2019, 20:11:03
    Hi all,

    I just installed AIMP and AIMP DLNA plugin. I also enabled media streaming on Windows Media Player to make my own PC a DLNA server. However I don't know how to cast my music files to DLNA renderer. My DLNA renderer is Yamaha R-N803 which is a DLNA renderer. When I use Windows Media Player, I can select "Cast to device" and select my Yamaha network receiver as the renderer. How can I do the same with AIMP and AIMP DLNA plugin?
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Moshi0 от Марта 31, 2019, 15:59:32
    Hi all,

    I just installed AIMP and AIMP DLNA plugin. I also enabled media streaming on Windows Media Player to make my own PC a DLNA server. However I don't know how to cast my music files to DLNA renderer. My DLNA renderer is Yamaha R-N803 which is a DLNA renderer. When I use Windows Media Player, I can select "Cast to device" and select my Yamaha network receiver as the renderer. How can I do the same with AIMP and AIMP DLNA plugin?

    Sorry for late reply.
    This plugins is not a control point so you cannot control the renderers or servers, it is only a client that can browse content servers for aimp to play from.
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: zehuti от Ноября 15, 2019, 20:14:44
    Sorry for late reply.
    This plugins is not a control point so you cannot control the renders or servers, it is only a client that can browse content servers for aimp to play from.

    is it possible to add this option, so we can cast to\play to dlna avr receivers\amps, like in mediamonkey, or like UPnP MediaRenderer Output plugin for foobar2000?
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Я Гриша! от Февраля 16, 2020, 14:45:17
    Хороший плагин, жалко только в обратную сторону не транслирует, мне наоборот на ТВ нужно было передать.
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Si_Siska от Мая 18, 2020, 06:26:07
    (https://prnt.sc/sipmie)
    4.60 2180

    копировал, вставлял, вычленял, перезапускал, перетаскивал, переустанавливал, перезагружал, перетраха...расстроился....

    эх.жалко windows media player единственный, кто до сих пор работает с DLNA по человечески.
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Adept от Января 21, 2021, 10:19:00
    А почему в плейлисте типа ссылки на радио?
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Artem от Января 21, 2021, 10:24:52
    А почему в плейлисте типа ссылки на радио?

    Потому, что это реально ссылки на DLNA-сервер =)
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Adept от Января 21, 2021, 12:26:11
    Но если я нажимаю на ссылку, то она становится нормальным названием... Ну, просто логично, что если играешь по домашней сети, то ссылки не особо-то и важны...

    И еще такой вопрос. Было бы неплохо реализовать вывод звука на DLNA устройства. На усилитесь, подключенный к сети, например. Ну, так как это сделано во всевозможных dlna плеерах на андроид.
    Название: Re: AIMP DLNA v2.4.0.0 [BETA] [AIMP4.50+]
    Отправлено: Artem от Января 21, 2021, 12:52:05
    Не путайте DLNA Client и DLNA cast - это немного разные вещи
    Название: Re: AIMP DLNA v2.5.0.0 [AIMP4.50+]
    Отправлено: Moshi0 от Октября 30, 2021, 23:07:19
    Released v2.5.0.0
    Название: Re: AIMP DLNA v2.5.0.0 [AIMP4.50+]
    Отправлено: Я Гриша! от Декабря 08, 2021, 00:32:43
    Всем здравия!
    Замечательный плагин! Благодарю разработчика!
    Есть несколько замечаний:
    1) Китайские иероглифы в названиях песен. Только в фонотеке. Если это возможно исправить, то будет здорово!
    2) В плейлисте вместо заголовков которые уже есть в фонотеке, отображаются ссылки в обоих строках. Будет замечательно, если заголовки из фонотеки плагин сможет спарсить в заголовки треков в плейлисте.
    (https://i.imgur.com/MdIuJtQ.png)

    Название: Re: AIMP DLNA v2.5.0.0 [AIMP4.50+]
    Отправлено: bush74 от Февраля 08, 2022, 22:21:18
    Здравствуйте.
    Спасибо за ваш труд.

    BagReport:
    DLNA_Serv_JRiver(sacd.iso)->wav[24/96]->AIMP-5.01.2358(AimpDLNA-2.5.0.0)=>Sound_ok;TrackDuration_fail;TrackPlaybackStopAtNonCorrectDuration;PlaybackNextTrack.
    Название: Re: AIMP DLNA v2.5.0.0 [AIMP4.50+]
    Отправлено: Moshi0 от Февраля 23, 2022, 15:22:52
    Всем здравия!
    Замечательный плагин! Благодарю разработчика!
    Есть несколько замечаний:
    1) Китайские иероглифы в названиях песен. Только в фонотеке. Если это возможно исправить, то будет здорово! (Chinese characters in song titles. Only in the library. If this can be fixed, that would be great!)
    2) В плейлисте вместо заголовков которые уже есть в фонотеке, отображаются ссылки в обоих строках. Будет замечательно, если заголовки из фонотеки плагин сможет спарсить в заголовки треков в плейлисте. (In the playlist, instead of the titles that are already in the library, links are displayed in both lines. It will be great if the plugin can parse the titles from the music library into the titles of the tracks in the playlist.)
    (https://i.imgur.com/MdIuJtQ.png)

    1) Yea, didnt notice that, I should be able to fix it soon
    2) I dont think I can control that, this is just how AIMP works and you just need to play the file for it to populate track information in the playlist

    Здравствуйте.
    Спасибо за ваш труд.

    BagReport:
    DLNA_Serv_JRiver(sacd.iso)->wav[24/96]->AIMP-5.01.2358(AimpDLNA-2.5.0.0)=>Sound_ok;TrackDuration_fail;TrackPlaybackStopAtNonCorrectDuration;PlaybackNextTrack.

    Not sure I understand, but if you mean that the DLNA library shows correct time but the playlist shows incorrect time, then this is AIMP bug and I cant control that.
    Название: Re: AIMP DLNA v2.5.0.1 [AIMP4.50+]
    Отправлено: Moshi0 от Февраля 23, 2022, 18:58:20
    Цитировать
    1) Китайские иероглифы в названиях песен. Только в фонотеке. Если это возможно исправить, то будет здорово! (Chinese characters in song titles. Only in the library. If this can be fixed, that would be great!)

    Should be fixed in v2.5.0.1, attached in main post