Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Video playback

  1. #1
    Join Date
    May 2006
    Location
    Canada
    Posts
    28,509

    Video playback

    There is a page at /stream&f=filename that works with short filenames for many media types.

    Martin

  2. #2
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823
    when you say short filenames, how short are we talking?

    I would need sub to add in a way to get a list of video directories, then querying subdirectories, eg

    service?method=videodir.list&sid=

    then

    service?method=videodir.list&subdir={subname}&sid=

    then be able to play it via

    stream?filename={videoshare name \ subname \ filename }

    no idea how well that would work with all the different codecs though. but worth looking into IMO.

    martin, if you know more info about the stream&f=filename, can you let me know, so I can test it locally without sub adding in the videodir.list stuff

  3. #3
    Join Date
    May 2006
    Location
    Canada
    Posts
    28,509
    Short as in old DOS 8.3 format that you can see with dir /x

    There is no API to get the list, since it is outside the db it might be slow especially if you have to wake all the archive folders. Maybe you can use NEWA'S

    http://localhost:8866/5/video.aspx

    Martin

  4. #4
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823
    wanting to avoid using NEWA, want to stick to official APIs that returns exactly the same info as nextpvr.

    I know ill need sub to add the dir list (it wont be slow, i wont ask for every file at once, just Directory.GetFiles()+ Directory.GetDirectories()), then when I open another sub folder, just do the same.

    I just want to know the actual format now, so I can play with it and see if divx, h264, mov, whatever work.

  5. #5
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823
    tried using a url like

    Code:
    http://batman:8866/stream&f=D%3A%5CVideos%5CBatman.mkv
    and
    Code:
    http://batman:8866/stream&f=D:\Videos\Batman.mkv
    but neither worked in vlc, so I'll assume that URL is wrong, anyone know the correct one?

  6. #6
    Join Date
    Aug 2012
    Location
    Australia
    Posts
    253
    I believe the slashes go the other way around d:/vidoes/batman.mkv (or something like this)....so the opposite of what would normally use in Windows...Martin 100% knows though

  7. #7
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823
    nope, still no luck.

  8. #8
    Join Date
    Aug 2012
    Location
    Australia
    Posts
    253
    This probably doesn't help, but this the my NEWA for a VLC stream (that Martin helped me with a while back)...just picked any old program from the Guide and streamed it:

    http://x.x.x.x:8866/public/Player2.a...=64821&type=sn

  9. #9
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823
    nah, i need a way to play any file from a shared folder configured in nextpvr. this isnt huge priority, but is needed if i'm going to add "Videos" support.

  10. #10
    Join Date
    May 2006
    Location
    Canada
    Posts
    28,509
    Quote Originally Posted by reven View Post
    tried using a url like

    Code:
    http://batman:8866/stream&f=D%3A%5CVideos%5CBatman.mkv
    and
    Code:
    http://batman:8866/stream&f=D:\Videos\Batman.mkv
    but neither worked in vlc, so I'll assume that URL is wrong, anyone know the correct one?
    If you are playing from the command line did you try quotes around it? You might need to enable the NMT Web Server option for this page to work.

    Martin
    Last edited by mvallevand; 2013-07-29 at 11:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •