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 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

32
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?

33
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?

34
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


35
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()'

36
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

37
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

38
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. */

39
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


40
Users / Re: Best Approach to Controlling a Network Device
« on: December 02, 2013, 01:08:13 am »
This is this section below?
Quote
/*
            AUTO-GENERATED SECTION
            Do not change the declarations
   */

   /*
         *****DATA***** accessors inherited from base class
   int DATA_Get_TCP_Port();
   string DATA_Get_TCP_Address();
   string DATA_Get_Mount_Point();

         *****EVENT***** accessors inherited from base class

Can I just call it as below for example

char url[100] = "http://%s:%d/jsonrpc";
char xbmc_url[100];
sprintf(xbmc_url,url,DATA_Get_TCP_Address(),DATA_Get_TCP_Port());

41
Users / Re: Best Approach to Controlling a Network Device
« on: November 30, 2013, 09:36:11 pm »
Questions

1: In the .cpp file, I see in the LTHDXDXS_Streaming.cpp, the following type of constructor is not there, should I remove the one generated for me
   a:The constructor when the class is created as an embedded instance within another stand-alone device
   b:Is this required pluto_pthread_mutex_t m_RokuMutex, seeing it in the implementation file, doing ,m_RokuMutex("roku") and the m_RokuMutex.Init(NULL)
2: In my xbmc.h and xbmc.cpp, I have to use the namespace DCE and put the class creation within.
3: Do I have to put anything in the constructor or simple do it in the GetConfig, where it says to put the initialization of your code there.
4: The Device Data, TCP address and TCP port, how or where do I get this value, is it string ServerAddress in the standalone constructore

See the 2 generated .h and .cpp files and the xbmc .h and .cpp files



42
Users / Re: Best Approach to Controlling a Network Device
« on: November 30, 2013, 01:11:07 am »
Na XBMC not running on a MD, its totally other hardware.

I was thinking to use the mount in Device data, to send the configure share as at present I access LNMCE shares through SMB, NFS did not work, maybe this may changes, NFS may work, just wanted to have the option if required. This has to be manually entered, as there is currently no command in my understanding to get the mount points from XBMC or even set any.

Thanks for the pointers.

43
Users / Re: Best Approach to Controlling a Network Device
« on: November 29, 2013, 10:31:00 am »
Thanks, forgot to attach a print out of the template also.

How off or close am I?

44
Users / Re: Best Approach to Controlling a Network Device
« on: November 29, 2013, 12:09:13 am »
Thanks

See attached, screen shot of template for device.

I get the menu navigation and media ctrl.

Is there a command group which can be chosen for playing a video file or audio file from LNMCE as below, thus I pass the file as below, well not the SMB stuff, but /home/public/videos/....mkv, and which can be sent.

"{\"jsonrpc\": \"2.0\", \"method\": \"Player.Open\", \"params\": { \"item\": { \"file\": \"smb://DCEROUTER/public/videos/2.73 TB (sdb1) WDC_WD30EFRX-68 [71]/Transformers Dark of the Moon (2011).mkv\"} , \"options\":{ \"resume\":true } }, \"id\": 1}"


45
Users / Re: Best Approach to Controlling a Network Device
« on: November 27, 2013, 11:50:58 pm »
I was looking to start creating the device, so read the Developing a DCE Device and looking to proceed.

Hi tschak909

What is the device template number for the ROKU STREAMER, wanted to check it out for a guide or any similar device.

Trying to sort out some stuff, like control by, etc, want to look at a similar example.

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