Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - CentralMedia

Pages: 1 2 [3] 4 5 ... 8
31
Users / Re: Best Approach to Controlling a Network Device
« on: December 10, 2013, 12:24:45 am »
Ok thanks

Getting some errors when I try compiling the existing code, see below, code attached

Quote
linuxmce@dcerouter:~/CodingWork/LINUXMCE/src/Xbmc_Plugin$ make so
g++ -c -I.. -I../DCE -I/usr/include/mysql -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES  -Wall -fPIC -ggdb3  Xbmc_Plugin.cpp -o Xbmc_Plugin.o
In file included from Xbmc_Plugin.cpp:17:
Xbmc_Plugin.h:77: error: ISO C++ forbids declaration of ‘XbmcMediaStream’ with no type
Xbmc_Plugin.h:77: error: expected ‘;’ before ‘*’ token
Xbmc_Plugin.cpp: In member function ‘virtual bool DCE::Xbmc_Plugin::Register()’:
Xbmc_Plugin.cpp:94: error: ‘DEVICETEMPLATE_Xbmc_Player_CONST’ was not declared in this scope
Xbmc_Plugin.cpp: In member function ‘virtual DCE::MediaStream* DCE::Xbmc_Plugin::CreateMediaStream(DCE::MediaHandlerInfo*, int, std::vector<DCE::EntertainArea*, std::allocator<DCE::EntertainArea*> >&, DCE::MediaDevice*, int, std::deque<MediaFile*, std::allocator<MediaFile*> >*, int)’:
Xbmc_Plugin.cpp:232: error: ‘XbmcMediaStream’ was not declared in this scope
Xbmc_Plugin.cpp:232: error: ‘pXbmcMediaStream’ was not declared in this scope
Xbmc_Plugin.cpp:252: error: ‘DEVICETEMPLATE_Xbmc_Player_CONST’ was not declared in this scope
Xbmc_Plugin.cpp:276: error: expected type-specifier before ‘XbmcMediaStream’
Xbmc_Plugin.cpp:276: error: expected ‘;’ before ‘XbmcMediaStream’
Xbmc_Plugin.cpp: At global scope:
Xbmc_Plugin.cpp:285: error: expected constructor, destructor, or type conversion before ‘*’ token
../Media_Plugin/MediaListGrid.h:117: warning: ‘bool FileBrowserInfoComparer(FileBrowserInfo*, FileBrowserInfo*)’ defined but not used
../Media_Plugin/MediaListGrid.h:134: warning: ‘bool FileBrowserInfoComparerLastViewed(FileBrowserInfo*, FileBrowserInfo*)’ defined but not used
make: *** [Xbmc_Plugin.o] Error 1

32
Users / Re: Best Approach to Controlling a Network Device
« on: December 07, 2013, 02:56:45 pm »
Yes I did, see attached, copied from the one you had, plan to try compiling later when I reach home

Also, from the plugin, could you access the device data, for example IP, PORT, MOUNT in my case?

33
Users / Re: Best Approach to Controlling a Network Device
« on: December 05, 2013, 09:40:44 pm »
My humble attempt at the plugin, will try and compile later if I reach home early

Comment of course welcomed


34
Users / Re: Best Approach to Controlling a Network Device
« on: December 05, 2013, 04:39:29 pm »
Ok thanks.

Did the work on the others, have to augment the register. Also created a XbmcMediaStream based on PandoraMediaStream, cope and pasted

Question
The pXbmcMediaStream->m_iPK_MediaType, well really m_iPK_MediaType, this is going to reference the media types I enter within the DB, 4 and 5?

Just making sure, want to do a check on media type so I choose the appropriate share point for XBMC.

Also, would I be able to referrence any of the Device Data from the XBMC template, for example the mount?

35
Users / Re: Best Approach to Controlling a Network Device
« on: December 03, 2013, 11:32:40 pm »
Ok, created the template for the plugin, generated the code, but it does not fully looking like Xine or Pandora, etc.

See attached, is this as expected?

Just time for me to edit, well using from the others where applicable, LOL

36
Users / Re: Best Approach to Controlling a Network Device
« on: December 03, 2013, 09:56:21 am »
Ok, later this evening when I get home, will join that irc.

To report now, got it to work, see output below, basic navigation

Quote
linuxmce@dcerouter:~/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE$ ./XBMC_MEDIA_CENTRE -d 74
XBMC_MEDIA_CENTRE, v.<=version=>
Visit www.plutohome.com for source code and license information

01      12/03/13 4:52:18.038            Config XBMC URL Successful, URL: http://192.168.80.155:80/jsonrpc <0xb77be6f0>
01      12/03/13 4:53:04.011            Command Left Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0","                                      result":"OK"} <0xb6fbcb70>
01      12/03/13 4:53:09.015            Command Left Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0","                                      result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"} <0xb6fbcb70>
01      12/03/13 4:53:14.958            Command Right Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0",                                      "result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"} <0xb6fbcb70>
01      12/03/13 4:54:04.959            Command Back Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0","                                      result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"} <0                                      xb6fbcb70>
01      12/03/13 4:54:19.241            Command Down Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0","                                      result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"i                                      d":1,"jsonrpc":"2.0","result":"OK"} <0xb6fbcb70>
01      12/03/13 4:54:25.720            Command Right Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0",                                      "result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"                                      id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"} <0xb6fbcb70>
01      12/03/13 4:54:29.583            Command Right Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0",                                      "result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"                                      id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"} <0xb6fbcb70>
01      12/03/13 4:54:35.506            Command Select/Enter Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc"                                      :"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":                                      "OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"js                                      onrpc":"2.0","result":"OK"} <0xb6fbcb70>
01      12/03/13 4:54:45.563            Command Back Successful: {"id":1,"jsonrpc":"2.0","result":"pong"}{"id":1,"jsonrpc":"2.0","                                      result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"i                                      d":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"}{"id":1,"jsonrpc":"                                      2.0","result":"OK"}{"id":1,"jsonrpc":"2.0","result":"OK"} <0xb6fbcb70>

37
Users / Re: Best Approach to Controlling a Network Device
« on: December 03, 2013, 01:59:32 am »
Tried adding the to core or core/hybrid, but am getting an error when putting in the device number see attachment.

Also attached a print screen of the template existing

38
Users / Re: Best Approach to Controlling a Network Device
« on: December 03, 2013, 12:57:08 am »
Cool, was making some changes, and declared the m_pxbmc in the  XBMC_MEDIA_CENTRE.h and then XBMC_MEDIA_CENTRE.cpp.cpp, fix that and re-compiled no warning. Actually got the default constructor, working in the constructor of XBMC_MEDIA_CENTRE.cpp, which was giving an error before and working in the GetConfig

Quote
make all
g++ -shared -o XBMC_MEDIA_CENTRE.so Main.o xbmc.o XBMC_MEDIA_CENTRE.o ../Gen_Devices/XBMC_MEDIA_CENTREBase.o  -L../lib  -lmysqlclient_r -lcurl -lSerializeClass -lDCECommon -lPlutoUtils -lpthread
cp XBMC_MEDIA_CENTRE.so ../bin
chmod +x post_make.sh
./post_make.sh XBMC_MEDIA_CENTRE.so

Left testing, can I test without creating a device as in Developing a DCE Device?

39
Users / Re: Best Approach to Controlling a Network Device
« on: December 03, 2013, 12:36:29 am »
Got it to work, made an edit to below

Quote
sources = Main.cpp xbmc.cpp XBMC_MEDIA_CENTRE.cpp $(Gen_Dev_Files)

Got this, seems I have some warnings now, will look and see how to fix it

Quote
linuxmce@dcerouter:~/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE$ make all
Computing dependencies for xbmc.cpp done
g++ -c -I.. -I../DCE -I/usr/include/mysql -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES  -Wall -fPIC -ggdb3  xbmc.cpp -o xbmc.o
xbmc.cpp: In function ‘size_t DCE::m_writeDataXbmc(char*, size_t, size_t, void*)’:
xbmc.cpp:95: warning: comparison between signed and unsigned integer expressions
g++ -o XBMC_MEDIA_CENTRE Main.o xbmc.o XBMC_MEDIA_CENTRE.o ../Gen_Devices/XBMC_MEDIA_CENTREBase.o  -L../lib  -lmysqlclient_r -lcurl -lSerializeClass -lDCECommon -lPlutoUtils -lpthread
cp XBMC_MEDIA_CENTRE ../bin
./post_make.sh XBMC_MEDIA_CENTRE
g++ -shared -o XBMC_MEDIA_CENTRE.so Main.o xbmc.o XBMC_MEDIA_CENTRE.o ../Gen_Devices/XBMC_MEDIA_CENTREBase.o  -L../lib  -lmysqlclient_r -lcurl -lSerializeClass -lDCECommon -lPlutoUtils -lpthread
cp XBMC_MEDIA_CENTRE.so ../bin
chmod +x post_make.sh
./post_make.sh XBMC_MEDIA_CENTRE.so


Can I test the device without creating it in LNMCE?

40
Users / Re: Best Approach to Controlling a Network Device
« on: December 02, 2013, 10:59:13 pm »
I believe I did, see attached and the additional files


41
Users / Re: Best Approach to Controlling a Network Device
« on: December 02, 2013, 10:45:11 pm »
Then I mess something up somewhere, this is just part of the error I am getting, I already linked curl see the compile options before the error
Quote
g++ -o XBMC_MEDIA_CENTRE Main.o XBMC_MEDIA_CENTRE.o ../Gen_Devices/XBMC_MEDIA_CENTREBase.o  -L../lib  -lmysqlclient_r -lcurl -lSerializeClass -lDCECommon -lPlutoUtils -lpthread

Error part I am getting

Quote
XBMC_MEDIA_CENTRE.o: In function `DCE::XBMC_MEDIA_CENTRE::CMD_Move_Right(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, DCE::Message*)':
/home/linuxmce/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE/XBMC_MEDIA_CENTRE.cpp:762: undefined reference to `DCE::xbmc::commandToXbmc(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/home/linuxmce/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE/XBMC_MEDIA_CENTRE.cpp:763: undefined reference to `DCE::xbmc::getCurlOutCome()'
/home/linuxmce/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE/XBMC_MEDIA_CENTRE.cpp:770: undefined reference to `DCE::xbmc::getCurlError()'
XBMC_MEDIA_CENTRE.o: In function `DCE::XBMC_MEDIA_CENTRE::CMD_Back_Prior_Menu(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, DCE::Message*)':
/home/linuxmce/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE/XBMC_MEDIA_CENTRE.cpp:799: undefined reference to `DCE::xbmc::commandToXbmc(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/home/linuxmce/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE/XBMC_MEDIA_CENTRE.cpp:800: undefined reference to `DCE::xbmc::getCurlOutCome()'
/home/linuxmce/CodingWork/LINUXMCE/src/XBMC_MEDIA_CENTRE/XBMC_MEDIA_CENTRE.cpp:807: undefined reference to `DCE::xbmc::getCurlError()'

42
Users / Re: Best Approach to Controlling a Network Device
« on: December 02, 2013, 10:35:35 pm »
Would the same apply for the xbmc.cpp file, as I am getting undefined reference

43
Users / Re: Best Approach to Controlling a Network Device
« on: December 02, 2013, 10:30:04 pm »
Testing some edits, trying to compile, how would I pass the following to compile command I see below, to link curl

Quote
-lcurl

What I am seeing when doing the make all

Quote
g++ -c -I.. -I../DCE -I/usr/include/mysql -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES  -Wall -fPIC -ggdb3  XBMC_MEDIA_CENTRE.cpp -o XBMC_MEDIA_CENTRE.o

44
Users / Re: Best Approach to Controlling a Network Device
« on: December 02, 2013, 05:40:39 pm »
Ok thanks

Another question
In below, the between the StreamID  and MediaURL, can I am assuming that the MediaURL will hold the file in my video/audio library, will this include a part or just the file name eg <Iron man.mkv>?
Quote
/** @brief COMMAND: #37 - Play Media */
   /** This command will instruct a Media Player to play a media stream identified by a media descriptor created by the "Create Media" command. */
      /** @param #29 PK_MediaType */
         /** The type of media */
      /** @param #41 StreamID */
         /** The media that we need to play. */
      /** @param #42 MediaPosition */
         /** The position at which we need to start playing. */
      /** @param #59 MediaURL */
         /** The file to play, or other media id.  The format is specific on the media type and the media player. */

45
Users / Re: Best Approach to Controlling a Network Device
« on: December 02, 2013, 12:23:47 pm »
In the XBMC_MEDIA_CENTRE::GetConfig(), I see the following lines, is it that the functions DATA_* mentioned peviously, are only available after this GetConfig() is run?
Quote
// Put your code here to initialize the data in this class
   // The configuration parameters DATA_ are now populated


Pages: 1 2 [3] 4 5 ... 8