We have moved at community.getvera.com

Author Topic: DLNA Media Controller plugin - Common library for UPnP AV  (Read 238401 times)

Offline hellovn

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +19/-46
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #495 on: November 23, 2014, 02:45:36 pm »
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.mp3<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"><item id="VERA_TTS" parentID="-1" restricted="1"><dc:title>Google TTS</dc:title><res protocolInfo="http-get:*:audio/mpeg:*">http://192.168.0.3:80/Say.83.mp3</res><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>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:00<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"><item id="VERA_TTS" parentID="-1" restricted="1"><dc:title>Google TTS</dc:title><res protocolInfo="http-get:*:audio/mpeg:*">http://192.168.0.3:80/Say.83.mp3</res><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>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 :)

Thanks,

Offline hellovn

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +19/-46
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #496 on: November 23, 2014, 02:52:36 pm »
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
« Last Edit: November 23, 2014, 02:54:15 pm by hellovn »

Offline Neos1234

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #497 on: April 14, 2015, 10:24:36 am »
Is it possible to start the movie from a certain point of time, for example (00:04:33) ?

Offline cw-kid

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1612
  • Karma: +18/-2
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #498 on: April 16, 2015, 06:23:02 am »
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
« Last Edit: April 16, 2015, 07:08:21 am by cw-kid »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #499 on: April 17, 2015, 07:26:23 am »
Is it possible to start the movie from a certain point of time, for example (00:04:33) ?

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

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #500 on: April 17, 2015, 07:30:08 am »
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

Probably because the DLNA server included in Kodi does not not provide the information (or do it in an unexpected way).
I used the plugin with XBMC and if I correctly remembered I only get the file name as title and one random image of the movie as cover.

Offline cw-kid

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1612
  • Karma: +18/-2
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #501 on: April 17, 2015, 08:52:33 am »
OK thanks!

When playing music in Kodi the DLNA plug-in instantly pretty much, displays what is playing and shows the album cover.

When playing a movie in Kodi the DLNA plug-in doesn't seem to display the video title and it does not display any artwork or a random image. It seems very slow at updating and eventually in the help or advanced tab you will see the correct video title / file name that is currently being played. But on the DLNA devices control tab where is says playing.. this is often blank with no title showing.

I have just discovered KodiRemote which might now be better for use with Kodi. I wrote a setup guide here.

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

Probably because the DLNA server included in Kodi does not not provide the information (or do it in an unexpected way).
I used the plugin with XBMC and if I correctly remembered I only get the file name as title and one random image of the movie as cover.

Offline Neos1234

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #502 on: April 17, 2015, 11:39:10 am »
luup.call_action("urn:dlna-org:serviceId:AVTransport", "Seek", {InstanceID="", Unit=""  , Target= "00:11:22" }, 246 )

It does not work! Could you give an example?


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

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

Offline mda

  • Sr. Member
  • ****
  • Posts: 464
  • Karma: +9/-0
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #503 on: April 18, 2015, 11:01:58 pm »
Hi @lolodomo - my renderers keep going offline several times a day. in the log i see

Code: [Select]
LuaUPnP.log:50 04/18/15 10:30:34.908 luup_log:157: DLNA: debug: AVTransport.GetTransportInfo failed: going offline <0x2c197680>
LuaUPnP.log:50 04/18/15 10:30:34.909 luup_log:157: DLNA: debug: commsFailure: Device offline? status=connection refused <0x2c197680>

The only way i get them back online is to click "Discover" again and select the renderer from the list and click "Select" (then i notice the port changes). I think it might be a problem with the device, not with the plugin.

As a work-around is there a way to select a rendered by name via luup? I could have a scene on a timer do that whenever the renderer is offline and it would solve my problem. Thanks!

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #504 on: April 21, 2015, 05:17:48 pm »
The only way i get them back online is to click "Discover" again and select the renderer from the list and click "Select" (then i notice the port changes). I think it might be a problem with the device, not with the plugin.

As a work-around is there a way to select a rendered by name via luup? I could have a scene on a timer do that whenever the renderer is offline and it would solve my problem. Thanks!

Yes, you have the action named "SearchAndSelectDMRDevice" (urn:dlna-org:serviceId:DLNAMediaController1). Use the parameter "Name" and "IP". IP parameter is optional. Name has to be set to the modelName entry in the description file.

Offline watek2k

  • Newbie
  • *
  • Posts: 19
  • Karma: +1/-3
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #505 on: May 09, 2015, 11:21:07 am »
Ok, I'm a noob to this so don't shoot me down.

Hardware: Vera 3 with UI 7, firmware 1.7.569

Problem: Trying to add Jongo S3 render device via DLNA and uPNP

Plugins: DLNA plugin and Universal PNP plugin

Condition: No upnp devices will discover via discovery or upnp device add (upnp not working)

Workaround: Add device manually by specifying DMR URL

This was fine but the damn URL had a manual port specified after the address (proceeding":" then a random port number so 192.168.81.100:3999) which caused device to go offline.

Temp fix was to telnet in and run command: route add -net 224.0.0.0 netmask 240.0.0.0 dev br-lan

Yay now the discovery works, seems all upnp traffic was being dumped or worse router to wan, only problem was every time I rebooted it had to be done all over again.  Not being a Linux guy this was now a learning exercise.

Fix:  found the Holy Grail for windows UI guys :-) Openwrt!!!! Factory installed!

Went to:
http://192.168.81.1/cgi-bin/webif/info.sh

Navigate to the System then startup tab, go all the way to the bottom and drop the route add command.

Quick reboot and I now have functioning DLNA and upnp!

Took me hours so sharing in hope this helps someone else, i am not saying this is right or even repeatable but its working as desired now and i can see all devices on the wifi when i click discover.

Last tip, username is root and password is under the device on a label which is the same as default wifi password
, good luck and hope this helps other noobs :-)

Offline mda

  • Sr. Member
  • ****
  • Posts: 464
  • Karma: +9/-0
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #506 on: August 02, 2015, 11:10:25 pm »
Hi @lolodomo - Would you be able to update this plugin with the Google TTS fix that you did for the Sonos plugin? Thanks!

Offline watek2k

  • Newbie
  • *
  • Posts: 19
  • Karma: +1/-3
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #507 on: August 05, 2015, 08:11:36 am »
+1 on the TTS Fix!  Please :-)

Offline cw-kid

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1612
  • Karma: +18/-2
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #508 on: August 05, 2015, 10:16:51 am »
+1 on the TTS Fix!  Please :-)

Did it break just recently?

I noticed Google have added a Captcha recently and my TTS URLs stopped working with the Squeezebox plug-in as well.

Offline n0ir

  • Sr. Member
  • ****
  • Posts: 352
  • Karma: +4/-1
Re: DLNA Media Controller plugin - Common library for UPnP AV
« Reply #509 on: September 15, 2015, 04:52:47 pm »
With 1.4 TTS seems to work again... I can get both Google and Microsoft to speak both English and Swedish (which isn't in the settings, but works using "sv" for language)!

Maybe someone could help with I assume is a easy question?

I have never used the app to play .mp3-files from my NAS before. I would like to play a file as part of a scene in UI7, but I can't get it to work... ;)

I use the PlayDMSMedia action for the created DLNA device, under Advanced Editor in the scene creator. Not comfortable with luup so I try to avoid it.

I understand you need to add "x-file-cifs://" before the URL to the network device? I have put a .mp3-file on the Vera itself for checking, so I used "x-file-cifs://VERAIP/test.mp3".

When I run the scene my DLNA device (KODI on a HTPC) seems to respond (the screensaver is turned off) but no .mp3 is played. TTS works! If I try to play the .mp3 from a browser (using the URL http://VERAIP/chime.mp3) it works.

Should I put something in the ObjectID and Protocol fields?