home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Gapless playback for UPnP Renderer (and other improvements)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Marcus Venturi" data-source="post: 1133816" data-attributes="member: 121570"><p>I'm working since 2 years on a UPnP Controller for ANDROID, which should be very simple to use.</p><p></p><p>As MediaPortal user my first goal is to have perfect playback together with the MediaPortal UPnP Renderer plugin developed from [USER=102207]@hierl_w[/USER].</p><p></p><p><a href="https://forum.team-mediaportal.com/threads/working-on-new-mp-upnp-renderer-process-plugin.104959/#post835560" target="_blank"><u><span style="color: rgb(0, 102, 204)">https://forum.team-mediaportal.com/threads/working-on-new-mp-upnp-renderer-process-plugin.104959/#post835560</span></u></a></p><p></p><p>As the UPnP Renderer does not support gapless playback or crossfade so far, I started to implement this.</p><p>For this purpose I took the source code provided by [USER=91197]@Dragy[/USER] in the forum.</p><p></p><p>I modified my ANDROID client, the UPnP Renderer and a few things in the BASS engine. (I implemented the SetNextAVTransportURI action in my client as well as in the UPnP Renderer).</p><p></p><p>Everything works but not 100% perfect, because there are still small gaps (hickup) between the tracks.</p><p></p><p>This is where I need the help of the other developers.</p><p>I think of [USER=10391]@hwahrmann[/USER] or any other dev that has worked on the BASS engine and has knowledge of this.</p><p></p><p>My changes are here:</p><p></p><p><a href="https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES" target="_blank"><u><span style="color: rgb(0, 102, 204)">https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES</span></u></a></p><p></p><p>This branch contains all fixes I made to improve the UPnP renderer playback. They are not only BASS related.</p><p></p><p>As there is no repository for the latest MP_UPnPRenderer changes, I attached my modified version of the plugin. I could also provide the code.</p><p></p><p>I added support for generating a fixed Unique Device Name. This can help if there are more than one MediaPortal instances running on the same network:</p><p></p><p>[ATTACH=full]164028[/ATTACH]</p><p></p><p>And of course the support for gapless playback:</p><p></p><p>[ATTACH=full]164035[/ATTACH]</p><p></p><p>To have a contoller for testing / debugging gapless playback, I attached an APK of my client.</p><p>It can be manually installed on ANDROID. It is necessary to enable installation of apps from other sources than the Play Store. The app itself can be installed with Apk Installer.</p><p></p><p><a href="https://play.google.com/store/apps/details?id=com.graphilos.apkinst&hl=de" target="_blank"><u><span style="color: rgb(0, 102, 204)">https://play.google.com/store/apps/details?id=com.graphilos.apkinst&hl=de</span></u></a></p><p></p><p>After starting the app you see this:</p><p></p><p>[ATTACH=full]164030[/ATTACH]</p><p></p><p>Just tap on the gear on the left bottom, then you can select Server and Renderer:</p><p></p><p>[ATTACH=full]164031[/ATTACH]</p><p></p><p>Close the dialog with (X) and tap on the "Power On" symbol.that should appear if Server and Renderer are selected and available.</p><p></p><p>[ATTACH=full]164032[/ATTACH]</p><p></p><p>Then browse to a music album for testing:</p><p></p><p>[ATTACH=full]164033[/ATTACH]</p><p></p><p>Tap on a song to start playing.</p><p></p><p>There is a control panel for playback. Just tap on the arrow-down symbol in the top right corner:</p><p></p><p>[ATTACH=full]164034[/ATTACH]</p><p></p><p>Now you can test gapless playback.</p><p></p><p>My goal is to find out the reason for the remaining hickup(s).</p><p></p><p>A big THANK YOU goes to [USER=102207]@hierl_w[/USER], [USER=91197]@Dragy[/USER] and all the others that kept this plugin alive <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> Let's hope somebody can help me...</p><p></p><p><span style="color: rgb(255, 77, 77)">ATTENTION: As mentioned above, you have to build your own version of MediaPortal with this branch included:</span></p><p></p><p><a href="https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES" target="_blank"><u>https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES</u></a></p><p></p><p><span style="color: rgb(255, 0, 0)">Otherwise it won't work!!!</span></p><p><span style="color: rgb(255, 0, 0)"></span></p><p><span style="color: rgb(255, 0, 0)">UPDATE: Added new APK with bug fix</span></p></blockquote><p></p>
[QUOTE="Marcus Venturi, post: 1133816, member: 121570"] I'm working since 2 years on a UPnP Controller for ANDROID, which should be very simple to use. As MediaPortal user my first goal is to have perfect playback together with the MediaPortal UPnP Renderer plugin developed from [USER=102207]@hierl_w[/USER]. [URL='https://forum.team-mediaportal.com/threads/working-on-new-mp-upnp-renderer-process-plugin.104959/#post835560'][U][COLOR=rgb(0, 102, 204)]https://forum.team-mediaportal.com/threads/working-on-new-mp-upnp-renderer-process-plugin.104959/#post835560[/COLOR][/U][/URL] As the UPnP Renderer does not support gapless playback or crossfade so far, I started to implement this. For this purpose I took the source code provided by [USER=91197]@Dragy[/USER] in the forum. I modified my ANDROID client, the UPnP Renderer and a few things in the BASS engine. (I implemented the SetNextAVTransportURI action in my client as well as in the UPnP Renderer). Everything works but not 100% perfect, because there are still small gaps (hickup) between the tracks. This is where I need the help of the other developers. I think of [USER=10391]@hwahrmann[/USER] or any other dev that has worked on the BASS engine and has knowledge of this. My changes are here: [URL='https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES'][U][COLOR=rgb(0, 102, 204)]https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES[/COLOR][/U][/URL] This branch contains all fixes I made to improve the UPnP renderer playback. They are not only BASS related. As there is no repository for the latest MP_UPnPRenderer changes, I attached my modified version of the plugin. I could also provide the code. I added support for generating a fixed Unique Device Name. This can help if there are more than one MediaPortal instances running on the same network: [ATTACH=full]164028[/ATTACH] And of course the support for gapless playback: [ATTACH=full]164035[/ATTACH] To have a contoller for testing / debugging gapless playback, I attached an APK of my client. It can be manually installed on ANDROID. It is necessary to enable installation of apps from other sources than the Play Store. The app itself can be installed with Apk Installer. [URL='https://play.google.com/store/apps/details?id=com.graphilos.apkinst&hl=de'][U][COLOR=rgb(0, 102, 204)]https://play.google.com/store/apps/details?id=com.graphilos.apkinst&hl=de[/COLOR][/U][/URL] After starting the app you see this: [ATTACH=full]164030[/ATTACH] Just tap on the gear on the left bottom, then you can select Server and Renderer: [ATTACH=full]164031[/ATTACH] Close the dialog with (X) and tap on the "Power On" symbol.that should appear if Server and Renderer are selected and available. [ATTACH=full]164032[/ATTACH] Then browse to a music album for testing: [ATTACH=full]164033[/ATTACH] Tap on a song to start playing. There is a control panel for playback. Just tap on the arrow-down symbol in the top right corner: [ATTACH=full]164034[/ATTACH] Now you can test gapless playback. My goal is to find out the reason for the remaining hickup(s). A big THANK YOU goes to [USER=102207]@hierl_w[/USER], [USER=91197]@Dragy[/USER] and all the others that kept this plugin alive :) :) Let's hope somebody can help me... [COLOR=rgb(255, 77, 77)]ATTENTION: As mentioned above, you have to build your own version of MediaPortal with this branch included:[/COLOR] [URL='https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES'][U]https://github.com/MediaPortal/MediaPortal-1/compare/master...UnlimitedStack:EXP_UPNP_RENDERER_FIXES[/U][/URL] [COLOR=rgb(255, 0, 0)]Otherwise it won't work!!! UPDATE: Added new APK with bug fix[/COLOR] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Gapless playback for UPnP Renderer (and other improvements)
Contact us
RSS
Top
Bottom