more G-Labs products

Author Topic: TESTING RELEASE  (Read 196260 times)

November 08, 2015, 01:35:31 PM
Reply #660

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Thanks! It's works with plex media server. I can play the movies with green button. BTW what is means "matroska"? :)

it's a video encoding format and the number next to it it's the bitrate.

https://en.wikipedia.org/wiki/Matroska

The Kodi media server still not working. :(

if you provide output of API commands when connecting to Kodi, perhaps I could find out what the problem is with it.

g.

November 08, 2015, 08:58:42 PM
Reply #661

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219

if you provide output of API commands when connecting to Kodi, perhaps I could find out what the problem is with it.

g.


Hi Gene!

This link can not help?
http://hgserver:port/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/library%3a%2f%2fvideo%2f

Or what API command do you think?

I found with my phone, what should be the end of the link.
Code: [Select]
http://hgserver:port/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/library%3a%2f%2fvideo%2f
Browser response:
Code: [Select]
[{ "Id" : "library://video/movies/", "Title" : "Filmek", "Class" : "object.container" },
{ "Id" : "library://video/tvshows/", "Title" : "Sorozatok", "Class" : "object.container" },
{ "Id" : "library://video/inprogressshows.xml/", "Title" : "Folyamatban lévő sorozatok", "Class" : "object.container" },
{ "Id" : "library://video/recentlyaddedmovies.xml/", "Title" : "Nemrég bekerült filmek", "Class" : "object.container" },
{ "Id" : "library://video/recentlyaddedepisodes.xml/", "Title" : "Nemrég bekerült epizódok", "Class" : "object.container" },
{ "Id" : "library://video/files.xml/", "Title" : "Fájlok", "Class" : "object.container" },
{ "Id" : "library://video/playlists.xml/", "Title" : "Lejátszáslisták", "Class" : "object.container" }]

November 08, 2015, 10:01:11 PM
Reply #662

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Kaze,

Kodi uses an URL for the folder id, and this was not really expected :) I was expecting something like a number or a guid.
Try replacing the attacched file and see if it fixes the issue with Kodi.

g.

November 08, 2015, 10:21:37 PM
Reply #663

pim555

  • ****
  • Information
  • Sr. Member
  • Posts: 143
I am struggling again with Zwave device inclusion and exclusion. My set-up is RPI and Razberry board. In earlier releases (493 and 498) all seemed to work ok but as of 499/500 (dont know exactly), I cannot include/exclude devices anymore.

To make sure that my devices are still ok I installed the Z-way controller (http://razberry.z-wave.me/index.php?id=10) on top of the HG install. By doing so I can include and exclude devices with no issues. However, from HG it does not seem to work.

Btw, I installed r499/r500 by removing earlier releases and installing the new one.

Any hints as to what might be happening?

Pim

November 08, 2015, 10:27:58 PM
Reply #664

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Kaze,

Kodi uses an URL for the folder id, and this was not really expected :) I was expecting something like a number or a guid.
Try replacing the attacched file and see if it fixes the issue with Kodi.

g.


The video browse work fine. But, It can't load video data. I paste the developer info:

Link: http://smarthome.home.local:8080/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/library%3A%2F%2Fvideo%2Fmovies%2Ftitles.xml%2F/
Code: [Select]
[{ "Id" : "videodb://movies/titles/22?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Air", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/9?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Amerika Kapitány - Az első bosszúálló", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/23?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Armageddon", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/7?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Avatar", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/26?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Banana", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/8?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Csatahajó", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/2?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Delfines kaland", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/31?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Die Hard - Az élet mindig drága", "Class" : "object.item.videoItem.movie" },
.......
{ "Id" : "videodb://movies/titles/52?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Vissza a jövőbe 3.", "Class" : "object.item.videoItem.movie" },
{ "Id" : "videodb://movies/titles/5?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d", "Title" : "Az Őrzők legendája", "Class" : "object.item.videoItem.movie" }]

Link: http://smarthome.home.local:8080/api/Protocols.UPnP/e0a1029e-a48b-bca6-3185-299dada439be/AvMedia.GetTransportInfo//
Code: [Select]
[{ "CurrentTransportState" : "STOPPED", "CurrentTransportStatus" : "OK", "CurrentSpeed" : "1" }]
Link: http://smarthome.home.local:8080/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.GetItem/videodb://movies/titles/22?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d/
Code: [Select]
{"Status":"Error","Message":"{\"ClassName\":\"OpenSource.UPnP.UPnPInvokeException\",\"Message\":\" Internal Server Error\",\"InnerException\":null,\"HelpURL\":null,\"StackTraceString\":\"  at OpenSource.UPnP.UPnPService.InvokeSync (System.String MethodName, OpenSource.UPnP.UPnPArgument[] InVarArr) [0x00000] in <filename unknown>:0 \\n  at MIG.Interfaces.Protocols.UPnP.InvokeUpnpDeviceService (OpenSource.UPnP.UPnPDevice device, System.String serviceId, System.String methodName, OpenSource.UPnP.UPnPArgument[] args) [0x00000] in <filename unknown>:0 \\n  at MIG.Interfaces.Protocols.UPnP.InterfaceControl (MIG.MigInterfaceCommand request) [0x00000] in <filename unknown>:0 \\n  at MIG.MigService.Gateway_PreProcessRequest (System.Object sender, MIG.ProcessRequestEventArgs args) [0x00000] in <filename unknown>:0 \",\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"HResult\":-2146233088,\"Source\":\"UPnP\",\"ExceptionMethod\":null,\"Data\":null}"}

I test it with music. Music first level is browsable.

Link: http://smarthome.home.local:8080/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/musicdb%3A%2F%2F/
Code: [Select]
[{ "Id" : "musicdb://genres/", "Title" : "Műfajok", "Class" : "object.container" },
{ "Id" : "musicdb://artists/", "Title" : "Előadók", "Class" : "object.container" },
{ "Id" : "musicdb://albums/", "Title" : "Albumok", "Class" : "object.container" },
{ "Id" : "musicdb://songs/", "Title" : "Zeneszámok", "Class" : "object.container" },
{ "Id" : "musicdb://years/", "Title" : "Év", "Class" : "object.container" },
{ "Id" : "musicdb://top100/", "Title" : "Top 100 ", "Class" : "object.container" },
{ "Id" : "musicdb://recentlyaddedalbums/", "Title" : "Új albumok", "Class" : "object.container" },
{ "Id" : "musicdb://recentlyplayedalbums/", "Title" : "Mostanában játszott albumok", "Class" : "object.container" },
{ "Id" : "special://musicplaylists/", "Title" : "Lejátszáslisták", "Class" : "object.container" }]

I enter in "Zeneszámok" from the list.

Link: http://smarthome.home.local:8080/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/musicdb%3A%2F%2Fsongs%2F/
Code: [Select]
[]
Thank you to deal with the problem!

November 08, 2015, 10:30:26 PM
Reply #665

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Pictures.

November 08, 2015, 10:53:38 PM
Reply #666

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Forgot to encode the GetItem request as well.
Not sure what the problem with the music folder is.
Try this and let me know.

g.

November 08, 2015, 11:28:06 PM
Reply #667

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Forgot to encode the GetItem request as well.
Not sure what the problem with the music folder is.
Try this and let me know.

g.
It's works with video! I can play the videos. A little problem is, that I can't se all information. It does not fit.

The audio still not working, but I think, this is the Kodi problem. I see it tomorrow.

THANKS for your help!

November 08, 2015, 11:32:42 PM
Reply #668

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Good,

can you provide the output for one of the AvMedia.GetItem requests?
Because I see that in the video list it shows the container (matroska) but it does not show the bitrate.
Talk to you tomorrow!

g.

November 08, 2015, 11:42:22 PM
Reply #669

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Good,

can you provide the output for one of the AvMedia.GetItem requests?
Because I see that in the video list it shows the container (matroska) but it does not show the bitrate.
Talk to you tomorrow!

g.


I found a problem in Kodi music library...the problem solved ;)

This is Avatar AvMedia.GetItem:
http://smarthome.home.local:8080/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.GetItem/videodb%3A%2F%2Fmovies%2Ftitles%2F7%3Fxsp%3D%257b%2522order%2522%253a%257b%2522direction%2522%253a%2522ascending%2522%252c%2522ignorefolders%2522%253a0%252c%2522method%2522%253a%2522sorttitle%2522%257d%252c%2522type%2522%253a%2522movies%2522%257d/
Code: [Select]
{
  "item": {
    "@id": "videodb://movies/titles/7?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d",
    "@parentID": "videodb://movies/titles/?xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22movies%22%7d",
    "@restricted": "1",
    "dc:title": "Avatar",
    "upnp:genre": [
      "Akció",
      "Kaland",
      "Fantasy",
      "Sci-Fi"
    ],
    "res": [
      {
        "@duration": "2:41:41.000",
        "@protocolInfo": "http-get:*:video/x-matroska:DLNA.ORG_OP=01;DLNA.ORG_CI=0",
        "@xmlns:pv": "http://www.pv.com/pvns/",
        "@pv:subtitleFileUri": "http://10.1.1.210:1457/%25/5AD1419FBBFD4445E916F428745D871E/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX.srt",
        "@pv:subtitleFileType": "srt",
        "#text": "http://10.1.1.210:1457/%25/9C1DBD424995374F170607BAB46C1702/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX.mkv"
      },
      {
        "@duration": "2:41:41.000",
        "@nrAudioChannels": "6",
        "@protocolInfo": "xbmc-get:*:video/x-matroska:DLNA.ORG_OP=01;DLNA.ORG_CI=0",
        "#text": "smb://10.1.1.250/media/Movies/Cinema3D/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX.mkv"
      },
      {
        "@protocolInfo": "xbmc.org:*:fanart:*",
        "#text": "http://10.1.1.210:1457/%25/C6363C53598731D2446EF1C0F32045EE/5XPPB44RQGfkBrbJxmtdndKz05n.jpg"
      },
      {
        "@protocolInfo": "xbmc.org:*:poster:*",
        "#text": "http://10.1.1.210:1457/%25/7423582BAEE440380C660E0B4EF6C6BF/fGaMZI0KNJBODnnZqwEwi3k0zPP.jpg"
      },
      {
        "@protocolInfo": "http-get:*:text/srt:*",
        "#text": "http://10.1.1.210:1457/%25/5AD1419FBBFD4445E916F428745D871E/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX.srt"
      },
      {
        "@protocolInfo": "http-get:*:smi/caption:*",
        "#text": "http://10.1.1.210:1457/%25/5AD1419FBBFD4445E916F428745D871E/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX.srt"
      }
    ],
    "sec:CaptionInfoEx": {
      "@sec:type": "srt",
      "#text": "http://10.1.1.210:1457/%25/5AD1419FBBFD4445E916F428745D871E/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX.srt"
    },
    "sec:CaptionInfo": {
      "@sec:type": "srt",
      "#text": "http://10.1.1.210:1457/%25/5AD1419FBBFD4445E916F428745D871E/Avatar.2009.1080p.3D.BluRay.Half-OU.DTS.x264.HuN-LiLBOX.srt"
    },
    "upnp:class": "object.item.videoItem.movie"
  }
}

November 09, 2015, 12:46:45 PM
Reply #670

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Kaze,

looking at the AvMedia.GetItem output I noticed that we can also show thumbnails. Not sure what is best to pick between fanart or poster. In the updated code the last one is picked (so it will be mostly like poster).
Please try the attacched file and perhaps let me know what is the difference between fan art image and poster one (you find the url in the debug output you provided in the previous message).

g.

November 09, 2015, 05:44:24 PM
Reply #671

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Kaze,

looking at the AvMedia.GetItem output I noticed that we can also show thumbnails. Not sure what is best to pick between fanart or poster. In the updated code the last one is picked (so it will be mostly like poster).
Please try the attacched file and perhaps let me know what is the difference between fan art image and poster one (you find the url in the debug output you provided in the previous message).

g.

Hi Gene!

I attach the fanart and poster pics.
But the new .js file not change anything. Thumbnails not show. I think we need a fanart pic.

November 09, 2015, 06:03:00 PM
Reply #672

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Kaze,

can you try opening this url:

http://10.1.1.210:1457/%25/C6363C53598731D2446EF1C0F32045EE/5XPPB44RQGfkBrbJxmtdndKz05n.jpg

is the image displayed?
Btw I think I found the issue... try the new file.

g.

November 09, 2015, 06:12:30 PM
Reply #673

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Kaze,

can you try opening this url:

http://10.1.1.210:1457/%25/C6363C53598731D2446EF1C0F32045EE/5XPPB44RQGfkBrbJxmtdndKz05n.jpg

is the image displayed?
Btw I think I found the issue... try the new file.

g.


It's works fine Gene!  8) Big thanks!
BTW, the link work, because I download the previous pictures with them.

November 09, 2015, 06:16:28 PM
Reply #674

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Cool! :)
I'm glad it works now :)