NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 40 41 42 43 44 … 93 Next »
Client mode - PlayVideo

 
  • 0 Vote(s) - 0 Average
Client mode - PlayVideo
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2007-02-26, 08:59 PM
Sub can you give a quick explanation of how the PlayVideoFile method works when on a client.

If I am on a client trying to play a video (from the server) I give it the name from scheduledRecording of G:\bla blah.mpg but from the clients point of view this doesn't exist.

Do you do some trickery on your recordings screen to make this work from the client? I.e. replace G: with \\server??
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#2
2007-02-26, 09:04 PM
If its in streaming mode, which is what I use, the file name is passed across the network by the networking stream filter I created and the correct file opened.

File mode is a bit more tricky, and may not work in all scenarios, but typically works in the simple use of the normal Recordings screen. It replaces the part of the path that is the recording directory on the server and replaces it with the recordings share specified in the clients config app.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2007-02-26, 09:10 PM
And that functionality isn't exposed by API is it??

I've got a workaround (same as your filemode) but I suppose later on down the track it would be nice to implement the same methods you do for consistancy.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#4
2007-02-26, 09:16 PM
I thought it actually happened behind the scenes, and should work via the playfile API, but it might not be. It might have been a layer above that.

I've gotta go out for a bit, but I'll check later.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
2007-02-26, 09:27 PM
I think I tried it in the weekend and it said video not found.. So i just used my filename changing routine to replace the file path.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#6
2007-02-26, 10:46 PM
I checked, and the API does miss this logic. I can add it, but unfortunately you mentioned this too late for the next release - which is pretty much a done deal now.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#7
2007-02-26, 10:46 PM
no worries, I've been dealing with it since before you had a client mode!!
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#8
2007-09-01, 06:01 AM
sub Wrote:I checked, and the API does miss this logic. I can add it
Is this working in the current release? If not, psycik could you share any C# code of your workaround?
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#9
2007-09-01, 06:08 AM
I just replace the filename with a unc path.

So if your recordings are in G:\recordings set up a share of \\machine\recordings

So in my code I use String.replace("g:","\\machine").
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#10
2007-09-01, 01:09 PM
Does this workaround work even if the user is in streaming mode without any shares for video as requested here? Sub this seems to fail badly on the current version as reported here. I'm running an older gbpvr on my server/main system and the current version on my client/dev system and PlayVideoFile fails but without crashing the system.

Edit: I tried the workaround and I can play from the client but I do need to add a share on the server just for the plugins. GBPVR can play in stream mode without that extra share.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Poor man's EPG mode. mvallevand 40 12,295 2022-10-15, 10:20 PM
Last Post: sgilani
  Developing Android TV client fred250 2 1,787 2020-11-16, 06:33 PM
Last Post: fred250
  Web Client: Slow with separate thread and date not obscured cncb 32 15,755 2016-10-10, 02:01 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,217 2015-09-29, 08:07 PM
Last Post: cncb
  How to get edl information for videos in a web client? fred250 27 10,491 2014-12-10, 12:39 AM
Last Post: fred250
  Remote client logout timeout. mvallevand 2 2,510 2014-10-28, 12:55 AM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 2,053 2013-07-03, 01:39 AM
Last Post: mvallevand
  Client - Tuner plugins mvallevand 53 13,446 2011-09-17, 07:19 PM
Last Post: mvallevand
  Client/server detection imilne 1 1,673 2010-08-08, 04:23 PM
Last Post: sub
  MVP Software Client SFX Group 86 30,052 2008-11-16, 02:01 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode