NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 3 4 5 6 7 … 93 Next »
Media Browser Integration

 
  • 0 Vote(s) - 0 Average
Media Browser Integration
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#501
2014-04-26, 07:38 PM
Svekke Wrote:Thank you for the update. Sorry for the late reaction. Didn't had the time to change the stuff.

Some new question for you. Is it possible to give more information? Now i have this in MB3 --> http://i.imgur.com/xds9yem.png

We have the following class for the "live tv" tuners

Code:
public class LiveTvTunerInfo
    {
        public LiveTvTunerInfo();

        public string ChannelId { get; set; }
        public List<string> Clients { get; set; }
        public string Id { get; set; }
        public string Name { get; set; }
        public string ProgramName { get; set; }
        public string RecordingId { get; set; }
        public string SourceType { get; set; }
        public LiveTvTunerStatus Status { get; set; }
    }


So is it possible to give more information on a tuner?

public string ChannelId { get; set; } --> The current channelId (doesn't matter recording, live stream, ...)
public List<string> Clients { get; set; } --> That's something on our side
public string Id { get; set; }
public string Name { get; set; } --> The name of the tuner ( You can see it on the screenshot )
public string ProgramName { get; set; } --> The program name ( doesn't matter recording, live stream,... )
public string RecordingId { get; set; } --> When there is a recording, the recording id
public string SourceType { get; set; } --> I should ask Luke, what this means. Smile
public LiveTvTunerStatus Status { get; set; } --> Is there a status available? Like recording, live stream ....


I checked some stuff for the stream, recording. It looks the problem is when one of the two stops. And not at the start...
Not sure, but that's something i tried on my local machine..

I think some of the info is already there... I'll check API to see if there is any more info I can pass back or not....

Code:
{
  "Tuners": [
    {
      "tunerName": "Silicondust HDHomeRun Tuner 101B02C7-0:1", [color=#FF0000]==> Tuner Name[/color]
      "tunerStatus": "Recording", [color=#FF0000]==> Tuner Status[/color]
      "recordings": [
        "Kill Bill: Vol. 1" [color=#FF0000]==> Recording Name[/color]
      ],
      "liveTV": []
    },
    {
      "tunerName": "Silicondust HDHomeRun Tuner 101B02C7-1:1",
      "tunerStatus": "Recording",
      "recordings": [],
      "liveTV": [
        "LiveTV - F:\\Live_TV_Buffer\\live-63.1600-WHP-2596-1.ts"  [color=#FF0000]==> Live TV[/color]
      ]
    },
    {
      "tunerName": "Silicondust HDHomeRun Tuner 10143F3B-0:1",
      "tunerStatus": "Sleeping",
      "recordings": [],
      "liveTV": []
    }
  ]
}
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#502
2014-04-26, 08:03 PM
So the TunerStatus is only recording ( recording and live stream? ) and sleeping ....
For the recording you have a nice name. But the liveTV have not that same nice name.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#503
2014-04-26, 08:07 PM
Ok... I took a look.... I am actually reading the NPVR DB for info to get the name of what is recording so I think I can get everything you are looking for....


public string ChannelId { get; set; } --> The current channelId (doesn't matter recording, live stream, ...) ==> I can get this...
public List<string> Clients { get; set; } --> That's something on our side
public string Id { get; set; } ==> what is this?
public string Name { get; set; } --> The name of the tuner ( You can see it on the screenshot ) ==> This is already there...
public string ProgramName { get; set; } --> The program name ( doesn't matter recording, live stream,... ) ==> This is already there...
public string RecordingId { get; set; } --> When there is a recording, the recording id ==> I can get this...
public string SourceType { get; set; } --> I should ask Luke, what this means. ==> Let me know what you find out...
public LiveTvTunerStatus Status { get; set; } --> Is there a status available? Like recording, live stream .... ==> This is already there....
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#504
2014-04-26, 08:11 PM
Svekke Wrote:So the TunerStatus is only recording ( recording and live stream? ) and sleeping ....
For the recording you have a nice name. But the liveTV have not that same nice name.

Correct... sleeping or recording... then if there is something in the Live Tv seqment it is live.... if there is something in the recordings segment it is recording

I think I can get a "nice name" for live Tv when I add the other stuff mentioned in my above post.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#505
2014-04-26, 08:39 PM
Id is any identifier you possibly have for the individual tuner. It is what will be passed into the ResetTuner method. It can be anything you want and is not used for display.

SourceType examples are Digital Cable, QAM, etc. It's just for display and has no functional purpose.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#506
2014-04-26, 08:46 PM
lukemb3 Wrote:Id is any identifier you possibly have for the individual tuner. It is what will be passed into the ResetTuner method. It can be anything you want and is not used for display.

SourceType examples are Digital Cable, QAM, etc. It's just for display and has no functional purpose.

Ok... I'll see what I can do for these as well.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#507
2014-04-26, 09:12 PM (This post was last modified: 2014-04-27, 02:21 AM by UncleJohnsBand.)
Give the attached a go.... unzip to web\app_code\classes it will replace one file

It will return a segment like the below....

I need to hear back from sub on Live TV details....

Code:
{
  "Tuners": [
    {
      "tunerName": "Silicondust HDHomeRun Tuner 10143F3B-1:1",
      "tunerStatus": "Recording",
      "recordings": [
        {
          "Recording": {
            "tunerOID": 23,
            "recName": "PGA Tour Golf",
            "channelOID": 7149,
            "recordingOID": 11077
          }
        }
      ],
      "liveTV": []
    }
  ]
}

EDIT: Updated attachment with new version that returns tunerOID as an integer instead of a string.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#508
2014-04-27, 07:26 AM
UncleJohnsBand Wrote:Give the attached a go.... unzip to web\app_code\classes it will replace one file

It will return a segment like the below....

I need to hear back from sub on Live TV details....

Code:
{
  "Tuners": [
    {
      "tunerName": "Silicondust HDHomeRun Tuner 10143F3B-1:1",
      "tunerStatus": "Recording",
      "recordings": [
        {
          "Recording": {
            "tunerOID": 23,
            "recName": "PGA Tour Golf",
            "channelOID": 7149,
            "recordingOID": 11077
          }
        }
      ],
      "liveTV": []
    }
  ]
}

EDIT: Updated attachment with new version that returns tunerOID as an integer instead of a string.

Are you sure? When i update that stuff i don't see anything when i play a recording...
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#509
2014-04-27, 01:39 PM
Svekke Wrote:Are you sure? When i update that stuff i don't see anything when i play a recording...
I assume you updated the mb3 code to read the new response since the data is now in an object within the recordings segment?

What I provided is live data from when I was recording so I know it is working.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#510
2014-04-27, 06:43 PM
UncleJohnsBand Wrote:I assume you updated the mb3 code to read the new response since the data is now in an object within the recordings segment?

What I provided is live data from when I was recording so I know it is working.

Indeed it works. I did something stupid. Smile
When i converted the json to c# i get the following.

But why do you use an array for the recording and liveTv? On a tuner you only have 1 recording, live stream,...
Or am i wrong?
You can have a card with more tuners, like i have. But everthing is seperated. You can't have multiple items on 1 tuner...

Code:
public class Recording2
{
    public int tunerOID { get; set; }
    public string recName { get; set; }
    public int channelOID { get; set; }
    public int recordingOID { get; set; }
}

public class Recording
{
    public Recording2 Recording { get; set; }
}

public class Tuner
{
    public string tunerName { get; set; }
    public string tunerStatus { get; set; }
    public List<Recording> recordings { get; set; }
    public List<object> liveTV { get; set; }
}

public class RootObject
{
    public List<Tuner> Tuners { get; set; }
}
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (56): « Previous 1 … 49 50 51 52 53 … 56 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looking for C# UPnP Media Server code bgowland 5 7,773 2016-12-16, 08:25 PM
Last Post: mvallevand
  Media\Show Directory mvallevand 12 6,158 2014-07-02, 10:58 AM
Last Post: sub
  Media\Shows Metadata mvallevand 2 1,952 2013-05-22, 04:09 AM
Last Post: mvallevand
  Streaming media imilne 44 13,255 2012-12-14, 04:05 AM
Last Post: mvallevand
  SkyDrive Eplorer Integration Released.....also available for Mac and iPad UncleJohnsBand 0 1,490 2012-04-24, 01:06 AM
Last Post: UncleJohnsBand
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,966 2012-02-05, 10:29 AM
Last Post: bgowland
  Windows Media Connect - Storing stuff on a Home Server psycik 3 2,778 2009-09-29, 03:47 AM
Last Post: mvallevand
  Plugin notification of stopped media mvallevand 7 2,428 2009-08-19, 11:16 PM
Last Post: mvallevand
  GBPVR Media Events KingArgyle 1 1,624 2005-03-27, 07:12 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode