Testing my build now... my grandfather on my father's side passed... so was away for a bit in FL, will post my build source soon for others to test and overview... looking good.
Eric
Eric
Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
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.
Show posts Menu
/****************************************************************************
**
** lmcebrowser beta2 0810 3/15/10
**
****************************************************************************/
#include <QtGui>
#include "mainwindow.h"
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
MainWindow *browser = new MainWindow;
browser->show();
return app.exec();
}
/****************************************************************************
**
** lmcebrowser beta 2 0810
**
****************************************************************************/
#include <QtGui>
#include <QtWebKit>
#include "mainwindow.h"
MainWindow::MainWindow()
{
progress = 0;
QFile file;
file.setFileName(":/jquery.min.js");
file.open(QIODevice::ReadOnly);
jQuery = file.readAll();
file.close();
view = new QWebView(this);
view->load(QUrl("http://wiki.linuxmce.com"));
connect(view, SIGNAL(loadFinished(bool)), SLOT(adjustLocation()));
connect(view, SIGNAL(titleChanged(const QString&)), SLOT(adjustTitle()));
connect(view, SIGNAL(loadProgress(int)), SLOT(setProgress(int)));
connect(view, SIGNAL(loadFinished(bool)), SLOT(finishLoading(bool)));
setCentralWidget(view);
}
void MainWindow::adjustTitle()
{
if (progress <= 0 || progress >= 100)
setWindowTitle(view->title());
else
setWindowTitle(QString("%1 (%2%)").arg(view->title()).arg(progress));
}
void MainWindow::setProgress(int p)
{
progress = p;
adjustTitle();
}
void MainWindow::finishLoading(bool)
{
progress = 100;
adjustTitle();
view->page()->mainFrame()->evaluateJavaScript(jQuery);
}
/****************************************************************************
**
** lmcebrowser 3/15/10
**
****************************************************************************/
#include <QtGui>
class QWebView;
class QLineEdit;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
protected slots:
void adjustTitle();
void setProgress(int p);
void finishLoading(bool);
private:
QString jQuery;
QWebView *view;
QLineEdit *locationEdit;
int progress;
};
Lets establish if the standard linkages for media drives are in place. First get the device number of your drive. Now from a terminal session:
# ls -al /mnt/device
You should see a list of disk devices in there that are just a number. One number per device, and one of the should be the number you noted above. For instance if the device number is 30, then....
drwxrwxrwx root root 0 2009-08-15 20:15 30
The first bit are the permissions and ownership - check these are the same as above. (drwxrwxrwx root root) Now...
sudo su -
# ssh moonXX
# cd /mnt/device
is your device there? mines not
# mount /mnt/device/30
I then needed to symlink (i know it a bad idea to mess with... but there are none setup on my MD's so adding basically i played my media that won't work)
I get File Not Found: /home/public/data/other/Windows Share [28]/Videos/movie.avi...
So i move on MD to /home/public/data...
I have no other... i
# Mkdir other
same for Windows Share
# mkdir windows/ Share/ [30]
then finally
ln
# ln -s /mnt/device/30/Video/ /home/public/data/other/Windows\ Share\ \[30\]/
08 01/16/10 20:24:43.138 Parameter 37(Keep Column Header): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.138 Parameter 49(Add Up-Down Arrows): 1 <0x6ec9eb90>
08 01/16/10 20:24:43.138 Parameter 73(Seek): <0x6ec9eb90>
08 01/16/10 20:24:43.138 Parameter 74(Offset): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Received Message from 21 (^[[36;1mOnScreen Orbiter / Core^[[0m) to 6 (^
[[36;1mDatagrid Plug-in / Core^[[0m), type 1 id 35 Command:^[[35;1mPopulate Datagrid^[[0m, retry none, parameters:
<0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 4(PK_Variable): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 5(Value To Assign): <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 10(ID): 101 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 15(DataGrid ID): plist_21 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 38(PK_DataGrid): 18 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 39(Options): 32,21,3278.0.0,,1 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 40(IsSuccessful): 1 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 44(PK_DeviceTemplate): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 60(Width): 1 <0x6ec9eb90>
08 01/16/10 20:24:43.245 Parameter 61(Height): 10 <0x6ec9eb90>
05 01/16/10 20:24:43.246 ^[[33;1mNo stream on orbiter: 21^[[0m <0x934e7b90>
05 01/16/10 20:24:43.246 ^[[33;1mThe message was not from an orbiter or it doesn't have a media
stream on it!^[[0m <0x934e7b90>
08 01/16/10 20:24:43.249 Received Message from 21 (^[[36;1mOnScreen Orbiter / Core^[[0m) to 6 (^
[[36;1mDatagrid Plug-in / Core^[[0m), type 1 id 34 Command:^[[35;1mRequest Datagrid Contents^[[0m, retry none,
parameters: <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 10(ID): 102 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 15(DataGrid ID): plist_21 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 32(Row): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 33(Column): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 34(Row count): 10 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 35(Column count): 1 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 36(Keep Row Header): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 37(Keep Column Header): 0 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 49(Add Up-Down Arrows): 1 <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 73(Seek): <0x6ec9eb90>
08 01/16/10 20:24:43.249 Parameter 74(Offset): 0 <0x6ec9eb90>
05 01/16/10 20:24:43.284 ^[[33;1mStream ID 1006 is not mapped to a media stream object^[[0m
<0x82cc6b90>
07 01/16/10 20:24:43.284 Event #12 has no handlers <0x82cc6b90>
07 01/16/10 20:24:43.284 Received Message from 36 (^[[36;1mXine Player / Bedroom (Master)^[[0m) to
-1001 (^[[36;1munknown / ^[[0m), type 2 id 12 Event:^[[32;1mPlayback Completed^[[0m, retry none, parameters:
<0x82cc6b90>
07 01/16/10 20:24:43.284 Parameter 4(MRL): <0x82cc6b90>
07 01/16/10 20:24:43.284 Parameter 9(Stream ID): 1006 <0x82cc6b90>
07 01/16/10 20:24:43.284 Parameter 37(With Errors): 1 <0x82cc6b90>
05 01/16/10 20:24:39.439 ^[[33;1mXine_Player::CMD_Play_Media() called for id 1006 filename: /home/public/data/videos/Already Dead .avi ()^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.476 ^[[33;1mXine_Player::CMD_Play_Media() stopping PSS^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.557 ^[[33;1mXine_Player::EVENT_Playback_Completed(streamID=1002)^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.557 ^[[33;1mXineStreamEventListener called on non-initialized stream - aborting command^[[0m <0xb19ffb90>
05 01/16/10 20:24:39.563 ^[[33;1mDestroyed stream with ID=1002^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.623 ^[[33;1mCreated new stream with ID=1006 deint 0 100 0^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.623 ^[[33;1mXine_Player::CMD_Play_Media() set stream 1006 as last rendering to screen.^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.623 ^[[33;1mXine_Player::CMD_Play_Media() called for id 1006 filename: /home/public/data/videos/Already Dead .avi () with corresponding stream 0xb41402a0.^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.625 ^[[33;1mOpening media without chapters/title position: 'file:///home/public/data/videos/Already Dead .avi' ^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.626 ^[[33;1mReceived XINE_EVENT_UI_MESSAGE, decoding:^[[0m <0xb09fdb90>
01 01/16/10 20:24:39.626 ^[[31;1mXine_Player::SendMessageToOrbiter sent message: File not found: /home/public/data/videos/Already Dead .avi^[[0m <0xb09fdb90>
05 01/16/10 20:24:39.626 ^[[33;1mMessage details: XINE_MSG_FILE_NOT_FOUND: file:///home/public/data/videos/Already Dead .avi^[[0m <0xb09fdb90>
05 01/16/10 20:24:39.626 ^[[33;1mOpening media FAILED^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.636 ^[[33;1mXine_Stream::OpenMedia failed! Aborting!^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.636 ^[[33;1mXine_Player::CMD_Play_Media() Failed to open media^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.636 ^[[33;1mXine_Player::CMD_Play_Media() ended for filename: /home/public/data/videos/Already Dead .avi with stream 0xb41402a0.^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.637 ^[[33;1mXine_Player::CMD_Stop_Media() with corresponding stream id 1006 0xb41402a0.^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.637 ^[[33;1mXine_Stream::changePlaybackSpeed no running seekers found^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.637 ^[[33;1mXine_Player::EVENT_Playback_Completed(streamID=1006)^[[0m <0xb6e5fb90>
05 01/16/10 20:24:39.637 ^[[33;1mXineStreamEventListener called on non-initialized stream - aborting command^[[0m <0xb09fdb90>
05 01/16/10 20:24:39.643 ^[[33;1mClosed stream AV with ID=1006^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.015 ^[[33;1mXine_Player::CMD_Set_Media_Position() called for filename: ( CHAPTER:0 POS:9880 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:5276000) with stream 0xb41402a0.^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.015 ^[[33;1mXine_Player::CMD_Play_Media() called for id 1006 filename: ( CHAPTER:0 POS:9880 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:5276000)^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.016 ^[[33;1mXine_Player::CMD_Play_Media() stopping PSS^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.016 ^[[33;1mXine_Player::CMD_Play_Media() set stream 1006 as last rendering to screen.^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.016 ^[[33;1mXine_Player::CMD_Play_Media() called for id 1006 filename: ( CHAPTER:0 POS:9880 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:5276000) with corresponding stream 0xb41402a0.^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.018 ^[[33;1mOpening media with chapters/title position: '/0.0' ^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.018 ^[[33;1mReceived XINE_EVENT_UI_MESSAGE, decoding:^[[0m <0xaffffb90>
01 01/16/10 20:24:43.018 ^[[31;1mXine_Player::SendMessageToOrbiter sent message: File not found: ^[[0m <0xaffffb90>
05 01/16/10 20:24:43.018 ^[[33;1mMessage details: XINE_MSG_FILE_NOT_FOUND: /0.0^[[0m <0xaffffb90>
05 01/16/10 20:24:43.018 ^[[33;1mOpening media FAILED^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.028 ^[[33;1mOpening media without chapters/title position: 'file://' ^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.314 ^[[33;1mOpening media FAILED^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.315 ^[[33;1mXine_Stream::OpenMedia failed! Aborting!^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.315 ^[[33;1mXine_Player::CMD_Play_Media() Failed to open media^[[0m <0xb6e5fb90>
05 01/16/10 20:24:43.315 ^[[33;1mXine_Player::CMD_Play_Media() ended for filename: with stream 0xb41402a0.^[[0m <0xb6e5fb90>