NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 6 7 8 9 10 … 93 Next »
NEWA - using buffer file produced by /public/VLCService?Channel=

 
  • 0 Vote(s) - 0 Average
NEWA - using buffer file produced by /public/VLCService?Channel=
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2014-01-01, 11:03 AM
I've been testing out a few things with the Swagger "Try it out" feature for playing things using VLC and nDroid.

Using /public/VLCService/StreamByScheduleOID is straight-forward enough as I only have to pass http://<server-ip>:7648 to whatever Android media player app the user chooses. Limited testing but good results so far.

When streaming live tv with /public/VLCService?Channel=X however the value of "StreamLocation" in the JSON response shows an absolute path local to my npvr server ("D:\\nPVR\\LiveTV\\x-newa-live.192.168.0.10.ts" for example).

I've got it working for brief tests by using the Videos view in nDroid and navigating to the Live TV folder and selecting the "x-newa-live.192.168.0.10.ts" buffer file.

The tests are "brief" because of the need to regularly send the "heartbeat" to keep the whole thing alive (and I can't do that yet). So basically, what were the thoughts behind designing it this way, i.e., what sort of client was it intended for? Just curious really in case I'm missing something about the way it works.

Cheers,
Brian
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,878
Threads: 954
Joined: May 2006
#2
2014-01-01, 01:55 PM (This post was last modified: 2014-01-01, 02:01 PM by mvallevand.)
bgowland Wrote:Using /public/VLCService/StreamByScheduleOID is straight-forward enough as I only have to pass http://<server-ip>:7648 to whatever Android media player app the user chooses. Limited testing but good results so far.

UJB doesn't provide any uncontrolled streaming that could fill up a disk when async streaming takes place, so it is either by show which should stop at end of the show or file with the heartbeat.

Quote:When streaming live tv with /public/VLCService?Channel=X however the value of "StreamLocation" in the JSON response shows an absolute path local to my npvr server ("D:\\nPVR\\LiveTV\\x-newa-live.192.168.0.10.ts" for example).

That is showing as a drive letter because you don't have your live tv set as a CIFS share, if you did it would be \\serverip\sharename\x-newa-live.192.168.0.10.ts can often be passed to a Windows player but for you I'd recommend //serverip/sharename/x-newa-live.192.168.0.10.ts for normal slash used in the rest of the computer world. This is often seekable.

If you don't share or you are out in the wild you can just pass the original name to sub's filename streaming API http://serverip:8866/stream?f=\\serverip...68.0.10.ts you don't need to encode it because it is in a safe format. This might be seekable or might not work, XBMC won't work because of the way this returns data. More work needs to be done in the next version to modify the APIS since sub says that the PCH requires this, and he did need to modify streaming at one point. I suggest something like appending &mode=http vs the default (which would be &mode=pch)

Martin
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2014-01-01, 03:02 PM
mvallevand Wrote:That is showing as a drive letter because you don't have your live tv set as a CIFS share, if you did it would be \\serverip\sharename\x-newa-live.192.168.0.10.ts can often be passed to a Windows player but for you I'd recommend //serverip/sharename/x-newa-live.192.168.0.10.ts for normal slash used in the rest of the computer world. This is often seekable.
I didn't realise the JSON response would be different if the folder was shared - I had thought about sharing for testing purposes but I don't really want to impose that as a requirement and would much rather do things through the web interface. I'd forgotten about /stream but had it in the back of my mind there was a way of doing it.

Cheers,
Brian
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,878
Threads: 954
Joined: May 2006
#4
2014-01-01, 03:40 PM
bgowland Wrote:I didn't realise the JSON response would be different if the folder was shared - I had thought about sharing for testing purposes but I don't really want to impose that as a requirement and would much rather do things through the web interface. I'd forgotten about /stream but had it in the back of my mind there was a way of doing it.

Cheers,
Brian

What I do in X-NEWA is check if the location starts with \\ and transforms it to smb://serverip/sharename/x-newa-live.192.168.0.10.ts I expect some Android players support smb:// protocol without mounting and if the existence check fails you can still fall back on streaming.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#5
2014-01-02, 04:13 AM
bgowland Wrote:I've been testing out a few things with the Swagger "Try it out" feature for playing things using VLC and nDroid.

Cheers,
Brian

I really recommend using the Advanced REST Client for Chrome to test the API.... you can create a project and save various scenarios.

https://chrome.google.com/webstore/detai...o?hl=en-US
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
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#6
2014-01-02, 06:36 AM
Thanks I'll take a look.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  API channel.stream.start mvallevand 2 1,301 2023-05-07, 09:40 PM
Last Post: mvallevand
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,360 2021-03-11, 03:59 PM
Last Post: mvallevand
  What is being sent when using /live?channel=3.1 scJohn 2 1,899 2020-01-30, 04:51 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 2,577 2019-02-04, 03:09 PM
Last Post: mvallevand
  XMLTV Channel Number Option gdogg371 12 6,717 2018-07-18, 04:32 PM
Last Post: sub
  Channels List by Channel Group Name scJohn 1 2,763 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,060 2017-06-19, 09:14 AM
Last Post: psycik
  Getting all channel listings - decimal channel numbers psycik 11 8,205 2015-12-13, 02:17 AM
Last Post: seejaydee
  How Does "Use S01E01 File naming format if possible" work puck64 7 5,304 2015-08-25, 10:21 AM
Last Post: puck64
  NEWA JSON API oddity bgowland 3 2,723 2015-03-25, 03:23 AM
Last Post: bgowland

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

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

Linear Mode
Threaded Mode