NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 45 46 47 48 49 … 93 Next »
Enhanced Web Admin

Thread Closed 
 
  • 0 Vote(s) - 0 Average
Enhanced Web Admin
slx
Offline

Junior Member

Posts: 9
Threads: 4
Joined: Oct 2005
#531
2005-10-31, 05:41 PM
I want to change alittle in Download.aspx.cs
private void Page_Load(object sender, System.EventArgs e)

but nothing happens
more exactly I want to send a .wpl file instead:
code:

Response.AddHeader("Content-Type", "video/x-ms-wmp");
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + Path.GetFileNameWithoutExtension(fileName) + ".wpl\"");
// Response.AddHeader("Content-Type", "audio/mpegurl");
// Response.AddHeader("Content-Disposition", "attachment; filename=\"" + Path.GetFileNameWithoutExtension(fileName) + ".m3u\"");
// Response.Write("#EXTM3U\r\n");
// Response.Write("#EXTINF:" + seconds + "," + Path.GetFileNameWithoutExtension(fileName) + "\r\n");

//mintest
Response.Write("<?wpl version=\"1.0\"?>\r\n");
Response.Write("<smil>\r\n");
Response.Write(" <head>\r\n");
Response.Write(" <meta name=\"Generator\" content=\"Microsoft Windows Media Player -- 10.0.0.3802\"/>\r\n");
Response.Write(" <author/>\r\n");
Response.Write(" <title>"+Path.GetFileNameWithoutExtension(fileName)+"</title>\r\n");
Response.Write(" </head>\r\n");
Response.Write(" <body>\r\n");
Response.Write(" <seq>\r\n");

string url = Request.Url.ToString().Replace(
Request.Url.Scheme + Uri.SchemeDelimiter + Request.Url.Authority,
Request.Url.Scheme + Uri.SchemeDelimiter + Request.Headers["Host"]);
Response.Write(url + "&mode=1\r\n");
//mintest
Response.Write(" <media src=\""+ url +"/>\r\n");
Response.Write(" </seq>\r\n");
Response.Write(" </body>\r\n");
Response.Write("</smil>\r\n");

but it still sends m3u files, do I have to somehow compile the .cs file before it is used? I couldnt open the csproj file in VS.net it said something about it cant find the server or something.. but I can view the webmin in IE ...
Please help!
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#532
2005-10-31, 10:38 PM
slx Wrote:I want to change alittle in Download.aspx.cs
private void Page_Load(object sender, System.EventArgs e)

but nothing happens
more exactly I want to send a .wpl file instead:
code:

Response.AddHeader("Content-Type", "video/x-ms-wmp");
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + Path.GetFileNameWithoutExtension(fileName) + ".wpl\"");
// Response.AddHeader("Content-Type", "audio/mpegurl");
// Response.AddHeader("Content-Disposition", "attachment; filename=\"" + Path.GetFileNameWithoutExtension(fileName) + ".m3u\"");
// Response.Write("#EXTM3U\r\n");
// Response.Write("#EXTINF:" + seconds + "," + Path.GetFileNameWithoutExtension(fileName) + "\r\n");

//mintest
Response.Write("<?wpl version=\"1.0\"?>\r\n");
Response.Write("<smil>\r\n");
Response.Write(" <head>\r\n");
Response.Write(" <meta name=\"Generator\" content=\"Microsoft Windows Media Player -- 10.0.0.3802\"/>\r\n");
Response.Write(" <author/>\r\n");
Response.Write(" <title>"+Path.GetFileNameWithoutExtension(fileName)+"</title>\r\n");
Response.Write(" </head>\r\n");
Response.Write(" <body>\r\n");
Response.Write(" <seq>\r\n");

string url = Request.Url.ToString().Replace(
Request.Url.Scheme + Uri.SchemeDelimiter + Request.Url.Authority,
Request.Url.Scheme + Uri.SchemeDelimiter + Request.Headers["Host"]);
Response.Write(url + "&mode=1\r\n");
//mintest
Response.Write(" <media src=\""+ url +"/>\r\n");
Response.Write(" </seq>\r\n");
Response.Write(" </body>\r\n");
Response.Write("</smil>\r\n");

but it still sends m3u files, do I have to somehow compile the .cs file before it is used? I couldnt open the csproj file in VS.net it said something about it cant find the server or something.. but I can view the webmin in IE ...
Please help!

Yep....you must comple the .cs file for that change to take effect. Do yo have IIS installed on you PC? You will need IIS installed to open the csproj file. When you click on that file it opens a session for the gbpvr web within IIS so that Visual Studio can work on the Web Project.

Any reason you want to change the file extension? If you want windows media to open the file just set the .m3u file type to windows media player.

I know one drawback in changing the association to Windows Media player will be video playback. It should be fine for MP3/WMA playback but video will not stream correctly. You must use VLC to stream the video. It allows playback as the data is streamed. Thus far all other players require the file you are looking to stream to be completly downloaded prior to playback starting. I believe that the MP3/WMA playback will also require a complete download prior to playing as well....but since the files are smaller it isn't as anoying.
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
superdad
Offline

Junior Member

Posts: 36
Threads: 8
Joined: Mar 2005
#533
2005-11-01, 01:46 AM
UncleJohnsBand Wrote:Note: For some reason it appears that it will only come up correcty in IE when hosted via IIS....not sure why.

I got it running through Apache and AFAIK everything is showing correctly.

http://gbpvr.com/pmwiki/pmwiki.php/Tips/SetupApacheCLI
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#534
2005-11-01, 02:02 AM
superdad Wrote:I got it running through Apache and AFAIK everything is showing correctly.

http://gbpvr.com/pmwiki/pmwiki.php/Tips/SetupApacheCLI

Can you edit/debug the project when it is hosted on Apache?
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
cubsfan
Offline

Member

Posts: 96
Threads: 2
Joined: Sep 2005
#535
2005-11-03, 02:51 AM
Any idea when the Web Admin Util will support all the Season recording options?
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#536
2005-11-03, 09:16 PM
cubsfan Wrote:Any idea when the Web Admin Util will support all the Season recording options?

sub hasn't added the methods to the public API....he was hoping to do it with the next release but he is running behind. We could look at doing a direct code of the process in the web admin but I hate to duplicate code and then have to either modify it to the API later or make changes to the exteranl routines so that they match what is offered in the API.

We just need to be patient.....I am sure it won't be too much longer. Wink
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
goelectric
Offline

Junior Member

Posts: 17
Threads: 1
Joined: Nov 2005
#537
2005-11-06, 11:04 AM
superdad Wrote:I got it running through Apache and AFAIK everything is showing correctly.

http://gbpvr.com/pmwiki/pmwiki.php/Tips/SetupApacheCLI
Hi,

Thanks for the great tip on how to get it running with Apache. It works fine if I delete the NativeUtilities.dll from the web/bin directory - but every time I run the GB-PVR config utility or re-start the recording service the NativeUtilities.dll file gets re-copied to the web/bin directory and the Apache web interface breaks unitl I manually delete the file again.

Is there a way of stopping the recording service re-start doing this?

Thanks

PS. On Windows XP with GB-PVR 0.94.13 and Apache2

Steve.
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#538
2005-11-06, 01:46 PM
The easiest is to probably copy what works into another folder, this way GB-PVR can do what it wants, but it doesn't affect the copy that you're running. You just need to remember to upgrade it manually when you upgrade the rest of GB-PVR.
goelectric
Offline

Junior Member

Posts: 17
Threads: 1
Joined: Nov 2005
#539
2005-11-06, 02:22 PM
normanr Wrote:The easiest is to probably copy what works into another folder, this way GB-PVR can do what it wants, but it doesn't affect the copy that you're running. You just need to remember to upgrade it manually when you upgrade the rest of GB-PVR.

Fantastic - thanks for the quick solution. Smile

In case its not obvious to others - here's what I did.

I copied my working
"C:\Program Files\devnz\gbpcr\web" folder (e.g without the NativeUtilities.dll in) to another directory ( in my case "D:\Program Files\devnz\gbpcr\web") then edited my httpd.conf to use the new copied folder instead of the original and it works great.

So here are the changed lines in my httpd.conf :-

AspNetMount /gbpvr "d:/Program Files/devnz/gbpvr/web"

Alias /gbpvr "d:/Program Files/devnz/gbpvr/web"

<Directory "d:/Program Files/devnz/gbpvr/web/bin">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>

<Directory "d:/Program Files/devnz/gbpvr/web">
Options FollowSymlinks Indexes Includes ExecCGI
Order allow,deny
Allow from all
DirectoryIndex login.aspx index.aspx default.htm default.aspx
</Directory>
kelloggz
Offline

Junior Member

Posts: 2
Threads: 0
Joined: Nov 2005
#540
2005-11-16, 10:18 PM
Hi. Is it possible to change the time-format to 24hr european one? i don't find something like this under configure.Thanks for answer.
« Next Oldest | Next Newest »

Users browsing this thread: 20 Guest(s)

Pages (161): « Previous 1 … 52 53 54 55 56 … 161 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  SQLite GUI-based admin & query building? Braklet 3 1,960 2006-10-30, 02:45 PM
Last Post: Braklet
  Recordings made via the Web Admin interface are at the wrong resolution! mmatheny 9 3,091 2006-08-04, 06:34 PM
Last Post: HtV
  Enhanced Web Admin Hobson 3 2,383 2006-06-09, 07:47 AM
Last Post: Hobson
  Enhanced Web Admin (Time Slice error?) SFX Group 2 1,833 2006-02-04, 08:10 PM
Last Post: normanr
  Web Admin suggested feature babybob 0 1,153 2006-01-31, 10:12 PM
Last Post: babybob
  Enhanced Web Admin Request psycik 1 1,341 2005-10-10, 08:16 PM
Last Post: UncleJohnsBand
  reoccuring + web admin aegisx 0 1,174 2005-01-25, 10:57 PM
Last Post: aegisx
  GBPVR Web Admin KingArgyle 8 4,077 2004-12-15, 03:01 AM
Last Post: KingArgyle

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

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

Linear Mode
Threaded Mode