XBMC Community Forum  

Go Back   XBMC Community Forum > Development > XBMC Development

XBMC Development Developers forums for XBMC related development. Programmers/Coders only!
No end-user support, no bug reports, and no feature/function requests here!
Please, add platform prefix for suggestions that are not platform-independent!:
Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]"

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-01-02, 23:52   #1
rtvguy
Junior Member
 
Join Date: Jan 2004
Posts: 18
rtvguy is on a distinguished road
Default

members of the xbmc team,

i have added a feature to xbmc requested by some that allows it to do streaming playback of shows recorded on a networked replaytv 4000/5000/5500 series. *i thought i would post here to get input on the best way to get this included in future versions of xbmc. *i assume that i should just add the necessary files and patches to the patch section on sf, but i wanted to go ahead and give a heads up here of what integrating this feature entails. *below is the readme file i am planning to include with the patches and source. *i appreciate any comments and assistance in getting this included and thanks for all your hard work on xbmc!

Quote:
************************************************** *************************
xbmc support for streaming shows from a replaytv by rtvguy
************************************************** *************************
this patch adds support for streaming shows recorded on a networked
replaytv 4000, 4500, 5000, or 5500 series pvr directly to xbmc for
playback. *this is accomplished by adding a new streaming protocol to xbmc
that i call the rtv protocol. *this protocol is implemented in a manner
similar to xbms in that most of the code rests in a dynamically-loaded
library called librtv. *the source code to this library is included in the
patch .zip file.

integrating this patch into the xbmc cvs should be fairly straightforward,
as described below.

************************************************** *************************
changed xbmc files:
************************************************** *************************
1) xbmc/application.cpp
the included application.cpp.patch file modifies this file to provide
support for loading the librtv library.

2) xbmc/filesystem/factorydirectory.cpp
the included factorydirectory.cpp.patch file modifies this file to add
support for the crtvdirectory class.

3) xbmc/filesystem/filefactory.cpp
the included filefactory.cpp.patch file modifies this file to add support
for the cfilertv class.

4) mplayer/mplayer.dll
the file libmpdemux/open.c in docs/mplayer_sourcecodepatch.rar must be
modified to add support for the rtv protocol.
specifically, the following line:
if (stricmp(url->protocol, "xmbs") &&
stricmp(url->protocol, "xns") &&
stricmp(url->protocol, "shout") &&
stricmp(url->protocol, "cdda") &&
stricmp(url->protocol, "smb") &&
stricmp(url->protocol, "iso9660") )
must be changed to:
if (stricmp(url->protocol, "xmbs") &&
stricmp(url->protocol, "xns") &&
stricmp(url->protocol, "shout") &&
stricmp(url->protocol, "cdda") &&
stricmp(url->protocol, "smb") &&
stricmp(url->protocol, "rtv") &&
stricmp(url->protocol, "iso9660") )

5) xbmc.vcproj
the included xbmc.vcproj.patch file modifies this file to add the files
rtvdirectory.h, rtvdirectory.cpp, filertv.h, and filertv.cpp to the xbmc
project and also suppresses preloading of the librtv library.

************************************************** *************************
added xbmc files:
************************************************** *************************
1)xbmc/filesystem/rtvdirectory.h
the interface for the crtvdirectory class.

2)xbmc/filesystem/rtvdirectory.cpp
the implementation of the crtvdirectory class.

3)xbmc/filesystem/filertv.h
the interface for the cfilertv class.

4)xbmc/filesystem/filertv.cpp
the implementation of the cfilertv class.

5) docs/librtv.rar
this file contains complete source code for the librtv library.

************************************************** *************************
added xbmc directories:
************************************************** *************************
1) xbmc/lib/librtv
this directory should contain the librtv binaries built from the source
code included in "docs/librtv.rar" (release: librtv.lib, debug:
librtvd.lib). *this directory should also include the *.h header files from
the "docs/librtv.rar" file.

************************************************** *************************
instructions for use:
************************************************** *************************
setting up rtv shares in a build of xbmc that includes support for them is
easy. *just add the necessary info under the <video> section of
xboxmediacenter.xml, much as you would for a relax or xbms share *there are
2 different kinds of shares, each with two different show listing formats.

share type #1 - manual rtv share

listing format a (preferred)
the following example will display a list of recordings by name (as
retrieved from the replayguide) for the replaytv with the ip address of
192.168.1.100.
* *<bookmark>
* * *<name>name of your choice</name>
* * *<path>rtv://192.168.1.100/</path> * *
* *</bookmark>
*
listing format b
the following example will display a list of recordings by *filename only*
for the replaytv with the ip address of 192.168.1.100. *this can be useful
if for some reason your replayguide cannot be properly parsed (all known
replayguide formats as of 01/04 should be supported).
* *<bookmark>
* * *<name>name of your choice</name>
* * *<path>rtv://192.168.1.100/video</path> * *
* *</bookmark>

share type #2 - automatic rtv share

listing format a (preferred)
the following example will attempt to automatically discover and list in
xbmc *all* replaytvs on your lan. *selecting a particular replaytv in the
list will then display its recordings by name as described above.
* *<bookmark>
* * *<name>name of your choice</name>
* * *<path>rtv://*/</path> * *
* *</bookmark>

listing format b
the following example will attempt to automatically discover and list in
xbmc *all* replaytvs on your lan. *selecting a particular replaytv in the
list will then display its recordings by *filename only* as described
above.
* *<bookmark>
* * *<name>name of your choice</name>
* * *<path>rtv://*/video</path> * *
* *</bookmark>
* *
that's it!
rtvguy is offline   Reply With Quote
Old 2004-01-03, 04:36   #2
Hullebulle
Fan
 
Join Date: Sep 2003
Posts: 1,972
Hullebulle is on a distinguished road
Default

i am not a dev and i don't have a replaytv, but this sounds veeery interesting.
__________________
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Hullebulle is offline   Reply With Quote
Old 2004-01-05, 17:32   #3
Gamester17
Team-XBMC Project Manager
 
Gamester17's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
Gamester17 will become famous soon enough
Thumbs up

cool, please submit the sourcecode on sourceforge (link here) and/or upload it here here (link) *
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Gamester17 is offline   Reply With Quote
Old 2004-01-06, 00:44   #4
rtvguy
Junior Member
 
Join Date: Jan 2004
Posts: 18
rtvguy is on a distinguished road
Default

thanks! i submitted the sourcecode to the sourceforge patches section for xbmc (sorry about the screwed up formatting in the description there as a result of my copy/paste). let me know if any additional explanation etc. is needed.
rtvguy is offline   Reply With Quote
Old 2004-01-08, 18:17   #5
cyberplague
Member
 
Join Date: Nov 2003
Posts: 68
cyberplague is on a distinguished road
Default

awesome work! can't wait till this gets merged into cvs!

keep xbmc rolling!

cp
cyberplague is offline   Reply With Quote
Old 2004-01-09, 00:42   #6
cyberplague
Member
 
Join Date: Nov 2003
Posts: 68
cyberplague is on a distinguished road
Default

any idea when this will be merged into cvs? *i have a replaytv and would love to test it out!

let me know,

cp
cyberplague is offline   Reply With Quote
Old 2004-01-09, 21:08   #7
Eraserhead
Junior Member
 
Join Date: Oct 2003
Posts: 2
Eraserhead is on a distinguished road
Default

fantastic news! :d
i too would be happy to test it.
Eraserhead is offline   Reply With Quote
Old 2004-01-09, 21:25   #8
tdfsu
Junior Member
 
Join Date: Jan 2004
Posts: 25
tdfsu is on a distinguished road
Default

ditto. i will test it too.

-jason.
tdfsu is offline   Reply With Quote
Old 2004-01-11, 20:37   #9
Frodo
Team MediaPortal
 
Join Date: Sep 2003
Posts: 509
Frodo is on a distinguished road
Default

sounds cool.
however can you upload the files changed entirely
instead of patches?

frodo



__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal
Frodo is offline   Reply With Quote
Old 2004-01-12, 02:07   #10
rtvguy
Junior Member
 
Join Date: Jan 2004
Posts: 18
rtvguy is on a distinguished road
Default

Quote:
Originally Posted by (frodo @ jan. 11 2004,12:37)
sounds cool.
however can you upload the files changed entirely
instead of patches?

frodo
no problem. *i uploaded an updated .zip file that includes the changed files at the sourceforge patch section for xbmc.
http://sourceforge.net/tracker....=581840

i noticed that changes have been made to the open.c file in mplayer_sourcecodepatch.rar since i last got it from cvs. *namely, part of the code that previously needed a slight modification to add rtv protocol support is now not compiled into the mplayer.dll binary due to mplayer_network not being defined. *so, currently no changes are needed there. *will that code be included again at some point in the future of xbmc? *just in case it will, i did include a modified open.c that includes the one-line change necessary for rtv protocol support.

please let me know if i can provide any other info that will assist in integrating this into cvs. *thanks!
rtvguy is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ReplayTV: Help with streaming from a ReplayTV box? jeffscott72 XBMC for Xbox Specific Support 114 2007-02-20 19:36
Dvb viewer streaming support? princi XBMC General Discussion 0 2005-03-14 00:42
Support for ReplayTV BallyK XBMC Feature Suggestions 1 2003-10-02 23:57
Streaming from ReplayTV Help meathook XBMC for Xbox Specific Support 8 1970-01-01 02:00


All times are GMT +2. The time now is 17:02.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project