Jump to content


Photo

Automatic volume adjustment


  • Please log in to reply
44 replies to this topic

Re: Automatic volume adjustment #41 doglover

  • Rytec EPG Team
  • 17,255 posts

+646
Excellent

Posted 15 August 2024 - 07:30

Entries in the volume conf file:

sS'1:0:1:5221:C99:3:EB0000:0:0:0:'
p7
I40
sS'5002:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_fm/mp3:Joe'
p8
I15
sS'5002:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/willy_be/aac:Willy Music Matters'
p9
I20
sS'5002:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_gold/aac:Joe Gold'
p10
I15
sS"4097:0:2:A3:0:1:CCCC:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWAF80.mp3:Play Nostalgie 80's%09 "
p11
I5
sS'4097:0:2:A1:0:1:CCCC:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWHATAFEELINGAAC.aac:Play Nostalgie%09 '
p12
I25

 


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #42 mrvica

  • Senior Member
  • 1,253 posts

+86
Good

Posted 15 August 2024 - 09:12

Works on both the Hisilicon player and gstreamer.

 

Great work.  Although I do not know what the difference is between this and the previous version.

the diff

--- AutomaticVolumeAdjustment.py	Tue Aug 13 18:42:42 2024
+++ AutomaticVolumeAdjustment_new.py	Wed Aug 14 07:16:18 2024
@@ -88,13 +88,15 @@
 				ref = self.newService[1]
 				if ref and ref.valid():
 					self.serviceList[ref.toString()] = self.volctrl.getVolume()
-					print("[AutomaticVolumeAdjustment] end", ref.toString(), self.serviceList)
+					print("[AutomaticVolumeAdjustment] save last value", ref.toString(), self.serviceList)
 		self.newService = [False, None]
 
 	def __evStart(self):
 		self.newService = [True, None]
-		if self.session.nav.getCurrentlyPlayingServiceReference():
-			self.__evUpdatedInfo()
+		if self.pluginStarted and self.enabled and config.misc.toggle_AV_session.value:
+			ref = self.session.nav.getCurrentlyPlayingServiceReference()
+			if ref and ref.toString().startswith("4097:"):
+				self.__evUpdatedInfo()
 
 	def __evUpdatedInfo(self):
 		if self.newService[0] and self.session.nav.getCurrentlyPlayingServiceReference() and self.enabled and config.misc.toggle_AV_session.value:

 I was using AutomaticVolumeAdjustment on my previous mipsel box, I am glad my H7 has auto volume in hardware

by the way, do we need 4097, 5001, 5002 references at all, we could strip them

ref = self.session.nav.getCurrentlyPlayingServiceReference().toString()
ref = ref.split(':')[10]



Re: Automatic volume adjustment #43 doglover

  • Rytec EPG Team
  • 17,255 posts

+646
Excellent

Posted 15 August 2024 - 15:02

1, 4097, 5001, 5002 determine the type of stream. And the player used.

 

I do not think they matter for setting the volume automatic.
F.i. for epgimport we ignore this value, and check only the remainder of the service ref.


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #44 mrvica

  • Senior Member
  • 1,253 posts

+86
Good

Posted 15 August 2024 - 15:56

​this strips 4097, 5001, 5002 and keeps the reminder

ref = ref.split(':')[1]



Re: Automatic volume adjustment #45 Dimitrij

  • PLi® Core member
  • 10,184 posts

+346
Excellent

Posted 16 August 2024 - 12:10

[automaticvolumeadjustment] force update event info


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users