Re: Intone-video problems!! Help !

2009-04-14 Thread Robin Paulson
2009/4/14 c_c cchan...@yahoo.com:
  Well, seeing that there was a need for a video playing front end for mplayer 
 - I thought I'll make a new app (based on Intone) that fulfills this need.

  Here are the problems I'm facing :-
 1. I finally found out that I can create 2 windows using elementary, 1 for 
 mplayer to play the video in (using -wid) and one for the controls. I've 
 sized the windows to 640x400 for the window where the video shows up and 
 640x80 for the controls.
   But I can't seem to get to see the main window (the one that has the 
 controls) at all. It works fine on my desktop - but I'm not using illume 
 there.


i think the config of illume on the neo forces windows to be
maximised, so even if your windows is 20 x 20, it will fill the whole
screen. either you need to modify this behaviour, or fit it all in one
window

i wanted to do a similar thing myself for an app i'm developing, but
any parameters to place/size windows are ignored, afaics

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread George Brooke
On Tuesday 14 April 2009 11:58:41 Robin Paulson wrote:
 2009/4/14 c_c cchan...@yahoo.com:
   Well, seeing that there was a need for a video playing front end for
  mplayer - I thought I'll make a new app (based on Intone) that fulfills
  this need.
 
   Here are the problems I'm facing :-
  1. I finally found out that I can create 2 windows using elementary, 1
  for mplayer to play the video in (using -wid) and one for the controls.
  I've sized the windows to 640x400 for the window where the video shows up
  and 640x80 for the controls. But I can't seem to get to see the main
  window (the one that has the controls) at all. It works fine on my
  desktop - but I'm not using illume there.

 i think the config of illume on the neo forces windows to be
 maximised, so even if your windows is 20 x 20, it will fill the whole
 screen. either you need to modify this behaviour, or fit it all in one
 window

 i wanted to do a similar thing myself for an app i'm developing, but
 any parameters to place/size windows are ignored, afaics
Maybe something could be done with dialogs - these don't seem to be maximised 
on my neo.

solar.george


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread Marcel
Am Dienstag, 14. April 2009 13:10:38 schrieb George Brooke:
 On Tuesday 14 April 2009 11:58:41 Robin Paulson wrote:
  2009/4/14 c_c cchan...@yahoo.com:
Well, seeing that there was a need for a video playing front end for
   mplayer - I thought I'll make a new app (based on Intone) that fulfills
   this need.
  
Here are the problems I'm facing :-
   1. I finally found out that I can create 2 windows using elementary, 1
   for mplayer to play the video in (using -wid) and one for the controls.
   I've sized the windows to 640x400 for the window where the video shows
   up and 640x80 for the controls. But I can't seem to get to see the main
   window (the one that has the controls) at all. It works fine on my
   desktop - but I'm not using illume there.
 
  i think the config of illume on the neo forces windows to be
  maximised, so even if your windows is 20 x 20, it will fill the whole
  screen. either you need to modify this behaviour, or fit it all in one
  window
 
  i wanted to do a similar thing myself for an app i'm developing, but
  any parameters to place/size windows are ignored, afaics

 Maybe something could be done with dialogs - these don't seem to be
 maximised on my neo.

But they still get centered afaik. What about splitting the window in two 
parts, one playing the video and one with the controls? Or does that interfere 
with your mplayer approach?

--
Marcel

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread c_c

Hi,

But they still get centered afaik. What about splitting the window in two 
parts, one playing the video and one with the controls?

Well, how do I do that? 
From what I understand, mplayer can take over a full window given it's id. I 
don't know how to make mplayer take over part of a window.
-- 
View this message in context: 
http://n2.nabble.com/Intone-video-problems%21%21-Help-%21-tp2632476p2632960.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread rakshat hooja



 Right now I have a proof of concept - but it's not controllable since I
 can't see the window with the controls. Otherwise I can see video in the
 window (slow and out of sync with sound) - but it's not too bad overall ;-)
 I thought it would be far worse.

  Hopefully, someone out there can help. Thanks.


Do you think it will be possible (and simpler) to have the controls come up
as a transparent layer/app on top of the playing video (like on tapping).
Why I thought of this is that sometime ago a transparent illume terminal/
keyboard thread was there on the list and the package worked. I will try to
look in the archives for the link.

Rakshat



-- 
--
Please use Firefox as your web browser. Its protects you from spyware and is
also a very feature rich browser.
www.firefox.com
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread Cameron Frazier
On Tue, Apr 14, 2009 at 9:12 AM, rakshat hooja raks...@gmail.com wrote:


 Right now I have a proof of concept - but it's not controllable since I
 can't see the window with the controls. Otherwise I can see video in the
 window (slow and out of sync with sound) - but it's not too bad overall ;-)
 I thought it would be far worse.

  Hopefully, someone out there can help. Thanks.


 Do you think it will be possible (and simpler) to have the controls come up
 as a transparent layer/app on top of the playing video (like on tapping).
 Why I thought of this is that sometime ago a transparent illume terminal/
 keyboard thread was there on the list and the package worked. I will try to
 look in the archives for the link.


Maybe something similar to what neon uses?  Simple non-animated controls?

Kind regards,

Cameron

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread Nicola Mfb
2009/4/14 c_c cchan...@yahoo.com:
[...]
 1. I finally found out that I can create 2 windows using elementary, 1 for 
 mplayer to play the video in (using -wid) and one for the controls. I've 
 sized the windows to 640x400 for the window where the video shows up and 
 640x80 for the controls.

May you use mplayer fullscreen and toggle to the controls window with
the AUX button (or a simple TS tap)?
The best would be to have a transparent windows with big icons to
pause/quit, ff and so on, very finger friendly

regards

Nicola

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread c_c

Hi,

On Tue, Apr 14, 2009 at 9:12 AM, rakshat hooja raks...@gmail.com wrote:

 Do you think it will be possible (and simpler) to have the controls come up
 as a transparent layer/app on top of the playing video (like on tapping).

Maybe something similar to what neon uses?  Simple non-animated controls?

 That would be ideal - but from what I understand - the sliding layer will be 
on the same window and I think the video will clash with it. The Illume bar 
gets all funky colors when I use it with the video playing.
 Also, there isn't anything like that in elementary yet.

 I thought of this, since it would be most apt, but I don't know how to 
implement it in elementary. I have a lot of limitations too ;-) which is why 
I'm asking questions here. 
-- 
View this message in context: 
http://n2.nabble.com/Intone-video-problems%21%21-Help-%21-tp2632476p2633169.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread Stefan Monnier
 From what I understand, mplayer can take over a full window given it's
 id.  I don't know how to make mplayer take over part of a window.

IIUC the window id passed to mplayer does not have to be
a top-level window.


Stefan


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread Thomas Seiler
Hi c_c,

thanks for bringing another superb app to the neo!

I'm not an X11 expert, just trying to answer some of your questions
here... If I babble nonsense, please correct me.

 1. I finally found out that I can create 2 windows using elementary,
 1 for mplayer to play the video in (using -wid) and one for the controls.
 I've sized the windows to 640x400 for the window where the video
 shows up and 640x80 for the controls. But I can't seem to get to
 see the main window (the one that has the controls) at all. It
 works fine on my desktop - but I'm not using illume there.

The problem is that your windows will end up stacked ontop of each other, and
here is why:

In X11, you do normally not position your windows on the screen. You have a
separate process, the window manager or WM, that takes care of this task.
That way, the user can finetune the behaviour of this desktop in one place,
instead of having to tune each and every app separately.

When you create a new window, the window manager will be consulted and will
come up with the best position/size for that new window. It will also draw some
decorations around it (border, titlebar, icons), so you have a consistent look.

On your desktop, where you have plenty of space, the best policy for the WM
is to arrange windows such that they don't overlap too much. On the neo
however, where screen space is a premium, the default strategy is to maximize
and center each window and forget about the borders, titlebars and stuff...

Both of your windows will simply be maximized and the one you create later will
end up on top of the stack. That way, you loose your controls.

 2. The video playing window is centered on the screen. Is there a way I can
 set the positions of these window's? Or do I need to look for a different 
 solution.

There is a way to have absolute control over the window by overriding the
window manager:

   EAPI void ecore_evas_override_set(Ecore_Evas* ee, Evas_Bool
override);

or in elementary:

   EAPI void elm_win_override_set(Evas_Object *obj, Evas_Bool override);

If you do this, the WM won't touch your window, and you will have to position
and size it yourself. Be aware though, that you also will have to take into
account any bars (taskbar / titlebar etc...) as you now work with raw
screen coords.
Usually, you have a normal window that is placed in the usual way by the wm.
You learn it's size and raw coordinates on screen and place the
overridden window
such that it fits inside.

 3. Is there a way to embed a window in the main window of an elementary app?

There is the elementary inwin. But this is not a X11 window with it's own wid.
As far as I know, there is currently no elementary widget for this.

 4. As far as I can see, mplayer uses the entire window (whose handle is
 passed to it with wid) to play the video. Or is it possible to have it use 
 only
 part of the window?

Not that I know. But what you can do, is to create a second X11 window, with
the override bit set. Position it manually, based on the co-ordinates of your
main window, and hand its wid to mplayer. the WM won't add any decoration
to it, thanks to the override bit, and mplayer will fill it with the
movie, so the
second window should not be recognizable as a window.

You should be able to get the position and sitze of your main elm_win using
something like this:

   EAPI void  evas_object_geometry_get  (const
Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w,
Evas_Coord *h);

Then you can simply create a second elm_win with the right coordinates, and
set the override bit _before_ you make the window visible.

Hope this helps...

Cheers,
Thomas


-- 
Excercise 17:
If the human brain was simple enough for us to understand we'd be so
simple we couldn't understand.
Prove this by induction.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Intone-video problems!! Help !

2009-04-14 Thread Thomas Seiler
 The best would be to have a transparent windows with big icons to
 pause/quit, ff and so on, very finger friendly

Hm, if you want to get fancy, there is a way to have windows of any shape
that are always on top as far as the window manager is concerned.

Check out:

   EAPI void ecore_evas_shaped_set(Ecore_Evas* ee, Evas_Bool shaped);

or in elementary:

   EAPI void elm_win_shaped_set(Evas_Object *obj, Evas_Bool shaped);

This is really really super slow on the neo, and it might not even work with
mplayer overlay windows. But normally, you would be able to make arbitrary
shaped windows. (Check out the elementary-test app, there is a transparency
test using this...)

You might also get some inspiration from this proof-of-concept keyboard code:
http://svn.om.vptt.ch/trunk/bubble-keyboard/src/bin/bubble-keyboard.c

Hope this is useful...

Cheers,
Thomas

-- 
Excercise 17:
If the human brain was simple enough for us to understand we'd be so
simple we couldn't understand.
Prove this by induction.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community