yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] gaetanolip:
Hi any response to:

Hi, strange behavior with pause and play command.

I use an Android box with bubbleupnp as renderer and a phone with bubbleupnp as sender.well when I play pause the video pauses fine but after, if I press play the video does not resume but starts from the beginning..

I

Inviato dal mio Lenovo P2a42 utilizzando Tapatalk
[Android Apps and Games] codlord:
How to show Now Playing on multiple devices?

Firstly, let me say I love BubbleUPnP as it allows me to have a single consistent player/controller for music on all my (Android) devices (at home and mobile) to play both local and remote media. I have a licence and when I am at home I usually use Logitech Media Server as my Library and a Squeezebox as my player.

It all works great together but I have one question - if I play something on device A then of course it shows what is playing on that device, but if I open BubbleUPnP on device B, even if I choose the same library/renderer it won't show what is currently playing, so I can't then pause/play/advance the music using device B (without first playing some music via device B).

Is it possible to do what I want with configuration of BubbleUPnP or Logitech Media Server? Or is this just a limitation of BubbleUPnP or the library/renderer?

Thanks
[Android Apps and Games] heresam:
Has to be! The described playback is identical and I'm hopeful Google will fix it soon. Can I be the only BG user to come here for help on this issue? Also is there a logging option in the app? Thanks for pointing me in the right direction. Just knowing that this bug has been experienced by others and reported is good for my health. ;~) Thanks again.
[Android Apps and Games] bubbleguuum:
[MENTION=5403084]heresam[/MENTION]

Yup this issue is specific to some FLACs. The post in the issue tracker above yours is from me. I hope Google will fix it quickly now

that the cause is narrowed down.
[Android Apps and Games] bubbleguuum:
[MENTION=9558728]codlord[/MENTION]

The UPnP AV protocol do not allow to control the same renderer from multiple devices, as each control point will fight separaretly for control.

However, if you promote your Squeezebox renderer as an OpenHome renderer using BubbleUPnP Server, you will be able to do what you describe: control the renderer from multiple devices with the renderer showing the same state and Playlist.
[Android Apps and Games] EPa:
Simple(?) feature request:

In the show metadata window, please include (if present) the fields original year and comment
[Android Apps and Games] Uoppi:
UPDATE 2.0: I think I finally sort of "solved" this by creating a security auditing event trigger in Task Scheduler. When my BubbleUPnP Server PC detects a connection from Android BubbleUPnP, a batch file launches that queries netstat -a where a connection via my router's port 58051 is detected. Simultaneously it changes my PC's power profile to a never-sleeping one. The batch file keeps looping the query until the connection disappears (in other words, I exit Android BubbleUPnP). Then the power profile is set back to the default one that will let the PC sleep after 5 min idle time. For all of this to work, -disablePreventWindowsSleep must be set to true (to prevent power on requests). To be safe, I also set the default power profile to become active at each boot, in case my PC crashes while the batch file is running.

(UPDATE: Suddenly I'm not seeing any power on requests during streaming even when disablePreventWindowsSleep is set to false. The behavior seems erratic and random.)

Is there any way to make BubbleUPnP Server send power on requests on PC only while streaming?

My Windows 10 PC can not go to sleep at all because BubbleUPnP Server is populating powercfg /requests, apparently "forever". The other option is to set -disablePreventWindowsSleep to true, but then BubbleUPnP Server makes no requests whatsoever. There is no middle ground: either my PC doesn't sleep at all ('false') or goes to sleep prematurely during streaming ('true').

Right now it's been close to an an hour since I exited my Android BubbleUPnP renderer (which utilizes BubbleUPnP Server in combination with MinimServer) and the BubbleUPnP entries remain adamantly there in the powercfg /requests list. I can't sleep the PC manually nor does my 5 minutes idle timeout in my power profile help anything.
[Android Apps and Games] Momazo7u7:
[Feature Request Android]

I think that i´m not the only one that wants a broadcast intent od an activity intent to only set the renderer.... like in a floating window, or even in the notification bar
[Android Apps and Games] bubbleguuum:
[MENTION=1622582]EPa[/MENTION]

BubbleUPnP does not read file tags as it is the job of the media server.

This info has to be sent by the media server as part of XML metadata for the track (that it populates from file tags).

The metadata dialog already displays year (upnp:date field) if that info is sent, as well as comment if sent (upnp:description field).

Not many media servers send upnp:description, but MinimServer does.
[Android Apps and Games] bubbleguuum:
[MENTION=9465987]Momazo7u7[/MENTION]

There's already an Intent for that but without UI (so you have to specifify the name of the renderer in an Intent extra).

For details, see end of Settings > About/Help > Tips
[Android Apps and Games] bubbleguuum:
[MENTION=5110543]Uoppi[/MENTION]

Normally, BubbleUPnP prevents sleeping only for the duration of streaming a media (which includes pausing). It should never prevent sleeping forever unless there's a bug somewhere in sleeping enable/disable code (that is: sleeping is enabled with a disable never kicking in). If there is such bug, that could explain why it is erratic.
[Android Apps and Games] EPa:
I am using minimserver but I don't see the comments. Do I need to change some setting like have it index comments too?

Also I was talking about the tag of original year (not just year which is already displayed fine). For example, Vorbis tag codes for original year and album are ORIGYEAR and ORIGALBUM (used in case of compilations, rereleases, and such).

Ok I guess it's a whole different thing than what you are already doing (parsing upnp:description), I was thinking parsing the actual file tags only for the case of a currently playing file of course. I can see its a lot of work just for displaying some extra tags. Thanks anyway.
[Android Apps and Games] Uoppi:
[MENTION=3373153]bubbleguuum[/MENTION]

EDIT: I'm probably spending way too much time and energy on this, but right now I've scripted a permanent 30 sec query loop ('netstat -an') for the local MinimServer TCP port that BubbleUPnP always maintains an established connection with while streaming. The existence or non-existence of this connection then triggers two different PC power profiles, a sleeping one and a non-sleeping one. disablePreventWindowsSleep is set to false to prevent any power on requests in the meantime. So far so (very) good. It appears a way more robust solution than relying on whatever Windows decides to do (or not to do) with sleep - looking back at my ancient posts in this very thread, it appears I've been having all sorts of sleeping troubles as far back as 2011, lol...

Original post::

Do you mean a bug in Windows 10 sleep management or in BubbleUPnP Server's code? Isn't BubbleUPnP Server responsible for sending and cancelling the power on requests? The requests seem to happen very erratically. Sometimes they are stuck even when not streaming, sometimes they don't appear at all despite streaming (even with -disablePreventWindowsSleep set to false). I have no idea if using MinimServer in combination with BubbleUPnP Server has something to do with it.

I'd really need to get this working because I don't want to keep my PC powered constantly.
[Android Apps and Games] Momazo7u7:
[Feature Request] new "GET_RENDERERS" intent for android

Ok so that´s something that i already knew, but, ¡how i´m supposed to get the renderer name ?, if the person (or external application) that is using BubbleUPnP wants some integration with the app , i think that it should be an option to get the avaliable render names.

The feature request then... changes.

How about using the "setResult" method to return a simple array list with all available devices using an android Intent launched with "startActivityForResult"? ... Then the third party application can manage to show some UI to let the user choose, and use the "SET_RENDERER" intent to change according to the selection. But the important part is that the "com.bubblesoft.android.bubbleupnp.GET_RENDERERS" intent should return the list of available devices .

Some helpful links

https://developer.android.com/training/basics/intents/filters?hl=en

https://stackoverflow.com/questions...-an-activity-of-another-app-to-get-its-result

---------- Post added at 06:57 PM ---------- Previous post was at 06:15 PM ----------

It seems like another way to acomplish this is via the "sendbroadcast" method. With this the user just needs to register a broadcast receiver and get the devices available.

https://developer.android.com/guide/components/broadcasts

https://stackoverflow.com/questions/33492790/how-to-send-broadcast-from-one-app-to-another-app

[NOTE: i would just edit my comment but for some reason i can´t]
[Android Apps and Games] norfi1983:
Is there a better way!!

Could someone let me know if there is a better way of playing music throughout my house.

I have a Synology DS218 which servers up my music to various chromecasts around the house. I like the idea of Sonos but have spent to much money on various audio systems over the years to even contemplate getting rid of them. They sound way better than a sonos too!!

My nas runs various media servers and bubbleupnp so that I can create chromecast openhome renderers. I run everything throught the Android bubbleupnp app. The problem I have is that the system runs super slow compared to how I used to play music, through my mac! Especially if I play to one of the openhome renderers. If I play to a 'normal' chromecast it runs super quick but only my phone can control it. This is something I am keen to avoid. I'd like to control the music through several control points if possible.

Both my wife and I use the NAS and all our music is on there. We have a number of playlists, but ultimately only really use two. One in her name and one in my name. As a result our playlists are in the region of 4000 songs each.

My understanding is when I select my playlist to play on a chromecast openrenderer it sends the whole playlist. As a result this takes in the region of 5 minutes or more to log before a single song is played and often crashes! When it works it is however great!!

Is there a setting that will only load say 100 songs at a time and that when those 50 are played the app serves the openrender another 50 songs from the playlist, be it in order or shuffled if requested.

I hope this makes sense and i appreciate the problem might be due to how we like to play our music. We've never been one's to pick songs.... we'd rather just put our playlists on shuffle!

If this isnt an option does anyone know of a music application that runs alone on the NAS with app that I can control as a remote from my phone and my wifes phone?? Essenital like iTunes and then iTunes remote app, which we can both control from our phones or whatever else is to hand at the time. The standalone app on the NAS would control everything and I believe this would get rid of the need to have an openhome renderer in my house!!

Sorry if this is in the wrong place. I have searched several forums and can't seem to find or at least understand an answer!

Thanks
[Android Apps and Games] bubbleguuum:
[MENTION=1622582]EPa[/MENTION]

With UPnP, there is only one date transmitted, with upnp:date. With MinimServer you could either map the year tag you prefer to upnp:date (see its documentation or ask on its forum), but there no ability to transmit 2 dates.

I'm unsure if MinimServer transmits upnp:description (mapped to COMMENT tag) by default and it probably must be configured. Again you can look at docs and ask on forum if necessary.
[Android Apps and Games] bubbleguuum:
[MENTION=5264618]norfi1983[/MENTION]

There is a known performance issue with large Playlist (Playlist tab in BubbleUPnP) for OpenHome renderers managed by BubbleUPnP Server. The performance issue is located in BubbleUPnP Server when adding a large number of tracks to the Playlist and it gets exponentially slower adding tracks as the Playlist is larger. So I suggest to limit the number of tracks to something low, like 100 or 200 tracks maximum, until I look at it and fix it.
[Android Apps and Games] norfi1983:
Is there a way to just pull 200 tracks from a playlist at a time and then pull more as and when required to save me having to create loads of mini playlists!
[Android Apps and Games] bubbleguuum:
[MENTION=9465987]Momazo7u7[/MENTION]

Would a new broadcast Intent that just displays the renderer chooser in BubbleUPnP (as in tapping the cast button in the now playing screen) would do it for you ? Which is not incompatible with a new Intent for retriving the list anyway.
[Android Apps and Games] bubbleguuum:
[MENTION=5110543]Uoppi[/MENTION]

Not in Windows 10 but in BubbleUPnP Server possibly entering sleep mode and never leaving it when it should. I need to audit the code to check if this could happen, possibly only on some particular setups. Speaking of which, can you describe again exactly your setup (renderer, library, how BubbleUPnP Server is used, list of renderers and media servers on your network even if unused) so I can try to replicate it and try to reprod the problem.
[Android Apps and Games] bubbleguuum:
No but I think performance should be Ok up to 600-800 tracks. It starts to really degrade after 1000.

I really need to fix that performance bug anyway.
[Android Apps and Games] ruggrawk:
Mp4 thumbnail issue

First of all, BubbleUPnP continues to amaze me with all of its capabilities.

When I use the mobile version to access my Google Photos account, most videos have a blank/black thumbnail associated with them. However, the following video has an image as its thumbnail: https://photos.app.goo.gl/TrUpX46uSF6FWPfF9

How can I get all of my video files to have a specific thumbnail? I've tried to edit metadata to no avail.

Thanks in advance,

Kevin
[Android Apps and Games] bubbleguuum:
[MENTION=5403084]heresam[/MENTION]

Seems to be have been fixed in beta firmware 1.36.140318.

You need to subscribe to preview firmware in the Google Home app to get this firmware.

You can also check the version there.
[Android Apps and Games] Momazo7u7:
Yeah that would do the trick, and it´s even better than my solution. c:
[Android Apps and Games] Uoppi:
[MENTION=78185463]bubbleguum[/MENTION]

My setup: BubbleUPnP Android on Galaxy S9+, UAPP as renderer (mostly), BubbleUPnP Server + MinimServer on a 64-bit Win10 HTPC that streams from a NAS. No other servers are used. Please let me know if you need some other info, I'd be glad to help.

I've currently set a powercfg /requestsoverride for the BubbleUPnP Server service because power-on requests can happen even when disablePreventWindowsSleep is set to true. From what I understand, preventing Windows sleep in BubbleUPnP has to do with power on requests, right?

Here's my final hack that I did - it's not beautiful but maybe someone else is struggling with similar stuff:

1. I use MinimServer's logging activity as a signal that streaming is happening

- OhNet logging is set to 'none' (because it happens even when not streaming) and logging level to 'trace' (because it seems to stop as soon as streaming stops)

2. I made BubbleUPnP's urlcache.dat read-only, so that BubbleUPnP Server can't "bypass" MinimServer by writing and reading from the cache (which in turn would stop MinimServer's log after a few minutes). The downside of this seems to be that resuming playback from a playlist doesn't always work in BubbleUPnP (I suppose BubbleUPnP Server is expecting to find the stream url in the urlcache?)

3. Then, via a constantly looping batch file, I compare minimserver.log's file size changes as an indication of ongoing streaming:

- If file size has changed within a time frame of a few minutes, streaming is likely going on and my PC switches to a never-sleeping profile

- If file size does NOT change within a few minutes, streaming has stopped and my PC switches to a sleeping-after-a-few-minutes profile (if I then resume streaming, the power profile again changes accordingly because it's looping)

This is a hack, yes, but works for me more reliably than anything ever. I'm just worried because it's a looping (albeit hidden) exe-packed cmd that might crash whenever. As a precaution I've set a 2 hour timeout even to the "never-sleeping" profile. To be safe, the sleeping power profile is loaded by default at every startup. At each shutdown, Minimiserver.log also gets deleted because it can grow huge in size with trace-level logging.

Windows' power management can be a headache. For example, the interpretation of "idle" in Task Scheduler differs from one Windows version to the next. And at one point, I had trouble preventing Windows 10 from waking up after sleep. :/
[Android Apps and Games] bigcid10:
what I did was ,instead of making a playlist(s) and sending the whole thing

I made folders with like music and just told bubbleUPnP to play the folder instead of

the playlist
[Android Apps and Games] heresam:
The issue tracker email alerted me and imagine this, I was coming here to tell you about my joy and success. The beta did need a warm boot after joining up to get it installed and a cold boot to get it working. Thanks for all your generous and tireless support. ;~)
[Android Apps and Games] norfi1983:
You'll have to forgive me but I don't see how that would make a difference and surely I would need to have two sets of each song on my Nas. One for my wife collection and one for mine.
[Android Apps and Games] bigcid10:
If you listen to the same music ,yes

but what it does do is break up the music into smaller groups so that Bubble doesn't take as long to load

besides ,your not making copies of the music ,your just linking to the folders anyway
[Android Apps and Games] codlord:
I did this and it works perfectly, thanks! :good:

For anyone else who may be interested and finds this thread it was as easy as this (on Ubuntu 18.10):

sudo apt install default-jdk

sudo add-apt-repository ppa:bubbleguuum/bubbleupnpserver

sudo apt-get update

sudo apt-get install bubbleupnpserver

Go to localhost:58050 and on the "Media Renderers" tab check "Create an OpenHome renderer".

Then simply use the OpenHome renderer instead of the Sqeezebox Renderer.
[Android Apps and Games] norfi1983:
I tried your suggestion of playing a folder instead but there was still the same lag while it loads sends the music.
[Android Apps and Games] bubbleguuum:
[MENTION=5110543]Uoppi[/MENTION]

- if disablePreventWindowsSleep is set to true, it is not possible that BubbleUPnP Server emit power saving requests. I double checked the code and it is simply not possible. However, is it possible is that you have set it to true but not restarted BubbleUPnP Server to make the change effective ?

- can you clarify how you use MinimServer in conjunction with BubbleUPnP Server: do you use BubbleUPnP Server to make a LAN proxy of MinimServer (if so for which reason) or that you access MinimServer from outside your LAN using Android BubbleUPnP ?
[Android Apps and Games] Uoppi:
[MENTION=78185463]bubbleguum[/MENTION]

Would it be feasible to implement a "fix" to solve the below situation in BubbleUPnP Server's code?

Setup: HTPC with BubbleUPnP Server (+ MinimServer as library) streaming from local NAS to Android BubbleUPnP

Scenario:

1. Reboot PC

2. Start Android BubbleUPnP

3. From playlist (or from "Recently played" view) try to play a file whose url is not presently stored in BubbleUPnP Server's urlcache.dat

4. Observe failed playback

5. In playlist (or "Recently played" view), tap "Show metadata" and observe the urls present

6. Again in playlist (or "Recently played"), tap "Show album" (at this point MinimServer's trace log "starts to roll", showing that MinimServer was queried)

8. Now in the Album view, tap "Show metadata" of the same file and observe identical urls as in step 5 Correction: Oops, on closer look the urls seem to have the "minimserver" in the url so they are not identical, even though pointing to the same location on the NAS

9. Go back to playlist and retry playback --> voilá, playback succeeds this time

In other words, when playback fails as in step 3, could BubbleUPnP after the failed playback try to query the library (MinimServer) as a second attempt? I'm aware in urlcache.dat the addresses contain the */minimserver/* part. If the urls are correct in the playlist, I would assume it's not impossible to "make them playable"?
[Android Apps and Games] bubbleguuum:
[MENTION=407642]gaetanolip[/MENTION]

In that scenario, unpausing is only supported if MX Player is used as the video app on the BUbbleUPnP renderer device.

I know it can be supported with VLC, but I need to add support for it, in the next update.
[Android Apps and Games] Uoppi:
[MENTION=578203301]bubbleguum[/MENTION]

It appears we posted near-simultaneously, please see my above post on a related issue... Anyway:

EDIT: I just now tried setting disablePreventWindowsSleep to both true and false, restarting BubbleUPnP Server service in between, and with neither option does powercfg /requests show anything when streaming with the setup explained at the end of this post. And as mentioned, sometimes the requests do appear and get stuck. I have not found a logic to this.

Original answer: This might explain it, yes. I did restart the computer several times when testing but maybe not specifically after the change. Be it as it may, bypassing any power on requests is doable, but the persisting requests even after playback has stopped pose a problem for sleep management.

I have not setup a proxy. I use MinimServer as the library. BubbleUPnP Server is used mainly to enable mobile playback with Android BubbleUPnP. I don't know if the problem with power management has to do with the fact that sometimes BubbleUPnP Server needs to query MinimServer, while sometimes it can just play from its own cache? I don't know, just a thought.
[Android Apps and Games] bubbleguuum:
Not possible currently but I'll add support for gapless playback to the local renderer in Jelly Bean as JB makes this possible.
[Android Apps and Games] bubbleguuum:
Yes, for audio only with foobar2000. See here for details.
[Android Apps and Games] bubbleguuum:
I could reproduce this.

It turns out it is due to XBMC. XBMC will accept to play a stream URL only if the associated music or video item has been previously browsed by a Control Point.

That means that when you restart XBMC, the list of URLs it will accept to play is resetted and any subsequent attempts by BubbleUPnP will fail with an error 404. Going into the Library and reloading (Menu > Reload) the folder containing the item that is not playing will fix the problem.

It is probably possible to workaround this in BubbleUPnP, although no promise because it is a rare edge cases (most servers do not do this).

In any case, thanks for reporting
[Android Apps and Games] herve2163:
Hi,

First thank you very much for your prompt answer, I did not expect to get something the same day !

I have an all in one device (Router, Switch (1Gbits), Wifi) from TPLINK TL WR2843ND and of course firewall is enabled but for external incoming connection. On the NAS, I checked all the parameters page, found nothing which could lock the connection. On the Iconia, I even didnt know that it can run a firewall .. with routed devices, you mean the ICONIA ?

Thank you.

Herve
[Android Apps and Games] dugokontov:
I would also like to see this feature - stream subtitles to DLNA enabled TV. Please add it in some of next versions (: