amineelar / android-vlc-remote

Automatically exported from code.google.com/p/android-vlc-remote
GNU General Public License v3.0
0 stars 0 forks source link

cannot access navigation controls on tablet #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.press up icon for browser
2.navigate to root, long click DVD drive to play
3.

What is the expected output? What do you see instead?
DVD menu shows, but cannot enable navigation controls. Tablet has no dial pad.

What version of VLC Remote are you using?
0.4.3

What version of VLC are you using?
1.1.8

What version of Android are you using?
Cyanigen mod 7.0.2

Which Android device are you using?
Nook color

Please provide any additional information below.
This is a very good remote, I suggest adding the ability to toggle keyboard and 
toggle navigation controls to the menu. That should provide an alternate access 
to full screen phones and tablets.

Original issue reported on code.google.com by beandel...@gmail.com on 10 May 2011 at 7:09

GoogleCodeExporter commented 9 years ago
Nooby android dev, but I hacked together a version that includes all of these 
controls as a proof of concept using downloaded source. I copied the image 
files already used and modified nav.xml like this:

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <TableRow>
      <ImageButton
                android:id="@+id/button_nav_up"
                android:src="@drawable/ic_nav_up"
              android:layout_column="1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
    </TableRow>
    <TableRow>
      <ImageButton
                android:id="@+id/button_nav_left"
                android:src="@drawable/ic_nav_left"
              android:layout_column="0"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
      <ImageButton
                android:id="@+id/button_nav_activate"
                android:src="@drawable/ic_nav_activate"
              android:layout_column="1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
      <ImageButton
                android:id="@+id/button_nav_right"
                android:src="@drawable/ic_nav_right"
              android:layout_column="2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
    </TableRow>
    <TableRow>
      <ImageButton
                android:id="@+id/button_nav_down"
                android:src="@drawable/ic_nav_down"
              android:layout_column="1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
    </TableRow>
    <TableRow>
      <ImageButton
                android:id="@+id/button_dvd_left"
                android:src="@drawable/dvd_chapter_backward"
              android:layout_column="0"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
      <ImageButton
                android:id="@+id/button_dvd_activate"
                android:src="@drawable/dvd_menu"
              android:layout_column="1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
      <ImageButton
                android:id="@+id/button_dvd_right"
                android:src="@drawable/dvd_chapter_forward"
              android:layout_column="2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
    </TableRow>
</TableLayout>

and I added this code (along with declarations and initializations for new 
buttons) in PlayBackActivity.java:

// DLB new code to handle navigation buttons
/*
Activate key-nav-activate Enter 
Navigate up key-nav-up Up 
Navigate down key-nav-down Down 
Navigate left key-nav-left Left 
Navigate right key-nav-right Right 
Go to the DVD menu key-disc-menu Shift-m 
Select previous DVD title key-title-prev Shift-o 
Select next DVD title key-title-next Shift-b 
Select prev DVD chapter key-chapter-prev Shift-p
Select next DVD chapter key-chapter-next Shift-n 
*/
 else if (v == mButtonNavUp) {
            command("command=key&val=nav-up");
        }
 else if (v == mButtonNavDown) {
            command("command=key&val=nav-down");
        }
 else if (v == mButtonNavLeft) {
            command("command=key&val=nav-left");
        }
 else if (v == mButtonNavRight) {
            command("command=key&val=nav-right");
        }
 else if (v == mButtonNavSel) {
            command("command=key&val=nav-activate");
        }
 else if (v == mButtonDVDChapBack) {
            command("command=key&val=chapter-prev");
        }
 else if (v == mButtonDVDChapForward) {
            command("command=key&val=chapter-next");
        }
 else if (v == mButtonDVDMenu) {
            command("command=key&val=disc-menu");
        }

The results work well for controlling DVD menus without a d-pad but debouncing 
may be needed on some buttons. Since I am completely new to android development 
and just a hack at Java I do not know if there is a way to use nav.xml as a 
pop-up overlay. Right now I just included it so it displays permanently (which 
is fine on my tablet but would be a problem on a phone). If this could be 
popped up from the menu I think a button set like this would be a useful 
enhancement..

Original comment by beandel...@gmail.com on 12 May 2011 at 3:47

GoogleCodeExporter commented 9 years ago
Finally figured out how to get a screenshot of the proof of concept..

Original comment by beandel...@gmail.com on 12 May 2011 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
Looking at the screenshots I realized this layout would not work for phones. I 
cobbled up an alternative that you may be able to use on any screen regardless 
of its size (maybe). Basically I created a DVD_PLAYER.XML layout where I 
replaced the album art image with the DVD controls and I added a button to each 
to toggle the layout in use. I haven't looked at the landscape side yet, but 
the portrait looks like this...

Original comment by beandel...@gmail.com on 17 May 2011 at 1:55

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
pics

Original comment by beandel...@gmail.com on 17 May 2011 at 2:06

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mr.bald...@gmail.com on 4 Jul 2011 at 1:55

GoogleCodeExporter commented 9 years ago
The next version will have gesture-based DVD menu navigation.

Original comment by mr.bald...@gmail.com on 18 Jul 2011 at 5:25

GoogleCodeExporter commented 9 years ago
Please try 
https://android-vlc-remote.googlecode.com/files/android-vlc-remote-0.5.0.apk in 
the meantime.

Original comment by mr.bald...@gmail.com on 18 Jul 2011 at 5:54