DLNA Media Controller plugin - Common library for UPnP AV

I just checked your AVTransport service file and Pause action is present. I did the check because Pause is optional in the DLNA standard.

If you noticed an error with Device Spy, that could be a bug in the BR player. What was the error message in Device Spy ?

I just checked your AVTransport service file and Pause action is present. I did the check because Pause is optional in the DLNA standard.

If you noticed an error with Device Spy, that could be a bug in the BR player. What was the error message in Device Spy ?[/quote]

“Invocation Error Code 705: Action Pause failed”

I suspect that it’s just limitations of the UPNP implementation on the player.

[quote=“flaquito, post:482, topic:177228”]“Invocation Error Code 705: Action Pause failed”

I suspect that it’s just limitations of the UPNP implementation on the player.[/quote]

705 in normally for “Transport is locked”.

The transport is ?hold locked?. (Some portable mobile devices have a small mechanical toggle switch called a ?hold lock switch?. While this switch is ON, i.e., the transport is hold locked, the device is guarded against operations such as accidental power on when not in use, or interruption of play or record from accidental pressing of a front panel button or a GUI button.)

[quote=“lolodomo, post:473, topic:177228”][quote=“empenoso, post:471, topic:177228”]Thanks for your answer, lolodomo!
Code makes the value of the volume is always 30 points, and does not change to that number 2 or 60.

luup.call_action("urn:upnp-org:serviceId:RenderingControl", "SetVolume", {Volume = "2"}, 56) --XBMC OpenELEC luup.call_action("urn:upnp-org:serviceId:RenderingControl", "SetVolume", {Volume="60"}, 58) -- LG TV
What could be wrong?
Quotes “” do not change the situation.[/quote]

No idea.
Do you have errors in logs (enable temporally the debug logs first) ?[/quote]

Run scene, which sets the sound to “1”. Sets the value of “30”. How can I change it? How to change the “Master”?
Thank you, lolodomo!

Scene 56:

luup.call_action("urn:upnp-org:serviceId:RenderingControl", "SetVolume", {Volume = 1}, 56)

Log file:

08      07/02/14 17:10:16.721   Scene::RunScene running 56 Будильник - понижение громкости с утра <0x2e5e7680>
08      07/02/14 17:10:16.722   JobHandler_LuaUPnP::HandleActionRequest device: 56 service: urn:upnp-org:serviceId:RenderingControl action: SetVolume <0x2e5e7680>
08      07/02/14 17:10:16.722   JobHandler_LuaUPnP::HandleActionRequest argument Volume=1 <0x2e5e7680>
08      07/02/14 17:10:16.810   JobHandler_LuaUPnP::HandleActionRequest device: 56 service: urn:dlna-org:serviceId:DLNAMediaController1 action: NotifyRenderingChange <0x2e9e7680>
08      07/02/14 17:10:16.810   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=56 <0x2e9e7680>
08      07/02/14 17:10:16.810   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:dlna-org:serviceId:DLNAMediaController1 <0x2e9e7680>
08      07/02/14 17:10:16.811   JobHandler_LuaUPnP::HandleActionRequest argument action=NotifyRenderingChange <0x2e9e7680>
08      07/02/14 17:10:16.811   JobHandler_LuaUPnP::HandleActionRequest argument LastChange=<Event xmlns="urn:schemas-upnp-org:metadata-1-0/RCS/"><InstanceID val="0"><Volume Channel="Master" val="30"/><VolumeDB Channel="Master" val="4454"/></InstanceID></Event> <0x2e9e7680>
08      07/02/14 17:10:16.811   JobHandler_LuaUPnP::HandleActionRequest argument sid=uuid:e3055a69-b95b-6c60-b599-2fb83de36834 <0x2e9e7680>
06      07/02/14 17:10:16.814   Device_Variable::m_szValue_set device: 56 service: urn:upnp-org:serviceId:RenderingControl variable: Volume was: 92 now: 30 #hooks: 0 upnp: 0 v:0x9fbb18/NONE duplicate:0 <0x2aeb3000>
06      07/02/14 17:10:16.815   Device_Variable::m_szValue_set device: 56 service: urn:micasaverde-com:serviceId:HaDevice1 variable: LastUpdate was: 1404299416 now: 1404299416 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2aeb3000>
04      07/02/14 17:10:16.816   <Job ID="4989" Name="" Device="56" Created="2014-07-02 17:10:16" Started="2014-07-02 17:10:16" Completed="2014-07-02 17:10:16" Duration="0.4234000" Runtime="0.2818000" Status="Successful" LastNote=""/> <0x2aeb3000>
08      07/02/14 17:10:17.054   JobHandler_LuaUPnP::HandleActionRequest device: 56 service: urn:dlna-org:serviceId:DLNAMediaController1 action: NotifyAVTransportChange <0x2ee2a680>
08      07/02/14 17:10:17.054   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=56 <0x2ee2a680>
08      07/02/14 17:10:17.054   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:dlna-org:serviceId:DLNAMediaController1 <0x2ee2a680>
08      07/02/14 17:10:17.055   JobHandler_LuaUPnP::HandleActionRequest argument action=NotifyAVTransportChange <0x2ee2a680>
08      07/02/14 17:10:17.055   JobHandler_LuaUPnP::HandleActionRequest argument LastChange=<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><CurrentTrackDuration val="00:21:44"/><CurrentMediaDuration val="00:21:44"/></InstanceID></Event> <0x2ee2a680>
08      07/02/14 17:10:17.055   JobHandler_LuaUPnP::HandleActionRequest argument sid=uuid:5adad173-c9a2-1c1f-86cc-9ae87f99fd04 <0x2ee2a680>
06      07/02/14 17:10:17.059   Device_Variable::m_szValue_set device: 56 service: urn:upnp-org:serviceId:AVTransport variable: CurrentTrackDuration was: 00:21:43 now: 00:21:44 #hooks: 0 upnp: 0 v:0x8d8278/NONE duplicate:0 <0x2aeb3000>
06      07/02/14 17:10:17.060   Device_Variable::m_szValue_set device: 56 service: urn:upnp-org:serviceId:AVTransport variable: CurrentMediaDuration was: 00:21:43 now: 00:21:44 #hooks: 0 upnp: 0 v:0x8b05c8/NONE duplicate:0 <0x2aeb3000>
06      07/02/14 17:10:17.078   Device_Variable::m_szValue_set device: 56 service: urn:upnp-org:serviceId:AVTransport variable: RelativeTimePosition was: 00:21:37 now: 00:21:38 #hooks: 0 upnp: 0 v:0x9a2a60/NONE duplicate:0 <0x2aeb3000>
06      07/02/14 17:10:17.079   Device_Variable::m_szValue_set device: 56 service: urn:micasaverde-com:serviceId:HaDevice1 variable: LastUpdate was: 1404299416 now: 1404299417 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2aeb3000>

The parameter name is not “Volume” but “DesiredVolume”.
30 is the default value used when this parameter is not set.

luup.call_action("urn:upnp-org:serviceId:RenderingControl", "SetVolume", {DesiredVolume="50"}, 56)

please, help, how to add link to plugin and start playing it.
this code does not work.
PluginVersion 0.8

[quote=“lolodomo, post:408, topic:177228”][quote=“macfly92, post:407, topic:177228”]Based on the script I used to load Webradio, I try this code :

local descriptionURL =  luup.variable_get("urn:dlna-org:serviceId:DLNAMediaController1", "DescriptionURL", 44)
local lul_arguments = {}
lul_arguments["URL"] = descriptionURL
luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "SelectDMRDevice", lul_arguments, 44)
local lul_arguments = {}
lul_arguments["DescriptionURL"] = "http://192.168.0.100:8895/deviceDescription/26f23a08-b29c-32cb-9e8e-478dc9a82680"
lul_arguments["ObjectID"] = "A_OF"
luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "BrowseDMS", lul_arguments, 44)
local lul_arguments = {}
lul_arguments["ObjectID"] = "A_OF^FOL_$OI1000000040001408"
lul_arguments["Protocol"] = "http-get:*:audio/mpeg:DLNA.ORG_PN=MP3"
luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "PlayDMSMedia", lul_arguments, 44)

… Without the end of the protocol info, but it is not enough, the plugin skip the protocol matching …[/quote]

Yes, normal.

Note that in the next version, you will be able to do that thing with a unique call to PlayDMSMedia. I have added a DescriptionURL parameter for that.

But for the test I would like to do, it requires a temporary patch in the code. I will give you or even provide the file.[/quote]

well, figured out it

luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "Play", {URI="http://radio.sunradio.ru/childtales64?25", Protocol="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3", Volume=10, Duration=20 }, 20)
luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "Play", {URI="http://radio.sunradio.ru/childtales64?25", Protocol="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3", Volume=10 }, 20)

Message for macfly92 (and others): I discovered that your routing workaround to have UPnP discoveriy working in the Vera is now not more required. Maybe the problem was relative to our ADSL router. During this time, I have updated the firmware of my router. Are you using a Freebox Revolution as router ?

First of all, I am very new to this. I did spend a lot of time reading but on the forum but it doesn’t appear many people have an issue with TTS working. I have a Vera2 with UI5 with DLNA 1.2, I can’t seem to get the TTS to work with my Yamaha RXV-675 receiver. In fact I have noticed I can’t get Google translate to work if I use google.com (although the url’s I have been trying may be old), but if I go to translate.google.ca (I am located in Canada) then it appears to work. Does google expect the user to use the appropriate regional google site for this type of service, and if so, is there a need to change this somewhere in the DLNAtts.lua file?

I would be surprised that is the reason of your problem, but I explained how to change the Google URL for the Sonos plugin. You can try exactly the same change in the DLNA plugin. File name is L_DLNATTS.lua at line 54.
http://forum.micasaverde.com/index.php/topic,27542.msg198076.html#msg198076

Hi lolodomo,

you are right, I don’t think that is the issue, as I was able to use the address from line 54 in my browser with an appropriate string and language set and it worked fine. What I see from my media renderer (Yamaha RVX675) is it switches the output to the server and shows Google TTS on the screen, but then the message “Access Error” comes up at the buttom, It then proceeds to show Mute Off and then resume what it was doing. Any idea why I would get the access error?

When I use the DLNA DNC player to select MP3’s it has no problem playing them, so I am trying to understand the differentiation between what the Google call does vs what the standard MP3 from some server is.

http://forum.micasaverde.com/index.php/topic,24890.msg182362.html#msg182362
The general things to check.

It may be the low bitrate used by Google too ?
You could try to save the MP3 file in your server and then try to play it through the server. If it work that way, we could investigate more.

Hi lolodomo,

Thanks so much for sending this link. It turned out to be #4. My Vera was secured on the local network. After turning off the security for that, and a hard reset, TTS now works properly. Thanks again for the support.

That is the most frequent error. I should add something in the wiki.

Volumio is using upmpdcli to expose the player as a UPnP renderer and is also compatible with OpenHome Media.
Making the DLNA media controller plugin compatible with OpenHome Media could be the way to go, in particular for playlist management.

Hi Lolodomo,

I could play a mp3 file from my vera to my samsung notes using BubbleUpNP. However, When trying to play text to speech, the samsung receives the message (the volume is changed) but there is no sound. Here is my vera log:

] <0x30d71680>
50 11/23/14 15:41:26.578 luup_log:83: DLNA: debug: UPnP_request: status=1 statusMsg=200 result=[100:00:00http://192.168.0.3:80/Say.83.mp3dc:titleGoogle TTS</dc:title>http://192.168.0.3:80/Say.83.mp3upnp:classobject.item.audioItem.musicTrack</upnp:class>NOT_IMPLEMENTEDNOT_IMPLEMENTEDNETWORKNOT_IMPLEMENTEDNOT_IMPLEMENTED] <0x30d71680>
50 11/23/14 15:41:26.582 luup_log:83: DLNA: debug: GetPositionInfo(‘http://192.168.0.26:58645/dev/5f0d28a1-5971-84d8-ffff-ffffa4cf3814/svc/upnp-org/AVTransport/action’, ‘urn:schemas-upnp-org:service:AVTransport:1’) Called with parameter count=1 <0x30d71680>
50 11/23/14 15:41:26.583 luup_log:83: DLNA: debug: UPnP_request: url=[http://192.168.0.26:58645/dev/5f0d28a1-5971-84d8-ffff-ffffa4cf3814/svc/upnp-org/AVTransport/action], body=[

0

] <0x30d71680>
50 11/23/14 15:41:26.700 luup_log:83: DLNA: debug: UPnP_request: status=1 statusMsg=200 result=[100:00:00dc:titleGoogle TTS</dc:title>http://192.168.0.3:80/Say.83.mp3upnp:classobject.item.audioItem.musicTrack</upnp:class>http://192.168.0.3:80/Say.83.mp300:00:0000:00:0021474836472147483647] <0x30d71680>
50 11/23/14 15:41:26.722 luup_log:83: DLNA: debug: GetMute(‘http://192.168.0.26:58645/dev/5f0d28a1-5971-84d8-ffff-ffffa4cf3814/svc/upnp-org/RenderingControl/action’, ‘urn:schemas-upnp-org:service:RenderingControl:1’) Called with parameter count=1 <0x30d71680>
50 11/23/14 15:41:26.723 luup_log:83: DLNA: debug: UPnP_request: url=[http://192.168.0.26:58645/dev/5f0d28a1-5971-84d8-ffff-ffffa4cf3814/svc/upnp-org/RenderingControl/action], body=[

0Master

] <0x30d71680>
50 11/23/14 15:41:26.940 luup_log:83: DLNA: debug: UPnP_request: status=1 statusMsg=200 result=[0] <0x30d71680>
50 11/23/14 15:41:26.941 luup_log:83: DLNA: debug: GetVolume(‘http://192.168.0.26:58645/dev/5f0d28a1-5971-84d8-ffff-ffffa4cf3814/svc/upnp-org/RenderingControl/action’, ‘urn:schemas-upnp-org:service:RenderingControl:1’) Called with parameter count=1 <0x30d71680>
50 11/23/14 15:41:26.942 luup_log:83: DLNA: debug: UPnP_request: url=[http://192.168.0.26:58645/dev/5f0d28a1-5971-84d8-ffff-ffffa4cf3814/svc/upnp-org/RenderingControl/action], body=[

Please advise :slight_smile:

Thanks,

  1. I have unchecked “secure my vera” and rebooted it.

  2. My vera and my android are in the same subnet.

  3. I could play an mp3, volume up/down but not TTS.

  4. My device RouterIp set to empty and RouterPort set to 80

  5. I am using ui7 & veralite (fireware 1.7.439)

  6. DLNA plugin version 1.2

Is it possible to start the movie from a certain point of time, for example (00:04:33) ?

Hello

I have been using the DLNA plug-in 1.0 for a while and I wrote a blog article here with screen shots, about how I was using it with Kodi / XBMC Media Center.
I have just updated the DLNA plug-in to the latest version 1.3

However for both versions when playing videos (TV Shows / Movies) in Kodi the DLNA plug-in in Vera does not display which movie is being currently played. It does however on the Help and Advanced tabs eventually show the correct video file that is being currently played.

It seems to work much better when playing a music album from the Kodi music library, as then it displays the album cover and also displays metadata like the currently playing albums name, artist name and track information etc.

Any ideas why the DLNA plug-in is not displaying movie cover images? Should it do this? and why it does not show the metadata of the currently playing movie?

I am using a VeraLite UI5

Thanks

There is the “Seek” action that should help. But no unique action to start and seek at the same time.