You can subscribe to this list here.
2007 |
Jan
(36) |
Feb
(79) |
Mar
(123) |
Apr
(95) |
May
(119) |
Jun
(172) |
Jul
(124) |
Aug
(100) |
Sep
(83) |
Oct
(52) |
Nov
(97) |
Dec
(87) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(131) |
Feb
(80) |
Mar
(163) |
Apr
(178) |
May
(73) |
Jun
(54) |
Jul
(106) |
Aug
(118) |
Sep
(50) |
Oct
(125) |
Nov
(100) |
Dec
(99) |
2009 |
Jan
(104) |
Feb
(99) |
Mar
(68) |
Apr
(81) |
May
(52) |
Jun
(87) |
Jul
(67) |
Aug
(33) |
Sep
(27) |
Oct
(37) |
Nov
(60) |
Dec
(116) |
2010 |
Jan
(82) |
Feb
(79) |
Mar
(38) |
Apr
(50) |
May
(45) |
Jun
(53) |
Jul
(23) |
Aug
(86) |
Sep
(22) |
Oct
(96) |
Nov
(97) |
Dec
(73) |
2011 |
Jan
(24) |
Feb
(45) |
Mar
(28) |
Apr
(31) |
May
(42) |
Jun
(25) |
Jul
|
Aug
(12) |
Sep
(28) |
Oct
(13) |
Nov
(43) |
Dec
(13) |
2012 |
Jan
(62) |
Feb
(28) |
Mar
(6) |
Apr
(16) |
May
(7) |
Jun
|
Jul
(16) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
2013 |
Jan
(5) |
Feb
|
Mar
(34) |
Apr
(9) |
May
(6) |
Jun
(10) |
Jul
(32) |
Aug
(8) |
Sep
(11) |
Oct
(35) |
Nov
(24) |
Dec
(22) |
2014 |
Jan
(44) |
Feb
(9) |
Mar
(9) |
Apr
(15) |
May
(25) |
Jun
(34) |
Jul
(16) |
Aug
(11) |
Sep
(7) |
Oct
(6) |
Nov
(1) |
Dec
(12) |
2015 |
Jan
(33) |
Feb
(19) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(5) |
From: <kro...@us...> - 2011-01-27 15:34:06
|
Revision: 4082 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4082&view=rev Author: kroko_koenig Date: 2011-01-27 15:34:00 +0000 (Thu, 27 Jan 2011) Log Message: ----------- change zip packer Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj.user trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.cs trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb.suo trunk/plugins/BrowseTheWeb/Source/Skybound.Gecko/Skybound.Gecko.suo Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj 2011-01-27 08:09:30 UTC (rev 4081) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj 2011-01-27 15:34:00 UTC (rev 4082) @@ -53,6 +53,11 @@ <HintPath>..\..\..\..\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\HtmlAgilityPack.dll</HintPath> <Private>False</Private> </Reference> + <Reference Include="Ionic.Zip, Version=1.7.2.18, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\Program Files\Team MediaPortal\MediaPortal\Ionic.Zip.dll</HintPath> + <Private>False</Private> + </Reference> <Reference Include="Skybound.Gecko, Version=1.9.1.1, Culture=neutral, PublicKeyToken=3209ac31600d1857, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\..\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\Skybound.Gecko.dll</HintPath> Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj.user =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj.user 2011-01-27 08:09:30 UTC (rev 4081) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj.user 2011-01-27 15:34:00 UTC (rev 4082) @@ -1,7 +1,7 @@ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <StartAction>Program</StartAction> - <StartProgram>C:\Program Files\Team MediaPortal\MediaPortal\Mediaportal.exe</StartProgram> + <StartProgram>C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe</StartProgram> </PropertyGroup> <PropertyGroup> <ProjectView>ProjectFiles</ProjectView> Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2011-01-27 08:09:30 UTC (rev 4081) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2011-01-27 15:34:00 UTC (rev 4082) @@ -1,7 +1,7 @@ -#region Copyright (C) 2005-2010 Team MediaPortal +#region Copyright (C) 2005-2011 Team MediaPortal /* - * Copyright (C) 2005-2010 Team MediaPortal + * Copyright (C) 2005-2011 Team MediaPortal * http://www.team-mediaportal.com * * This Program is free software; you can redistribute it and/or modify @@ -175,7 +175,15 @@ public override bool Init() { - Xpcom.Initialize(Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\xulrunner"); + try + { + Xpcom.Initialize(Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\xulrunner"); + } + catch (Exception ex) + { + MyLog.debug("Could not find xulrunner under : " + Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\xulrunner"); + MyLog.debug("Reason : " + ex.Message); + } #region add forms webBrowser = new GeckoWebBrowser(); @@ -412,9 +420,18 @@ } } + public override bool OnMessage(GUIMessage message) + { + Console.WriteLine("message :" + message.Label); + return base.OnMessage(message); + } + public override void OnAction(Action action) { - base.OnAction(action); + if (linkId != string.Empty) + GUIPropertyManager.SetProperty("#btWeb.linkid", "Link ID = " + linkId); + else + GUIPropertyManager.SetProperty("#btWeb.linkid", linkId); #region remote diagnostic if (remote) @@ -540,45 +557,44 @@ case Action.ActionType.ACTION_PLAY: case Action.ActionType.ACTION_MUSIC_PLAY: OnEnterNewLink(); - break; + return; case Action.ActionType.ACTION_PAUSE: webBrowser.Navigate(homepage); MyLog.debug("load home page " + homepage); if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "go to homepage"); - break; + return; case Action.ActionType.ACTION_STOP: webBrowser.Navigate("about:blank"); if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "Stop"); - break; + return; case Action.ActionType.ACTION_PREV_ITEM: case Action.ActionType.ACTION_REWIND: webBrowser.GoBack(); if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "go backward"); MyLog.debug("navigate go back"); - break; + return; case Action.ActionType.ACTION_NEXT_ITEM: case Action.ActionType.ACTION_FORWARD: webBrowser.GoForward(); if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "go forward"); MyLog.debug("navigate go forward"); - break; + return; case Action.ActionType.ACTION_RECORD: OnAddBookmark(); - break; + return; #region move case Action.ActionType.ACTION_MOVE_RIGHT: OnMoveRight(); - break; + return; case Action.ActionType.ACTION_MOVE_LEFT: OnMoveLeft(); - break; + return; case Action.ActionType.ACTION_MOVE_UP: OnMoveUp(); - break; + return; case Action.ActionType.ACTION_MOVE_DOWN: - OnMoveDown(); - break; + return; case Action.ActionType.ACTION_SELECT_ITEM: if (mouse.Visible) { @@ -587,16 +603,11 @@ int y = GUIGraphicsContext.form.Location.Y + mouse.Location.Y + 50; System.Windows.Forms.Cursor.Position = new Point(x, y); } - break; + return; #endregion } - if (linkId != string.Empty) - GUIPropertyManager.SetProperty("#btWeb.linkid", "Link ID = " + linkId); - else - GUIPropertyManager.SetProperty("#btWeb.linkid", linkId); + } - - } private void webBrowser_DomKeyDown(object sender, GeckoDomKeyEventArgs e) { if (useMouse) @@ -945,6 +956,7 @@ } #endregion } + #region reset zoom if (zoomPage) { Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.cs 2011-01-27 08:09:30 UTC (rev 4081) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.cs 2011-01-27 15:34:00 UTC (rev 4082) @@ -1,7 +1,7 @@ -#region Copyright (C) 2005-2010 Team MediaPortal +#region Copyright (C) 2005-2011 Team MediaPortal /* - * Copyright (C) 2005-2010 Team MediaPortal + * Copyright (C) 2005-2011 Team MediaPortal * http://www.team-mediaportal.com * * This Program is free software; you can redistribute it and/or modify @@ -34,7 +34,10 @@ using System.IO; using Skybound.Gecko; +using Ionic.Zip; + using MediaPortal.Configuration; +using MediaPortal.GUI.Library; namespace BrowseTheWeb { @@ -56,33 +59,48 @@ InitializeComponent(); #region create xulrunner if needed - string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\xulrunner"; - string dirCache = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Cache); - try + string zipToUnpack = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Cache) + "\\xulrunner.zip"; + string unpackDirectory = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config); + + if (File.Exists(zipToUnpack)) { - if (!Directory.Exists(dir)) + Log.Debug("BrowseTheWeb | zip found : " + zipToUnpack, new object[0]); + try { - System.Diagnostics.ProcessStartInfo procStartInfo = - new System.Diagnostics.ProcessStartInfo("cmd", "/c unzip.exe -o xulrunner -d ../"); - procStartInfo.WorkingDirectory = dirCache; + using (ZipFile zip1 = ZipFile.Read(zipToUnpack)) + { + foreach (ZipEntry e in zip1) + { + e.Extract(unpackDirectory, true); + } + } + Log.Debug("BrowseTheWeb | unpack finished to " + unpackDirectory, new object[0]); + } + catch (Exception ex) + { + Log.Debug("BrowseTheWeb | Exception : " + ex.Message, new object[0]); + } + } - procStartInfo.RedirectStandardOutput = true; - procStartInfo.UseShellExecute = false; + #endregion - procStartInfo.CreateNoWindow = true; + string plugins = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Plugins); - System.Diagnostics.Process proc = new System.Diagnostics.Process(); - proc.StartInfo = procStartInfo; - proc.Start(); + FileInfo info = new FileInfo(plugins + "\\Windows\\HtmlAgilityPack.dll"); + Log.Debug("BrowseTheWeb | HtmlAgilityPack: " + info.CreationTime); - string result = proc.StandardOutput.ReadToEnd(); - } + info = new FileInfo(plugins + "\\Windows\\Skybound.Gecko.dll.dll"); + Log.Debug("BrowseTheWeb | Skybound.Gecko.dll: " + info.CreationTime); + + try + { + Xpcom.Initialize(Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\xulrunner"); } - catch { } - #endregion - - Xpcom.Initialize(Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\xulrunner"); + catch (Exception ex) + { + Log.Debug("BrowseTheWeb | Exception on init Xpcom : " + ex.Message, new object[0]); + } } private void Setup_Load(object sender, EventArgs e) Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb.suo =================================================================== (Binary files differ) Modified: trunk/plugins/BrowseTheWeb/Source/Skybound.Gecko/Skybound.Gecko.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-27 08:09:39
|
Revision: 4081 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4081&view=rev Author: kroko_koenig Date: 2011-01-27 08:09:30 +0000 (Thu, 27 Jan 2011) Log Message: ----------- rename all gfx to have more skin, add support for huge dbs, fix UTF8? Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/list_item.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_album.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_artist.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_results.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_song.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playingnow.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/splash.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/playingnow.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicAlbum.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicArtist.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicTab.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ReceiveDbHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowPlaying/NowPlaying.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/splash.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/MediaScannerNotifier.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/SAX_Parser.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/SomeUtils.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_launcher_icon.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_back.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_backward.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_channel_m.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_channel_p.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_document.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_down.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_forward.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_fullscreen.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_home.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_info.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_left.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_logo.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_menu.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_minus.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_music.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_now_playing.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_osd.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_pause.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_pictures.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_play.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_plugins.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_plus.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_power.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_radio.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_ratio.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_remote.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_right.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_select.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_skip_backward.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_skip_forward.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_stop.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_subtitles.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_up.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_video.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_vol_m.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_vol_p.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_weather.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_border.ico trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_cdcover.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_file_audio.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_file_folder.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_file_folderback.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_file_movie.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_file_picture.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_skin1_splash.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_album.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_album_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_album_on.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_artist.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_artist_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_artist_on.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_music.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_music_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_music_on.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_song.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_song_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab_song_on.png Removed Paths: ------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/album.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/album_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/artist.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/artist_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/audio.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/back.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/border.ico trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/cdcover.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/channel_m.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/channel_p.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/document.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/down.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/exit.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/folder.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/folderback.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/foldertab.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/foldertab_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/forward.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/hibernate.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/home.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab1.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab2.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab3.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_tab4.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/icon.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/info.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/left.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/logo.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_music.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_now_playing.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_pictures.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_remote.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_settings.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_video.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/menu.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/movie.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/music.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/mute.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/now_playing.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/pause.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/picture.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/pictures.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/play.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/plugins.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/power_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/remote.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/restart.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/rewind.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/right.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_play.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_back.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_forw.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/select.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/select2.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/settings.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/skip_back.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/skip_forward.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/song.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/song_off.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/splash.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/splash02.jpg trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/stop.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/suspend.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/up.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/video.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/volume_m.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/volume_p.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/wake_on_lan.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/menu/music_menu.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/menu/picturefullscreenmenu.xml Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-25 20:18:10 UTC (rev 4080) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-27 08:09:30 UTC (rev 4081) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mediaportal.remote" android:versionName="1.1" android:versionCode="1"> - <application android:icon="@drawable/icon" + <application android:icon="@drawable/ic_launcher_icon" android:theme="@android:style/Theme.NoTitleBar" android:debuggable="true" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-25 20:18:10 UTC (rev 4080) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-27 08:09:30 UTC (rev 4081) @@ -14,233 +14,220 @@ public static final class attr { } public static final class drawable { - public static final int album=0x7f020000; - public static final int album_off=0x7f020001; - public static final int artist=0x7f020002; - public static final int artist_off=0x7f020003; - public static final int audio=0x7f020004; - public static final int back=0x7f020005; - public static final int border=0x7f020006; - public static final int cdcover=0x7f020007; - public static final int channel_m=0x7f020008; - public static final int channel_p=0x7f020009; - public static final int document=0x7f02000a; - public static final int down=0x7f02000b; - public static final int empty=0x7f02000c; - public static final int exit=0x7f02000d; - public static final int folder=0x7f02000e; - public static final int folderback=0x7f02000f; - public static final int foldertab=0x7f020010; - public static final int foldertab_off=0x7f020011; - public static final int forward=0x7f020012; - public static final int hibernate=0x7f020013; - public static final int home=0x7f020014; - public static final int ic_tab=0x7f020015; - public static final int ic_tab1=0x7f020016; - public static final int ic_tab2=0x7f020017; - public static final int ic_tab3=0x7f020018; - public static final int ic_tab4=0x7f020019; - public static final int icon=0x7f02001a; - public static final int info=0x7f02001b; - public static final int left=0x7f02001c; - public static final int logo=0x7f02001d; - public static final int main_music=0x7f02001e; - public static final int main_now_playing=0x7f02001f; - public static final int main_pictures=0x7f020020; - public static final int main_remote=0x7f020021; - public static final int main_settings=0x7f020022; - public static final int main_video=0x7f020023; - public static final int menu=0x7f020024; - public static final int movie=0x7f020025; - public static final int music=0x7f020026; - public static final int mute=0x7f020027; - public static final int n_asr=0x7f020028; - public static final int n_full=0x7f020029; - public static final int n_menu=0x7f02002a; - public static final int n_osd=0x7f02002b; - public static final int n_sub=0x7f02002c; - public static final int now_playing=0x7f02002d; - public static final int pause=0x7f02002e; - public static final int picture=0x7f02002f; - public static final int pictures=0x7f020030; - public static final int play=0x7f020031; - public static final int plugins=0x7f020032; - public static final int power_off=0x7f020033; - public static final int remote=0x7f020034; - public static final int restart=0x7f020035; - public static final int rewind=0x7f020036; - public static final int right=0x7f020037; - public static final int sel_play=0x7f020038; - public static final int sel_skp_back=0x7f020039; - public static final int sel_skp_forw=0x7f02003a; - public static final int select=0x7f02003b; - public static final int select2=0x7f02003c; - public static final int settings=0x7f02003d; - public static final int skip_back=0x7f02003e; - public static final int skip_forward=0x7f02003f; - public static final int song=0x7f020040; - public static final int song_off=0x7f020041; - public static final int splash=0x7f020042; - public static final int splash02=0x7f020043; - public static final int stop=0x7f020044; - public static final int suspend=0x7f020045; - public static final int up=0x7f020046; - public static final int video=0x7f020047; - public static final int volume_m=0x7f020048; - public static final int volume_p=0x7f020049; - public static final int wake_on_lan=0x7f02004a; + public static final int empty=0x7f020000; + public static final int ic_launcher_icon=0x7f020001; + public static final int ic_menu_skin1_back=0x7f020002; + public static final int ic_menu_skin1_backward=0x7f020003; + public static final int ic_menu_skin1_channel_m=0x7f020004; + public static final int ic_menu_skin1_channel_p=0x7f020005; + public static final int ic_menu_skin1_document=0x7f020006; + public static final int ic_menu_skin1_down=0x7f020007; + public static final int ic_menu_skin1_forward=0x7f020008; + public static final int ic_menu_skin1_fullscreen=0x7f020009; + public static final int ic_menu_skin1_home=0x7f02000a; + public static final int ic_menu_skin1_info=0x7f02000b; + public static final int ic_menu_skin1_left=0x7f02000c; + public static final int ic_menu_skin1_logo=0x7f02000d; + public static final int ic_menu_skin1_menu=0x7f02000e; + public static final int ic_menu_skin1_minus=0x7f02000f; + public static final int ic_menu_skin1_music=0x7f020010; + public static final int ic_menu_skin1_now_playing=0x7f020011; + public static final int ic_menu_skin1_osd=0x7f020012; + public static final int ic_menu_skin1_pause=0x7f020013; + public static final int ic_menu_skin1_pictures=0x7f020014; + public static final int ic_menu_skin1_play=0x7f020015; + public static final int ic_menu_skin1_plugins=0x7f020016; + public static final int ic_menu_skin1_plus=0x7f020017; + public static final int ic_menu_skin1_power=0x7f020018; + public static final int ic_menu_skin1_radio=0x7f020019; + public static final int ic_menu_skin1_ratio=0x7f02001a; + public static final int ic_menu_skin1_remote=0x7f02001b; + public static final int ic_menu_skin1_right=0x7f02001c; + public static final int ic_menu_skin1_select=0x7f02001d; + public static final int ic_menu_skin1_skip_backward=0x7f02001e; + public static final int ic_menu_skin1_skip_forward=0x7f02001f; + public static final int ic_menu_skin1_stop=0x7f020020; + public static final int ic_menu_skin1_subtitles=0x7f020021; + public static final int ic_menu_skin1_up=0x7f020022; + public static final int ic_menu_skin1_video=0x7f020023; + public static final int ic_menu_skin1_vol_m=0x7f020024; + public static final int ic_menu_skin1_vol_p=0x7f020025; + public static final int ic_menu_skin1_weather=0x7f020026; + public static final int ic_skin1_border=0x7f020027; + public static final int ic_skin1_cdcover=0x7f020028; + public static final int ic_skin1_file_audio=0x7f020029; + public static final int ic_skin1_file_folder=0x7f02002a; + public static final int ic_skin1_file_folderback=0x7f02002b; + public static final int ic_skin1_file_movie=0x7f02002c; + public static final int ic_skin1_file_picture=0x7f02002d; + public static final int ic_skin1_splash=0x7f02002e; + public static final int ic_tab_album=0x7f02002f; + public static final int ic_tab_album_off=0x7f020030; + public static final int ic_tab_album_on=0x7f020031; + public static final int ic_tab_artist=0x7f020032; + public static final int ic_tab_artist_off=0x7f020033; + public static final int ic_tab_artist_on=0x7f020034; + public static final int ic_tab_music=0x7f020035; + public static final int ic_tab_music_off=0x7f020036; + public static final int ic_tab_music_on=0x7f020037; + public static final int ic_tab_song=0x7f020038; + public static final int ic_tab_song_off=0x7f020039; + public static final int ic_tab_song_on=0x7f02003a; } public static final class id { - public static final int GridView01=0x7f070014; - public static final int ImageView01=0x7f07001d; - public static final int LinearLayout00=0x7f070050; - public static final int LinearLayout01=0x7f070024; - public static final int LinearLayout02=0x7f07005b; - public static final int LinearLayout03=0x7f070065; - public static final int LinearLayout04=0x7f07006f; - public static final int LinearLayout05=0x7f070075; - public static final int ListView01=0x7f070032; - public static final int Spinner01=0x7f070080; - public static final int SurfaceView01=0x7f070023; - public static final int TableLayout01=0x7f070006; - public static final int TableLayout02=0x7f070041; - public static final int TableRow01=0x7f070007; - public static final int TableRow02=0x7f070046; - public static final int TableRow03=0x7f07004b; - public static final int TextView01=0x7f070003; - public static final int TextView02=0x7f070004; - public static final int btnIpSettings=0x7f070082; - public static final int btnSelDown=0x7f07001a; - public static final int btnSelUp=0x7f07001b; - public static final int btn_main_music=0x7f070009; - public static final int btn_main_now_playing=0x7f07000c; - public static final int btn_main_pictures=0x7f070008; - public static final int btn_main_play=0x7f070010; - public static final int btn_main_remote=0x7f07000b; - public static final int btn_main_settings=0x7f07000d; - public static final int btn_main_skp_back=0x7f07000f; - public static final int btn_main_skp_forw=0x7f070011; - public static final int btn_main_video=0x7f07000a; - public static final int btnkey01=0x7f070051; - public static final int btnkey02=0x7f070052; - public static final int btnkey03=0x7f070053; - public static final int btnkey04=0x7f070054; - public static final int btnkey05=0x7f070055; - public static final int btnkey06=0x7f070056; - public static final int btnkey07=0x7f070057; - public static final int btnkey08=0x7f070058; - public static final int btnkey09=0x7f070059; - public static final int btnkey10=0x7f07005a; - public static final int btnkey11=0x7f07005c; - public static final int btnkey12=0x7f07005d; - public static final int btnkey13=0x7f07005e; - public static final int btnkey14=0x7f07005f; - public static final int btnkey15=0x7f070060; - public static final int btnkey16=0x7f070061; - public static final int btnkey17=0x7f070062; - public static final int btnkey18=0x7f070063; - public static final int btnkey19=0x7f070064; - public static final int btnkey20=0x7f070066; - public static final int btnkey21=0x7f070067; - public static final int btnkey22=0x7f070068; - public static final int btnkey23=0x7f070069; - public static final int btnkey24=0x7f07006a; - public static final int btnkey25=0x7f07006b; - public static final int btnkey26=0x7f07006c; - public static final int btnkey27=0x7f07006d; - public static final int btnkey28=0x7f07006e; - public static final int btnkey29=0x7f070070; - public static final int btnkey30=0x7f070071; - public static final int btnkey31=0x7f070072; - public static final int btnkey32=0x7f070073; - public static final int btnkey33=0x7f070074; - public static final int btnkey41=0x7f070076; - public static final int btnkey42=0x7f070077; - public static final int btnkey43=0x7f070078; - public static final int btnkey44=0x7f070079; - public static final int btnkey45=0x7f07007a; - public static final int btnkey46=0x7f07007b; - public static final int btnkey47=0x7f07007c; - public static final int btnkey48=0x7f07007d; - public static final int btnkey49=0x7f07007e; - public static final int btnkey50=0x7f07007f; - public static final int button_open=0x7f070020; - public static final int button_stream=0x7f070021; - public static final int button_stream_stop=0x7f070022; - public static final int clearplaylist=0x7f07008f; - public static final int crtl_back=0x7f07003e; - public static final int crtl_ch_m=0x7f07004a; - public static final int crtl_ch_p=0x7f070045; - public static final int crtl_down=0x7f07003d; - public static final int crtl_full=0x7f070047; - public static final int crtl_info=0x7f07004f; - public static final int crtl_left=0x7f070038; - public static final int crtl_menu=0x7f070049; - public static final int crtl_mp=0x7f070034; - public static final int crtl_osd=0x7f07004e; - public static final int crtl_parent=0x7f07003c; - public static final int crtl_play=0x7f070048; - public static final int crtl_power=0x7f070036; - public static final int crtl_ratio=0x7f07004d; - public static final int crtl_right=0x7f07003a; - public static final int crtl_select=0x7f070039; - public static final int crtl_skip_back=0x7f070042; - public static final int crtl_skip_forw=0x7f070044; - public static final int crtl_stop=0x7f070043; - public static final int crtl_sub=0x7f07004c; - public static final int crtl_up=0x7f070035; - public static final int crtl_vol_m=0x7f070040; - public static final int crtl_vol_p=0x7f07003f; - public static final int full_text=0x7f07001c; - public static final int icon_image=0x7f070001; - public static final int icon_text=0x7f070002; - public static final int list_album=0x7f070016; - public static final int list_artist=0x7f070017; - public static final int list_result=0x7f070018; - public static final int list_song=0x7f070019; - public static final int main_now_playing=0x7f07000e; - public static final int music_grid=0x7f070015; - public static final int now_album=0x7f070026; - public static final int now_artist=0x7f07002c; - public static final int now_cd=0x7f070027; - public static final int now_list=0x7f070031; - public static final int now_next=0x7f070030; - public static final int now_play=0x7f07002f; - public static final int now_playing=0x7f070025; - public static final int now_playing_right=0x7f07002a; - public static final int now_playing_t_left=0x7f070029; - public static final int now_prev=0x7f07002d; - public static final int now_progress=0x7f070028; - public static final int now_stop=0x7f07002e; - public static final int now_title=0x7f07002b; - public static final int open=0x7f070092; - public static final int playlist=0x7f07008e; - public static final int radio01=0x7f070089; - public static final int radio02=0x7f07008a; - public static final int radio03=0x7f07008b; - public static final int radio04=0x7f07008c; - public static final int radioStop=0x7f07008d; - public static final int rslide=0x7f070095; - public static final int save=0x7f070091; - public static final int sdcard=0x7f070090; - public static final int send=0x7f070093; - public static final int server_ip=0x7f070085; - public static final int server_macid=0x7f070087; - public static final int server_name=0x7f070084; - public static final int server_port=0x7f070086; - public static final int slide=0x7f070094; - public static final int text_kb_streamed=0x7f07001e; - public static final int title=0x7f070088; - public static final int txtDirectory=0x7f070013; - public static final int txtFile=0x7f07001f; - public static final int txtInstance=0x7f070005; - public static final int txtIntanceName=0x7f070083; - public static final int vibration=0x7f070081; - public static final int widget0=0x7f070012; - public static final int widget00=0x7f070033; - public static final int widget01=0x7f070037; - public static final int widget02=0x7f07003b; - public static final int widget44=0x7f070000; + public static final int GridView01=0x7f060014; + public static final int ImageView01=0x7f060027; + public static final int LinearLayout00=0x7f06005a; + public static final int LinearLayout01=0x7f06002e; + public static final int LinearLayout02=0x7f060065; + public static final int LinearLayout03=0x7f06006f; + public static final int LinearLayout04=0x7f060079; + public static final int LinearLayout05=0x7f06007f; + public static final int ListView01=0x7f06003c; + public static final int Spinner01=0x7f06008a; + public static final int SurfaceView01=0x7f06002d; + public static final int TableLayout01=0x7f060006; + public static final int TableLayout02=0x7f06004b; + public static final int TableRow01=0x7f060007; + public static final int TableRow02=0x7f060050; + public static final int TableRow03=0x7f060055; + public static final int TextView01=0x7f060003; + public static final int TextView02=0x7f060004; + public static final int btnAlbumSelDown=0x7f060017; + public static final int btnAlbumSelUp=0x7f060019; + public static final int btnArtistSelDown=0x7f06001b; + public static final int btnArtistSelUp=0x7f06001d; + public static final int btnIpSettings=0x7f06008c; + public static final int btnResultSelDown=0x7f06001f; + public static final int btnResultSelUp=0x7f060021; + public static final int btnSongSelDown=0x7f060023; + public static final int btnSongSelUp=0x7f060025; + public static final int btn_main_music=0x7f060009; + public static final int btn_main_now_playing=0x7f06000c; + public static final int btn_main_pictures=0x7f060008; + public static final int btn_main_play=0x7f060010; + public static final int btn_main_plugins=0x7f06000d; + public static final int btn_main_remote=0x7f06000b; + public static final int btn_main_skp_back=0x7f06000f; + public static final int btn_main_skp_forw=0x7f060011; + public static final int btn_main_video=0x7f06000a; + public static final int btnkey01=0x7f06005b; + public static final int btnkey02=0x7f06005c; + public static final int btnkey03=0x7f06005d; + public static final int btnkey04=0x7f06005e; + public static final int btnkey05=0x7f06005f; + public static final int btnkey06=0x7f060060; + public static final int btnkey07=0x7f060061; + public static final int btnkey08=0x7f060062; + public static final int btnkey09=0x7f060063; + public static final int btnkey10=0x7f060064; + public static final int btnkey11=0x7f060066; + public static final int btnkey12=0x7f060067; + public static final int btnkey13=0x7f060068; + public static final int btnkey14=0x7f060069; + public static final int btnkey15=0x7f06006a; + public static final int btnkey16=0x7f06006b; + public static final int btnkey17=0x7f06006c; + public static final int btnkey18=0x7f06006d; + public static final int btnkey19=0x7f06006e; + public static final int btnkey20=0x7f060070; + public static final int btnkey21=0x7f060071; + public static final int btnkey22=0x7f060072; + public static final int btnkey23=0x7f060073; + public static final int btnkey24=0x7f060074; + public static final int btnkey25=0x7f060075; + public static final int btnkey26=0x7f060076; + public static final int btnkey27=0x7f060077; + public static final int btnkey28=0x7f060078; + public static final int btnkey29=0x7f06007a; + public static final int btnkey30=0x7f06007b; + public static final int btnkey31=0x7f06007c; + public static final int btnkey32=0x7f06007d; + public static final int btnkey33=0x7f06007e; + public static final int btnkey41=0x7f060080; + public static final int btnkey42=0x7f060081; + public static final int btnkey43=0x7f060082; + public static final int btnkey44=0x7f060083; + public static final int btnkey45=0x7f060084; + public static final int btnkey46=0x7f060085; + public static final int btnkey47=0x7f060086; + public static final int btnkey48=0x7f060087; + public static final int btnkey49=0x7f060088; + public static final int btnkey50=0x7f060089; + public static final int button_open=0x7f06002a; + public static final int button_stream=0x7f06002b; + public static final int button_stream_stop=0x7f06002c; + public static final int crtl_back=0x7f060048; + public static final int crtl_ch_m=0x7f060054; + public static final int crtl_ch_p=0x7f06004f; + public static final int crtl_down=0x7f060047; + public static final int crtl_full=0x7f060051; + public static final int crtl_info=0x7f060059; + public static final int crtl_left=0x7f060042; + public static final int crtl_menu=0x7f060053; + public static final int crtl_mp=0x7f06003e; + public static final int crtl_osd=0x7f060058; + public static final int crtl_parent=0x7f060046; + public static final int crtl_play=0x7f060052; + public static final int crtl_power=0x7f060040; + public static final int crtl_ratio=0x7f060057; + public static final int crtl_right=0x7f060044; + public static final int crtl_select=0x7f060043; + public static final int crtl_skip_back=0x7f06004c; + public static final int crtl_skip_forw=0x7f06004e; + public static final int crtl_stop=0x7f06004d; + public static final int crtl_sub=0x7f060056; + public static final int crtl_up=0x7f06003f; + public static final int crtl_vol_m=0x7f06004a; + public static final int crtl_vol_p=0x7f060049; + public static final int full_text=0x7f060026; + public static final int icon_image=0x7f060001; + public static final int icon_text=0x7f060002; + public static final int list_album=0x7f060016; + public static final int list_artist=0x7f06001a; + public static final int list_result=0x7f06001e; + public static final int list_song=0x7f060022; + public static final int main_instance=0x7f060005; + public static final int main_now_playing=0x7f06000e; + public static final int music_grid=0x7f060015; + public static final int now_album=0x7f060030; + public static final int now_artist=0x7f060036; + public static final int now_cd=0x7f060031; + public static final int now_list=0x7f06003b; + public static final int now_next=0x7f06003a; + public static final int now_play=0x7f060039; + public static final int now_playing=0x7f06002f; + public static final int now_playing_right=0x7f060034; + public static final int now_playing_t_left=0x7f060033; + public static final int now_prev=0x7f060037; + public static final int now_progress=0x7f060032; + public static final int now_stop=0x7f060038; + public static final int now_title=0x7f060035; + public static final int radio01=0x7f060094; + public static final int radio02=0x7f060095; + public static final int radio03=0x7f060096; + public static final int radio04=0x7f060097; + public static final int radioStop=0x7f060098; + public static final int server_ip=0x7f06008f; + public static final int server_macid=0x7f060091; + public static final int server_name=0x7f06008e; + public static final int server_port=0x7f060090; + public static final int splash=0x7f060092; + public static final int text_kb_streamed=0x7f060028; + public static final int title=0x7f060093; + public static final int txtDbAlbum=0x7f060018; + public static final int txtDbArtist=0x7f06001c; + public static final int txtDbResult=0x7f060020; + public static final int txtDbSong=0x7f060024; + public static final int txtDirectory=0x7f060013; + public static final int txtFile=0x7f060029; + public static final int txtIntanceName=0x7f06008d; + public static final int vibration=0x7f06008b; + public static final int widget0=0x7f060012; + public static final int widget00=0x7f06003d; + public static final int widget01=0x7f060041; + public static final int widget02=0x7f060045; + public static final int widget44=0x7f060000; } public static final class layout { public static final int icon=0x7f030000; @@ -267,10 +254,6 @@ public static final int title=0x7f030015; public static final int webradio=0x7f030016; } - public static final class menu { - public static final int music_menu=0x7f060000; - public static final int picturefullscreenmenu=0x7f060001; - } public static final class string { public static final int app_name=0x7f040000; } Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/album.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/album_off.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/artist.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/artist_off.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/audio.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/back.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/border.ico =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/cdcover.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/channel_m.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/channel_p.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/document.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/down.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/exit.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/folder.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/folderback.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/foldertab.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/foldertab_off.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/forward.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/hibernate.png =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/home.png =================================================================== (Binary files differ) Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_launcher_icon.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_launcher_icon.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_back.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_back.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_backward.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_backward.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_channel_m.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_channel_m.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_channel_p.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_channel_p.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_document.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_document.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_down.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_down.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_forward.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_forward.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_fullscreen.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_fullscreen.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_home.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_home.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_info.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_info.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_left.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_left.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_logo.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_menu.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_menu.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_minus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_minus.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_music.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_music.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_now_playing.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_now_playing.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_osd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_osd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_pause.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_pause.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_pictures.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_pictures.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_play.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_play.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_plugins.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_plugins.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_plus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_plus.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_power.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_power.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_radio.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_radio.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_ratio.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_ratio.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_remote.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_remote.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_right.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_right.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_select.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_select.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_skip_backward.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_skip_backward.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_skip_forward.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_skip_forward.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_stop.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_stop.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_subtitles.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_subtitles.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_up.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_up.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_video.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/ic_menu_skin1_video.png _... [truncated message content] |
From: <kro...@us...> - 2011-01-25 20:18:16
|
Revision: 4080 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4080&view=rev Author: kroko_koenig Date: 2011-01-25 20:18:10 +0000 (Tue, 25 Jan 2011) Log Message: ----------- small change to correct special chars Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirectoryXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirectoryXmlHandler.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirectoryXmlHandler.java 2011-01-24 20:11:34 UTC (rev 4079) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirectoryXmlHandler.java 2011-01-25 20:18:10 UTC (rev 4080) @@ -32,16 +32,16 @@ Boolean currentElement = false; String currentValue = null; - public ArrayList<DirItems> DirList = new ArrayList<DirItems>(); + public ArrayList<DirItems> DirList = new ArrayList<DirItems>(); - public static class DirItems - { - public boolean isFolder = false; - public String File= ""; - public Bitmap Picture = null; + public static class DirItems { + public boolean isFolder = false; + public String File = ""; + public Bitmap Picture = null; } + private DirItems currentdirItem; - + /** * Called when tag starts ( example:- <name>AndroidPeople</name> -- <name> ) */ @@ -51,13 +51,20 @@ currentElement = true; currentValue = ""; - if (localName == "Directory") {DirList = new ArrayList<DirItems>(); } - if (localName == "Folder") {currentdirItem = new DirItems(); } - if (localName == "File") {currentdirItem = new DirItems(); } + if (localName == "Directory") { + DirList = new ArrayList<DirItems>(); + } + if (localName == "Folder") { + currentdirItem = new DirItems(); + } + if (localName == "File") { + currentdirItem = new DirItems(); + } } /** - * Called when tag closing ( example:- <name>AndroidPeople</name> -- </name> ) + * Called when tag closing ( example:- <name>AndroidPeople</name> -- </name> + * ) */ @Override public void endElement(String uri, String localName, String qName) @@ -79,15 +86,15 @@ } /** - * Called to get tag characters ( example:- <name>AndroidPeople</name> -- to get - * AndroidPeople Character ) + * Called to get tag characters ( example:- <name>AndroidPeople</name> -- to + * get AndroidPeople Character ) */ @Override public void characters(char[] ch, int start, int length) throws SAXException { if (currentElement) { - currentValue = new String(ch, start, length); - currentElement = false; + String actual = new String(ch, start, length); + currentValue += actual; } } Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java 2011-01-24 20:11:34 UTC (rev 4079) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java 2011-01-25 20:18:10 UTC (rev 4080) @@ -59,7 +59,7 @@ } report += "-------------------------------\n\n"; - report += "Remote Version : 24.01 / 21:00\n\n"; + report += "Remote Version : 25.01 / 21:00\n\n"; report += "-------------------------------\n\n"; report += "--------- Device ---------\n\n"; report += "Brand: " + Build.BRAND + "\n"; Modified: trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 =================================================================== --- trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-24 20:11:34 UTC (rev 4079) +++ trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-25 20:18:10 UTC (rev 4080) @@ -160,14 +160,14 @@ <Version> <Major>0</Major> <Minor>2</Minor> - <Build>1</Build> + <Build>2</Build> <Revision>0</Revision> </Version> <ExtensionDescription>Control your MediaPortal with yout Android. It can be used as a remote control or doing many other things like music, pictures and video control. Gfx has been done by oddfella and some additional coding is from rolls1400. Have fun.</ExtensionDescription> - <VersionDescription>uses video exentions, tweaked vlc settings</VersionDescription> + <VersionDescription>fixes special chars in links, encoding problem</VersionDescription> <DevelopmentStatus>Stable</DevelopmentStatus> <OnlineLocation /> <ReleaseDate>2010-12-09T16:17:18.1693243+01:00</ReleaseDate> Modified: trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-24 20:11:34 UTC (rev 4079) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-25 20:18:10 UTC (rev 4080) @@ -31,6 +31,7 @@ using System.IO; using System.Net.Sockets; using System.Web; +using System.Runtime.InteropServices; using MediaPortal.GUI.Library; using MediaPortal.Utils; @@ -49,6 +50,12 @@ [DllImport("USER32.DLL")] public static extern bool SetForegroundWindow(IntPtr hWnd); + [DllImport("kernel32.dll", CharSet = CharSet.Auto)] + public static extern int GetShortPathName( + [MarshalAs(UnmanagedType.LPTStr)] string path, + [MarshalAs(UnmanagedType.LPTStr)] StringBuilder shortPath, + int shortPathLength); + private delegate void DoActionHandler(Action action); private delegate void DoFullscreenHandler(); private delegate void DoStartFileHandler(string file); @@ -578,7 +585,10 @@ AndroidServer.logDebug("StreamFile play: " + local); - AndroidServer.vlc.Open(local); + StringBuilder shortPath = new StringBuilder(255); + GetShortPathName(local, shortPath, shortPath.Capacity); + + AndroidServer.vlc.Open(shortPath.ToString()); AndroidServer.vlc.Play(); } } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs 2011-01-24 20:11:34 UTC (rev 4079) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs 2011-01-25 20:18:10 UTC (rev 4080) @@ -37,7 +37,7 @@ try { int bytes = s.Receive(ByteArray, 1024, 0); - string messagefromclient = Encoding.ASCII.GetString(ByteArray); + string messagefromclient = Encoding.UTF7.GetString(ByteArray); clientmessage = (String)messagefromclient; return bytes; } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-24 20:11:41
|
Revision: 4079 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4079&view=rev Author: kroko_koenig Date: 2011-01-24 20:11:34 +0000 (Mon, 24 Jan 2011) Log Message: ----------- changed mime type for mp3 playback add vlc profiles uses video extensions Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java trunk/plugins/AndroidRemote/Release/Android Server communication.docx trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip trunk/plugins/AndroidRemote/Release/setup2.jpg trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Release/320x160.opt trunk/plugins/AndroidRemote/Release/400x240.opt Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-24 20:11:34 UTC (rev 4079) @@ -61,12 +61,11 @@ NowPlaying list show actual / count of items on top bar add gfx -NEW (after 2nd) - fix for folder like //pictures//pictures//bla... - fix display folder %20 - pointer for thumb caching always to zero on execute fetching - removed brush to have better contrast -ActivityNotFoundException (MP3) added chooser -IndexOutOfBoundsException (pictures) hopefully now changed +- add profiles for vlc (server) +- use video extensions list Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java 2011-01-24 20:11:34 UTC (rev 4079) @@ -219,7 +219,7 @@ // automatically done on worker thread (separate from UI thread) protected Void doInBackground(final String... args) { try { - Thread.sleep(3000); + Thread.sleep(4000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java 2011-01-24 20:11:34 UTC (rev 4079) @@ -129,7 +129,7 @@ + selectedItem.File.replaceAll(" ", "%20"); Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.parse(link), "audio/mp3"); + intent.setDataAndType(Uri.parse(link), "audio/mpeg"); startActivity(intent); break; Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java 2011-01-24 20:11:34 UTC (rev 4079) @@ -133,7 +133,7 @@ + ":" + AppSettings.getPort() + "/db_music/getfile?id=" + selectedItem.ID; Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.parse(link), "audio/mp3"); + intent.setDataAndType(Uri.parse(link), "audio/mpeg"); startActivity(Intent .createChooser(intent, "Choose player :")); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java 2011-01-24 20:11:34 UTC (rev 4079) @@ -121,7 +121,7 @@ + ":" + AppSettings.getPort() + "/db_music/getfile?id=" + selectedItem.ID; Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.parse(link), "audio/mp3"); + intent.setDataAndType(Uri.parse(link), "audio/mpeg"); startActivity(Intent .createChooser(intent, "Choose player :")); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java 2011-01-24 20:11:34 UTC (rev 4079) @@ -209,7 +209,8 @@ String file = server + actualDir.replaceAll(" ", "%20") + item.File + ".thb"; item.Picture = http.DownloadImage(file); - pictureList.set(picNo, item); + if (picNo < pictureList.size()) // very strange exeption happens here 10/10 + pictureList.set(picNo, item); break; } } Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java 2011-01-24 20:11:34 UTC (rev 4079) @@ -59,7 +59,7 @@ } report += "-------------------------------\n\n"; - report += "Remote Version : 23.01 / 22:00\n\n"; + report += "Remote Version : 24.01 / 21:00\n\n"; report += "-------------------------------\n\n"; report += "--------- Device ---------\n\n"; report += "Brand: " + Build.BRAND + "\n"; Added: trunk/plugins/AndroidRemote/Release/320x160.opt =================================================================== --- trunk/plugins/AndroidRemote/Release/320x160.opt (rev 0) +++ trunk/plugins/AndroidRemote/Release/320x160.opt 2011-01-24 20:11:34 UTC (rev 4079) @@ -0,0 +1 @@ +--audio-desync=-50 --no-sout-rtp-sap --sout-transcode-fps=15 --sout-rtp-caching=2000 --sout-transcode-threads=4 --sout-transcode-high-priority --sout-keep --sout=#transcode{venc=x264{profile=baseline,level=3,keyint=50,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=600,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=600,vfilter=canvas{width=320,height=160,aspect=320:160,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/MediaPortal.sdp,mp4a-latm} \ No newline at end of file Added: trunk/plugins/AndroidRemote/Release/400x240.opt =================================================================== --- trunk/plugins/AndroidRemote/Release/400x240.opt (rev 0) +++ trunk/plugins/AndroidRemote/Release/400x240.opt 2011-01-24 20:11:34 UTC (rev 4079) @@ -0,0 +1 @@ +--audio-desync=-50 --no-sout-rtp-sap --sout-transcode-fps=15 --sout-rtp-caching=2000 --sout-transcode-threads=4 --sout-transcode-high-priority --sout-keep --sout=#transcode{venc=x264{profile=baseline,level=3,keyint=50,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=600,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=600,vfilter=canvas{width=400,height=240,aspect=400:240,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/MediaPortal.sdp,mp4a-latm} \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Release/Android Server communication.docx =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 =================================================================== --- trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-24 20:11:34 UTC (rev 4079) @@ -24,6 +24,20 @@ <ZipFileName>Installer{CopyFile}\{b71d0b6b-5613-449f-98a4-50dee3c65c8c}-VideoLan.Interop.dll</ZipFileName> <DestinationFilename>%Plugins%\process\VideoLan.Interop.dll</DestinationFilename> </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>OverwriteIfOlder</UpdateOption> + <LocalFileName>320x160.opt</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d83ef543-b029-4580-8919-c17047dd95f3}-320x160.opt</ZipFileName> + <DestinationFilename>%Plugins%\process\320x160.opt</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>OverwriteIfOlder</UpdateOption> + <LocalFileName>400x240.opt</LocalFileName> + <ZipFileName>Installer{CopyFile}\{377f216a-a2c1-4dfe-aeb3-5ba04e448c72}-400x240.opt</ZipFileName> + <DestinationFilename>%Plugins%\process\400x240.opt</DestinationFilename> + </FileItem> </Items> </Files> </GroupItem> @@ -146,14 +160,14 @@ <Version> <Major>0</Major> <Minor>2</Minor> - <Build>0</Build> + <Build>1</Build> <Revision>0</Revision> </Version> <ExtensionDescription>Control your MediaPortal with yout Android. It can be used as a remote control or doing many other things like music, pictures and video control. Gfx has been done by oddfella and some additional coding is from rolls1400. Have fun.</ExtensionDescription> - <VersionDescription>add video support, bug fixes, extend remote control</VersionDescription> + <VersionDescription>uses video exentions, tweaked vlc settings</VersionDescription> <DevelopmentStatus>Stable</DevelopmentStatus> <OnlineLocation /> <ReleaseDate>2010-12-09T16:17:18.1693243+01:00</ReleaseDate> @@ -207,6 +221,20 @@ <ZipFileName>Installer{CopyFile}\{b71d0b6b-5613-449f-98a4-50dee3c65c8c}-VideoLan.Interop.dll</ZipFileName> <DestinationFilename>%Plugins%\process\VideoLan.Interop.dll</DestinationFilename> </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>OverwriteIfOlder</UpdateOption> + <LocalFileName>320x160.opt</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d83ef543-b029-4580-8919-c17047dd95f3}-320x160.opt</ZipFileName> + <DestinationFilename>%Plugins%\process\320x160.opt</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>OverwriteIfOlder</UpdateOption> + <LocalFileName>400x240.opt</LocalFileName> + <ZipFileName>Installer{CopyFile}\{377f216a-a2c1-4dfe-aeb3-5ba04e448c72}-400x240.opt</ZipFileName> + <DestinationFilename>%Plugins%\process\400x240.opt</DestinationFilename> + </FileItem> </Items> </UniqueFileList> <ProjectSettings> Modified: trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/setup2.jpg =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-24 20:11:34 UTC (rev 4079) @@ -25,6 +25,7 @@ using System; using System.Collections.Generic; using System.Text; +using System.IO; using MediaPortal.Configuration; using MediaPortal.GUI.Library; @@ -45,8 +46,10 @@ private TcpListener myListener; public static string Server = string.Empty; public static string Port = string.Empty; - public static string VlcFile = string.Empty; + private string VlcFile = string.Empty; + public static string VideoExtension = string.Empty; + private Thread listen; private Thread grabPictures; private Thread cacheDB; @@ -76,7 +79,7 @@ cacheDB.Priority = ThreadPriority.Lowest; cacheDB.Start(); - logInfo("Init vlc palyer"); + logInfo("Init vlc player"); string sVlcPath; Microsoft.Win32.RegistryKey regkeyVlcInstallPathKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\VideoLAN\VLC"); @@ -93,21 +96,28 @@ "--sout-transcode-threads=4", "--sout-transcode-high-priority", "--sout-keep", - "--sout=#duplicate{dst='transcode{venc=x264{profile=baseline,level=3,keyint=30,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=512,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=512,vfilter=canvas{width=320,height=160,aspect=320:160,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/MediaPortal.sdp,mp4a-latm}',dst='transcode{vcodec=null,acodec=mp3,ab=160,channels=2}:gather:std{access=http,mux=raw,dst=0.0.0.0:8081}'}", - "-I", - "dumy", - "--no-ignore-config", - "--no-osd", - //"--plugin-path=" + System.IO.Path.Combine(sVlcPath , "plugins") + "--sout=#duplicate{dst='transcode{venc=x264{profile=baseline,level=3,keyint=30,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=512,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=512,vfilter=canvas{width=320,height=160,aspect=320:160,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/MediaPortal.sdp,mp4a-latm}',dst='transcode{vcodec=null,acodec=mp3,ab=160,channels=2}:gather:std{access=http,mux=raw,dst=0.0.0.0:8081}'}" }; - AndroidServer.vlc = new VideoLan.VlcControl(args); - AndroidServer.vlc.Visible = false; - GUIGraphicsContext.form.Controls.Add(AndroidServer.vlc); + string option = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Plugins) + "\\process\\" + VlcFile; + if (File.Exists(option)) + { + logInfo("Load vlc profile " + VlcFile); + + StreamReader sr = new StreamReader(option); + string read = sr.ReadToEnd(); + sr.Close(); + + args = read.Split(' '); + } + + vlc = new VideoLan.VlcControl(args); + vlc.Visible = false; + + GUIGraphicsContext.form.Controls.Add(vlc); } } - public void Stop() { logInfo("Stop server"); @@ -122,7 +132,9 @@ { Server = xmlreader.GetValueAsString("android", "server", "192.168.0.30"); Port = xmlreader.GetValueAsString("android", "port", "8200"); - VlcFile = xmlreader.GetValueAsString("android", "file", ""); + + VlcFile = xmlreader.GetValueAsString("android", "vlc", "320x160.opt"); + VideoExtension = xmlreader.GetValueAsString("movies", "extensions", ".avi,.mpg,.flv,.mp4"); } } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-24 20:11:34 UTC (rev 4079) @@ -564,7 +564,11 @@ { if (AndroidServer.vlc != null) { - if (AndroidServer.vlc.IsPlaying) AndroidServer.vlc.Stop(); + if (AndroidServer.vlc.IsPlaying) + { + AndroidServer.vlc.Stop(); + System.Threading.Thread.Sleep(100); + } string filename = data["filename"].Replace("/", "\\"); Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs 2011-01-24 20:11:34 UTC (rev 4079) @@ -145,12 +145,12 @@ private static ArrayList getAllpattern(string Dir) { - string[] filters = { "*.avi", "*.mpg", "*.flv" , "*.mp4" }; + string[] filters = AndroidServer.VideoExtension.Split(','); + ArrayList files = new ArrayList(); - foreach (string filter in filters) { - files.AddRange(Directory.GetFiles(Dir, filter)); + files.AddRange(Directory.GetFiles(Dir, "*" + filter)); } return files; Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs 2011-01-24 20:11:34 UTC (rev 4079) @@ -39,7 +39,8 @@ this.btnSave = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.label3 = new System.Windows.Forms.Label(); + this.btnBrowse = new System.Windows.Forms.Button(); + this.txtVlc = new System.Windows.Forms.Label(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); @@ -150,24 +151,37 @@ // // groupBox2 // - this.groupBox2.Controls.Add(this.label3); + this.groupBox2.Controls.Add(this.txtVlc); + this.groupBox2.Controls.Add(this.btnBrowse); this.groupBox2.Location = new System.Drawing.Point(12, 114); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(491, 66); this.groupBox2.TabIndex = 3; this.groupBox2.TabStop = false; - this.groupBox2.Text = "Streaming"; + this.groupBox2.Text = "Streaming Profile"; // - // label3 + // btnBrowse // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.Location = new System.Drawing.Point(14, 29); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(396, 16); - this.label3.TabIndex = 7; - this.label3.Text = "VLC parameter can be found in the vlc.par in the process directory"; + this.btnBrowse.Location = new System.Drawing.Point(287, 19); + this.btnBrowse.Name = "btnBrowse"; + this.btnBrowse.Size = new System.Drawing.Size(137, 23); + this.btnBrowse.TabIndex = 0; + this.btnBrowse.Text = "Browse profiles"; + this.btnBrowse.UseVisualStyleBackColor = true; + this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click); // + // txtVlc + // + this.txtVlc.BackColor = System.Drawing.Color.White; + this.txtVlc.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.txtVlc.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtVlc.Location = new System.Drawing.Point(14, 22); + this.txtVlc.Name = "txtVlc"; + this.txtVlc.Size = new System.Drawing.Size(249, 25); + this.txtVlc.TabIndex = 7; + this.txtVlc.Text = "Profile"; + this.txtVlc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // // Setup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -190,7 +204,6 @@ this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); this.ResumeLayout(false); } @@ -208,6 +221,7 @@ private System.Windows.Forms.Button btnCopy; private System.Windows.Forms.Label label4; private System.Windows.Forms.GroupBox groupBox2; - private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button btnBrowse; + private System.Windows.Forms.Label txtVlc; } } \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs 2011-01-23 21:10:56 UTC (rev 4078) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs 2011-01-24 20:11:34 UTC (rev 4079) @@ -63,6 +63,8 @@ { txtServer.Text = xmlreader.GetValueAsString("android", "server", "192.168.0.30"); txtPort.Text = xmlreader.GetValueAsString("android", "port", "8200"); + + txtVlc.Text = xmlreader.GetValueAsString("android", "vlc", "320x160.opt"); } } private void SaveSettings() @@ -72,6 +74,8 @@ { xmlwriter.SetValue("android", "server", txtServer.Text); xmlwriter.SetValue("android", "port", txtPort.Text); + + xmlwriter.SetValue("android", "vlc", txtVlc.Text); } } @@ -94,5 +98,22 @@ { } + + private void btnBrowse_Click(object sender, EventArgs e) + { + + string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Plugins) + "\\process"; + + OpenFileDialog openFile1 = new OpenFileDialog(); + openFile1.Filter = "VLC profiles|*.opt"; + openFile1.InitialDirectory = dir; + openFile1.FileName = txtVlc.Text; + + if (openFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + txtVlc.Text = Path.GetFileName(openFile1.FileName); + } + + } } } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-23 21:11:07
|
Revision: 4078 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4078&view=rev Author: kroko_koenig Date: 2011-01-23 21:10:56 +0000 (Sun, 23 Jan 2011) Log Message: ----------- some changes to avoid exceptions.. remove brush for now Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playingnow.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playnowlist.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/playingnow.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicAlbum.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicArtist.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/SomeUtils.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup_ip.xml Removed Paths: ------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/brush.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote02.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote02.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_02.java Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="mediaportal.remote" android:versionCode="1" - android:versionName="1.0"> + package="mediaportal.remote" android:versionName="1.1" android:versionCode="1"> <application android:icon="@drawable/icon" android:theme="@android:style/Theme.NoTitleBar" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-23 21:10:56 UTC (rev 4078) @@ -21,109 +21,97 @@ public static final int audio=0x7f020004; public static final int back=0x7f020005; public static final int border=0x7f020006; - public static final int brush=0x7f020007; - public static final int cdcover=0x7f020008; - public static final int channel_m=0x7f020009; - public static final int channel_p=0x7f02000a; - public static final int document=0x7f02000b; - public static final int down=0x7f02000c; - public static final int empty=0x7f02000d; - public static final int exit=0x7f02000e; - public static final int folder=0x7f02000f; - public static final int folderback=0x7f020010; - public static final int foldertab=0x7f020011; - public static final int foldertab_off=0x7f020012; - public static final int forward=0x7f020013; - public static final int hibernate=0x7f020014; - public static final int home=0x7f020015; - public static final int ic_tab=0x7f020016; - public static final int ic_tab1=0x7f020017; - public static final int ic_tab2=0x7f020018; - public static final int ic_tab3=0x7f020019; - public static final int ic_tab4=0x7f02001a; - public static final int icon=0x7f02001b; - public static final int info=0x7f02001c; - public static final int left=0x7f02001d; - public static final int logo=0x7f02001e; - public static final int main_music=0x7f02001f; - public static final int main_now_playing=0x7f020020; - public static final int main_pictures=0x7f020021; - public static final int main_remote=0x7f020022; - public static final int main_settings=0x7f020023; - public static final int main_video=0x7f020024; - public static final int menu=0x7f020025; - public static final int movie=0x7f020026; - public static final int music=0x7f020027; - public static final int mute=0x7f020028; - public static final int n_asr=0x7f020029; - public static final int n_full=0x7f02002a; - public static final int n_menu=0x7f02002b; - public static final int n_osd=0x7f02002c; - public static final int n_sub=0x7f02002d; - public static final int now_playing=0x7f02002e; - public static final int pause=0x7f02002f; - public static final int picture=0x7f020030; - public static final int pictures=0x7f020031; - public static final int play=0x7f020032; - public static final int plugins=0x7f020033; - public static final int power_off=0x7f020034; - public static final int remote=0x7f020035; - public static final int restart=0x7f020036; - public static final int rewind=0x7f020037; - public static final int right=0x7f020038; - public static final int sel_play=0x7f020039; - public static final int sel_skp_back=0x7f02003a; - public static final int sel_skp_forw=0x7f02003b; - public static final int select=0x7f02003c; - public static final int select2=0x7f02003d; - public static final int settings=0x7f02003e; - public static final int skip_back=0x7f02003f; - public static final int skip_forward=0x7f020040; - public static final int song=0x7f020041; - public static final int song_off=0x7f020042; - public static final int splash=0x7f020043; - public static final int splash02=0x7f020044; - public static final int stop=0x7f020045; - public static final int suspend=0x7f020046; - public static final int up=0x7f020047; - public static final int video=0x7f020048; - public static final int volume_m=0x7f020049; - public static final int volume_p=0x7f02004a; - public static final int wake_on_lan=0x7f02004b; + public static final int cdcover=0x7f020007; + public static final int channel_m=0x7f020008; + public static final int channel_p=0x7f020009; + public static final int document=0x7f02000a; + public static final int down=0x7f02000b; + public static final int empty=0x7f02000c; + public static final int exit=0x7f02000d; + public static final int folder=0x7f02000e; + public static final int folderback=0x7f02000f; + public static final int foldertab=0x7f020010; + public static final int foldertab_off=0x7f020011; + public static final int forward=0x7f020012; + public static final int hibernate=0x7f020013; + public static final int home=0x7f020014; + public static final int ic_tab=0x7f020015; + public static final int ic_tab1=0x7f020016; + public static final int ic_tab2=0x7f020017; + public static final int ic_tab3=0x7f020018; + public static final int ic_tab4=0x7f020019; + public static final int icon=0x7f02001a; + public static final int info=0x7f02001b; + public static final int left=0x7f02001c; + public static final int logo=0x7f02001d; + public static final int main_music=0x7f02001e; + public static final int main_now_playing=0x7f02001f; + public static final int main_pictures=0x7f020020; + public static final int main_remote=0x7f020021; + public static final int main_settings=0x7f020022; + public static final int main_video=0x7f020023; + public static final int menu=0x7f020024; + public static final int movie=0x7f020025; + public static final int music=0x7f020026; + public static final int mute=0x7f020027; + public static final int n_asr=0x7f020028; + public static final int n_full=0x7f020029; + public static final int n_menu=0x7f02002a; + public static final int n_osd=0x7f02002b; + public static final int n_sub=0x7f02002c; + public static final int now_playing=0x7f02002d; + public static final int pause=0x7f02002e; + public static final int picture=0x7f02002f; + public static final int pictures=0x7f020030; + public static final int play=0x7f020031; + public static final int plugins=0x7f020032; + public static final int power_off=0x7f020033; + public static final int remote=0x7f020034; + public static final int restart=0x7f020035; + public static final int rewind=0x7f020036; + public static final int right=0x7f020037; + public static final int sel_play=0x7f020038; + public static final int sel_skp_back=0x7f020039; + public static final int sel_skp_forw=0x7f02003a; + public static final int select=0x7f02003b; + public static final int select2=0x7f02003c; + public static final int settings=0x7f02003d; + public static final int skip_back=0x7f02003e; + public static final int skip_forward=0x7f02003f; + public static final int song=0x7f020040; + public static final int song_off=0x7f020041; + public static final int splash=0x7f020042; + public static final int splash02=0x7f020043; + public static final int stop=0x7f020044; + public static final int suspend=0x7f020045; + public static final int up=0x7f020046; + public static final int video=0x7f020047; + public static final int volume_m=0x7f020048; + public static final int volume_p=0x7f020049; + public static final int wake_on_lan=0x7f02004a; } public static final class id { public static final int GridView01=0x7f070014; public static final int ImageView01=0x7f07001d; - public static final int LinearLayout00=0x7f07005c; + public static final int LinearLayout00=0x7f070050; public static final int LinearLayout01=0x7f070024; - public static final int LinearLayout02=0x7f070067; - public static final int LinearLayout03=0x7f070071; - public static final int LinearLayout04=0x7f07007b; - public static final int LinearLayout05=0x7f070081; + public static final int LinearLayout02=0x7f07005b; + public static final int LinearLayout03=0x7f070065; + public static final int LinearLayout04=0x7f07006f; + public static final int LinearLayout05=0x7f070075; public static final int ListView01=0x7f070032; - public static final int Spinner01=0x7f07008c; + public static final int Spinner01=0x7f070080; public static final int SurfaceView01=0x7f070023; - public static final int TableLayout01=0x7f070005; + public static final int TableLayout01=0x7f070006; public static final int TableLayout02=0x7f070041; public static final int TableRow01=0x7f070007; public static final int TableRow02=0x7f070046; public static final int TableRow03=0x7f07004b; public static final int TextView01=0x7f070003; public static final int TextView02=0x7f070004; - public static final int btnChannelDown=0x7f070055; - public static final int btnChannelUp=0x7f070052; - public static final int btnExit=0x7f070056; - public static final int btnHibernate=0x7f070058; - public static final int btnIpSettings=0x7f07008e; - public static final int btnRestart=0x7f070059; + public static final int btnIpSettings=0x7f070082; public static final int btnSelDown=0x7f07001a; public static final int btnSelUp=0x7f07001b; - public static final int btnShutOff=0x7f07005a; - public static final int btnSuspend=0x7f070057; - public static final int btnVolumeDown=0x7f070054; - public static final int btnVolumeMute=0x7f070053; - public static final int btnVolumeUp=0x7f070051; - public static final int btnWakeOnLan=0x7f07005b; public static final int btn_main_music=0x7f070009; public static final int btn_main_now_playing=0x7f07000c; public static final int btn_main_pictures=0x7f070008; @@ -133,53 +121,53 @@ public static final int btn_main_skp_back=0x7f07000f; public static final int btn_main_skp_forw=0x7f070011; public static final int btn_main_video=0x7f07000a; - public static final int btnkey01=0x7f07005d; - public static final int btnkey02=0x7f07005e; - public static final int btnkey03=0x7f07005f; - public static final int btnkey04=0x7f070060; - public static final int btnkey05=0x7f070061; - public static final int btnkey06=0x7f070062; - public static final int btnkey07=0x7f070063; - public static final int btnkey08=0x7f070064; - public static final int btnkey09=0x7f070065; - public static final int btnkey10=0x7f070066; - public static final int btnkey11=0x7f070068; - public static final int btnkey12=0x7f070069; - public static final int btnkey13=0x7f07006a; - public static final int btnkey14=0x7f07006b; - public static final int btnkey15=0x7f07006c; - public static final int btnkey16=0x7f07006d; - public static final int btnkey17=0x7f07006e; - public static final int btnkey18=0x7f07006f; - public static final int btnkey19=0x7f070070; - public static final int btnkey20=0x7f070072; - public static final int btnkey21=0x7f070073; - public static final int btnkey22=0x7f070074; - public static final int btnkey23=0x7f070075; - public static final int btnkey24=0x7f070076; - public static final int btnkey25=0x7f070077; - public static final int btnkey26=0x7f070078; - public static final int btnkey27=0x7f070079; - public static final int btnkey28=0x7f07007a; - public static final int btnkey29=0x7f07007c; - public static final int btnkey30=0x7f07007d; - public static final int btnkey31=0x7f07007e; - public static final int btnkey32=0x7f07007f; - public static final int btnkey33=0x7f070080; - public static final int btnkey41=0x7f070082; - public static final int btnkey42=0x7f070083; - public static final int btnkey43=0x7f070084; - public static final int btnkey44=0x7f070085; - public static final int btnkey45=0x7f070086; - public static final int btnkey46=0x7f070087; - public static final int btnkey47=0x7f070088; - public static final int btnkey48=0x7f070089; - public static final int btnkey49=0x7f07008a; - public static final int btnkey50=0x7f07008b; + public static final int btnkey01=0x7f070051; + public static final int btnkey02=0x7f070052; + public static final int btnkey03=0x7f070053; + public static final int btnkey04=0x7f070054; + public static final int btnkey05=0x7f070055; + public static final int btnkey06=0x7f070056; + public static final int btnkey07=0x7f070057; + public static final int btnkey08=0x7f070058; + public static final int btnkey09=0x7f070059; + public static final int btnkey10=0x7f07005a; + public static final int btnkey11=0x7f07005c; + public static final int btnkey12=0x7f07005d; + public static final int btnkey13=0x7f07005e; + public static final int btnkey14=0x7f07005f; + public static final int btnkey15=0x7f070060; + public static final int btnkey16=0x7f070061; + public static final int btnkey17=0x7f070062; + public static final int btnkey18=0x7f070063; + public static final int btnkey19=0x7f070064; + public static final int btnkey20=0x7f070066; + public static final int btnkey21=0x7f070067; + public static final int btnkey22=0x7f070068; + public static final int btnkey23=0x7f070069; + public static final int btnkey24=0x7f07006a; + public static final int btnkey25=0x7f07006b; + public static final int btnkey26=0x7f07006c; + public static final int btnkey27=0x7f07006d; + public static final int btnkey28=0x7f07006e; + public static final int btnkey29=0x7f070070; + public static final int btnkey30=0x7f070071; + public static final int btnkey31=0x7f070072; + public static final int btnkey32=0x7f070073; + public static final int btnkey33=0x7f070074; + public static final int btnkey41=0x7f070076; + public static final int btnkey42=0x7f070077; + public static final int btnkey43=0x7f070078; + public static final int btnkey44=0x7f070079; + public static final int btnkey45=0x7f07007a; + public static final int btnkey46=0x7f07007b; + public static final int btnkey47=0x7f07007c; + public static final int btnkey48=0x7f07007d; + public static final int btnkey49=0x7f07007e; + public static final int btnkey50=0x7f07007f; public static final int button_open=0x7f070020; public static final int button_stream=0x7f070021; public static final int button_stream_stop=0x7f070022; - public static final int clearplaylist=0x7f07009b; + public static final int clearplaylist=0x7f07008f; public static final int crtl_back=0x7f07003e; public static final int crtl_ch_m=0x7f07004a; public static final int crtl_ch_p=0x7f070045; @@ -212,7 +200,6 @@ public static final int list_song=0x7f070019; public static final int main_now_playing=0x7f07000e; public static final int music_grid=0x7f070015; - public static final int naviRemote_text=0x7f070050; public static final int now_album=0x7f070026; public static final int now_artist=0x7f07002c; public static final int now_cd=0x7f070027; @@ -226,29 +213,29 @@ public static final int now_progress=0x7f070028; public static final int now_stop=0x7f07002e; public static final int now_title=0x7f07002b; - public static final int open=0x7f07009e; - public static final int playlist=0x7f07009a; - public static final int radio01=0x7f070095; - public static final int radio02=0x7f070096; - public static final int radio03=0x7f070097; - public static final int radio04=0x7f070098; - public static final int radioStop=0x7f070099; - public static final int rslide=0x7f0700a1; - public static final int save=0x7f07009d; - public static final int sdcard=0x7f07009c; - public static final int send=0x7f07009f; - public static final int server_ip=0x7f07008f; - public static final int server_macid=0x7f070091; - public static final int server_name=0x7f070093; - public static final int server_port=0x7f070090; - public static final int slide=0x7f0700a0; + public static final int open=0x7f070092; + public static final int playlist=0x7f07008e; + public static final int radio01=0x7f070089; + public static final int radio02=0x7f07008a; + public static final int radio03=0x7f07008b; + public static final int radio04=0x7f07008c; + public static final int radioStop=0x7f07008d; + public static final int rslide=0x7f070095; + public static final int save=0x7f070091; + public static final int sdcard=0x7f070090; + public static final int send=0x7f070093; + public static final int server_ip=0x7f070085; + public static final int server_macid=0x7f070087; + public static final int server_name=0x7f070084; + public static final int server_port=0x7f070086; + public static final int slide=0x7f070094; public static final int text_kb_streamed=0x7f07001e; - public static final int title=0x7f070094; + public static final int title=0x7f070088; public static final int txtDirectory=0x7f070013; public static final int txtFile=0x7f07001f; - public static final int txtInstance=0x7f070006; - public static final int txtIntanceName=0x7f070092; - public static final int vibration=0x7f07008d; + public static final int txtInstance=0x7f070005; + public static final int txtIntanceName=0x7f070083; + public static final int vibration=0x7f070081; public static final int widget0=0x7f070012; public static final int widget00=0x7f070033; public static final int widget01=0x7f070037; @@ -272,14 +259,13 @@ public static final int playingnow=0x7f03000d; public static final int playnowlist=0x7f03000e; public static final int remote01=0x7f03000f; - public static final int remote02=0x7f030010; - public static final int remote03=0x7f030011; - public static final int remote03b=0x7f030012; - public static final int setup=0x7f030013; - public static final int setup_ip=0x7f030014; - public static final int splash=0x7f030015; - public static final int title=0x7f030016; - public static final int webradio=0x7f030017; + public static final int remote03=0x7f030010; + public static final int remote03b=0x7f030011; + public static final int setup=0x7f030012; + public static final int setup_ip=0x7f030013; + public static final int splash=0x7f030014; + public static final int title=0x7f030015; + public static final int webradio=0x7f030016; } public static final class menu { public static final int music_menu=0x7f060000; Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-23 21:10:56 UTC (rev 4078) @@ -5,7 +5,8 @@ switch off / hibernate etc. your MP from the remote vibration feedback show what actual playing on the main screen and pause / skip control -usese VLC to stream to the phone +uses VLC to stream to the phone +send crash report Pictures section ---------------- @@ -48,7 +49,7 @@ most functions as on my remote set the power mode for power control short push is sending WakeOnLan -long push will exti etc. the MP (see power mode) +long push will exit etc. the MP (see power mode) volume buttons will do vol +/- of the mp menu opens the keyboard @@ -58,4 +59,14 @@ save files from Android to MP progress task for downloads NowPlaying list show actual / count of items on top bar -add gfx \ No newline at end of file +add gfx + +NEW (after 2nd) +- fix for folder like //pictures//pictures//bla... +- fix display folder %20 +- pointer for thumb caching always to zero on execute fetching +- removed brush to have better contrast + +ActivityNotFoundException (MP3) added chooser +IndexOutOfBoundsException (pictures) hopefully now changed + Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/brush.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" - android:layout_height="fill_parent" android:background="@drawable/brush"> + android:layout_height="fill_parent"> +<TextView android:layout_height="wrap_content" android:text="HTPC" android:textColor="#FF000000" android:textStyle="bold" android:textSize="20dip" android:gravity="center_horizontal" android:id="@+id/txtInstance" android:background="#FFA9A9A9" android:layout_width="fill_parent"></TextView> + <TableLayout android:id="@+id/TableLayout01" xmlns:android="http://schemas.android.com/apk/res/android" @@ -11,7 +13,7 @@ android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> -<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="HTPC" android:textColor="#FF000000" android:textStyle="bold" android:textSize="20dip" android:gravity="center_horizontal" android:id="@+id/txtInstance"></TextView><TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="10dip" android:id="@+id/TableRow01"> +<TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="10dip" android:id="@+id/TableRow01"> <Button android:background="@drawable/main_pictures" android:scaleType="fitXY" android:layout_height="80dip" android:layout_width="80dip" @@ -61,7 +63,7 @@ </TextView> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" android:background="#0FF0FFFF" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_height="wrap_content" android:padding="5dip"> + android:orientation="horizontal" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_height="wrap_content" android:padding="5dip"> <Button android:scaleType="fitXY" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playingnow.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playingnow.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playingnow.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,7 +1,6 @@ <LinearLayout android:id="@+id/LinearLayout01" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:background="@drawable/brush" xmlns:android="http://schemas.android.com/apk/res/android"> <TextView android:id="@+id/now_playing" android:layout_width="fill_parent" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playnowlist.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playnowlist.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/playnowlist.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:background="@drawable/brush"> + android:layout_height="fill_parent"> <TextView android:id="@+id/TextView01" android:layout_height="wrap_content" android:text="Actual playlist" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/widget0" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" android:background="@drawable/brush" - xmlns:android="http://schemas.android.com/apk/res/android"> + android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:id="@+id/widget00" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote02.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote02.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote02.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<LinearLayout android:id="@+id/widget0" - android:layout_width="fill_parent" android:layout_height="fill_parent" - android:background = "@drawable/brush" - android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"> - - <TextView android:id="@+id/naviRemote_text" - android:layout_width="fill_parent" android:layout_height="wrap_content" - android:text="Remote 02" android:gravity="center_horizontal" - android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:background="#FFA9A9A9" android:padding="5dip"> - </TextView> - - <LinearLayout android:id="@+id/widget00" - android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="10dip" android:layout_gravity="center_horizontal"> - - <Button android:id="@+id/btnVolumeUp" android:layout_width="80dip" - android:layout_height="60dip" android:background="@drawable/volume_p"> - </Button> - - <Button android:id="@+id/btnChannelUp" android:layout_width="80dip" - android:layout_marginLeft="40dip" android:layout_height="60dip" - android:background="@drawable/channel_p"> - </Button> - </LinearLayout> - - <LinearLayout android:id="@+id/widget00" - android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_gravity="center_vertical"> - - <Button android:layout_width="80dip" android:layout_height="60dip" - android:id="@+id/btnVolumeMute" android:background="@drawable/mute"> - </Button> - - </LinearLayout> - - <LinearLayout android:id="@+id/widget00" - android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_gravity="center_vertical" android:paddingBottom="5dip"> - - <Button android:id="@+id/btnVolumeDown" android:layout_width="80dip" - - android:layout_height="60dip" android:background="@drawable/volume_m"> - </Button> - - <Button android:id="@+id/btnChannelDown" android:layout_width="80dip" - android:layout_marginLeft="40dip" android:layout_height="60dip" android:background="@drawable/channel_m"> - </Button> - </LinearLayout> - - <TextView android:id="@+id/naviRemote_text" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="Power control" - android:gravity="center_horizontal" android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:background="#FFA9A9A9" android:padding="5dip"> - </TextView> - - <LinearLayout android:id="@+id/widget00" - android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" - android:id="@+id/btnExit" android:gravity="bottom|center" android:background="@drawable/exit"> - </Button> - - <Button android:textSize="12dip" android:layout_height="60dip" - android:textColor="#FFFFFFFF" android:id="@+id/btnSuspend" - android:gravity="bottom|center" - android:layout_width="60dip" android:background="@drawable/suspend"> - </Button> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnHibernate" - android:gravity="bottom|center" android:background="@drawable/hibernate"> - </Button> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnRestart" - android:gravity="bottom|center" android:background="@drawable/restart"> - </Button> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnShutOff" - android:gravity="bottom|center" android:background="@drawable/power_off"> - </Button> - </LinearLayout> - - <LinearLayout android:id="@+id/widget00" - android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="10dip" android:layout_gravity="center_horizontal"> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnWakeOnLan" - android:gravity="bottom|center" android:background="@drawable/wake_on_lan"> - </Button> - </LinearLayout> - -</LinearLayout> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,14 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout00" xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="wrap_content" android:background="@drawable/brush"> + android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="wrap_content"> - <TextView android:id="@+id/naviRemote_text" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="Remote 03" - android:gravity="center_horizontal" android:background="#FFA9A9A9" - android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:padding="5dip"> - </TextView> + <LinearLayout android:id="@+id/LinearLayout01" android:layout_height="wrap_content" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,14 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout00" xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="wrap_content" android:background="@drawable/brush"> + android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="wrap_content"> - <TextView android:id="@+id/naviRemote_text" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="Remote 03" - android:gravity="center_horizontal" android:background="#FFA9A9A9" - android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:padding="5dip"> - </TextView> + <LinearLayout android:id="@+id/LinearLayout01" android:layout_height="wrap_content" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,22 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" android:padding="15dip" - android:background="@drawable/brush"> + android:orientation="vertical" android:padding="15dip"> <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:textColor="#FF000000" - android:textSize="24dip" android:text="Global settings" android:paddingBottom="10dip"></TextView> + android:layout_height="wrap_content" android:textSize="24dip" android:text="Global settings" android:paddingBottom="10dip" android:textColor="#FFFFFFFF"></TextView> <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:textColor="#FF000000" - android:textSize="18dip" android:text="Power Mode"></TextView> + android:layout_height="wrap_content" android:textSize="18dip" android:text="Power Mode" android:textColor="#FFFFFFFF"></TextView> <Spinner android:id="@+id/Spinner01" android:layout_width="fill_parent" android:layout_height="wrap_content"></Spinner> <CheckBox android:layout_width="wrap_content" - android:layout_height="wrap_content" android:textColor="#000" - android:textSize="18dip" android:id="@+id/vibration" android:text="use vibration feedback"></CheckBox><Button android:layout_height="wrap_content" android:id="@+id/btnIpSettings" android:text="IP settings" android:layout_width="fill_parent" android:layout_marginTop="20dip"></Button> + android:layout_height="wrap_content" android:textSize="18dip" android:id="@+id/vibration" android:text="use vibration feedback" android:textColor="#FFFFFFFF"></CheckBox><Button android:layout_height="wrap_content" android:id="@+id/btnIpSettings" android:text="IP settings" android:layout_width="fill_parent" android:layout_marginTop="20dip"></Button> </LinearLayout> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,28 +1,26 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" android:padding="15dip" - android:background="@drawable/brush"> + android:orientation="vertical" android:padding="15dip"> - <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/txtIntanceName" android:textColor="#FF000000" android:text="Instance Name : 0" android:textSize="20dip"></TextView> + <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/txtIntanceName" android:text="Instance Name : 0" android:textSize="20dip" android:textColor="#FFFFFFFF"></TextView> <EditText android:id="@+id/server_name" android:layout_height="wrap_content" android:layout_width="fill_parent" android:inputType="text" android:text="HTPC"></EditText> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="MediaPortal IP" - android:textColor="#FF000000" android:textSize="18dip"> + android:textSize="18dip" android:textColor="#FFFFFFFF"> </TextView> <EditText android:id="@+id/server_ip" android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="192.168.0.30" android:inputType="text"></EditText> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="MediaPortal Port" - android:textColor="#FF000000" android:textSize="18dip"></TextView> + android:textSize="18dip" android:textColor="#FFFFFFFF"></TextView> <EditText android:id="@+id/server_port" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="8200" android:inputType="phone"></EditText> <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:textColor="#FF000000" - android:textSize="18dip" android:text="MediaPortal MAC (WakeOnLan)"></TextView> + android:layout_height="wrap_content" android:textSize="18dip" android:text="MediaPortal MAC (WakeOnLan)" android:textColor="#FFFFFFFF"></TextView> <EditText android:id="@+id/server_macid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="12-34-56-78-90-12" android:inputType="text"></EditText> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" - android:layout_height="fill_parent" android:background="@drawable/brush"> + android:layout_height="fill_parent"> <Button android:text="Webradio 01" android:id="@+id/radio01" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" - android:layout_height="fill_parent" android:background="@drawable/brush"> + android:layout_height="fill_parent"> +<TextView android:layout_height="wrap_content" android:text="HTPC" android:textColor="#FF000000" android:textStyle="bold" android:textSize="20dip" android:gravity="center_horizontal" android:id="@+id/txtInstance" android:background="#FFA9A9A9" android:layout_width="fill_parent"></TextView> + <TableLayout android:id="@+id/TableLayout01" xmlns:android="http://schemas.android.com/apk/res/android" @@ -11,7 +13,7 @@ android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> -<TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/TableRow01" android:padding="5dip"> +<TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/TableRow01" android:padding="3dip"> <Button android:background="@drawable/main_pictures" android:scaleType="fitXY" android:layout_height="80dip" android:layout_width="80dip" @@ -25,7 +27,7 @@ </TableRow> - <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/TableRow01" android:padding="5dip"> + <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/TableRow01" android:padding="3dip"> <Button android:scaleType="fitXY" android:layout_height="80dip" android:layout_width="80dip" @@ -33,12 +35,12 @@ </Button> <Button android:layout_height="80dip" android:layout_width="80dip" - android:scaleType="fitXY" android:padding="5dip" android:background="@drawable/main_remote" android:id="@+id/btn_main_remote"> + android:scaleType="fitXY" android:background="@drawable/main_remote" android:id="@+id/btn_main_remote" android:padding="5dip"> </Button> </TableRow> - <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/TableRow01" android:padding="5dip"> + <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/TableRow01" android:padding="3dip"> <Button android:scaleType="fitXY" android:layout_height="80dip" android:layout_width="80dip" @@ -56,11 +58,11 @@ <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="nothing playing" android:gravity="center_horizontal" android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:background="#FFA9A9A9" android:padding="5dip" android:id="@+id/main_now_playing"> + android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:background="#FFA9A9A9" android:id="@+id/main_now_playing" android:padding="3dip"> </TextView> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" android:background="#0FF0FFFF" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_height="wrap_content" android:padding="5dip"> + android:orientation="horizontal" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_height="wrap_content" android:padding="2dip"> <Button android:scaleType="fitXY" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/playingnow.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/playingnow.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/playingnow.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,7 +1,6 @@ <LinearLayout android:id="@+id/LinearLayout01" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:background="@drawable/brush" xmlns:android="http://schemas.android.com/apk/res/android"> <TextView android:id="@+id/now_playing" android:layout_width="fill_parent" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/widget0" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" android:background="@drawable/brush" - xmlns:android="http://schemas.android.com/apk/res/android"> + android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:id="@+id/widget00" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote02.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote02.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote02.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<LinearLayout android:id="@+id/widget0" - android:layout_width="fill_parent" android:layout_height="fill_parent" - android:background = "@drawable/brush" - android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"> - - <TextView android:id="@+id/naviRemote_text" - android:layout_width="fill_parent" android:layout_height="wrap_content" - android:text="Remote 02" android:gravity="center_horizontal" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:background="#FFA9A9A9" android:textSize="15dip" android:padding="2dip"> - </TextView> - - <LinearLayout android:id="@+id/widget00" - android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" android:layout_marginTop="0dip"> - - <Button android:id="@+id/btnVolumeUp" android:background="@drawable/volume_p" android:layout_height="50dip" android:layout_width="60dip"> - </Button> - - <Button android:id="@+id/btnChannelUp" android:layout_marginLeft="40dip" android:background="@drawable/channel_p" android:layout_height="50dip" android:layout_width="60dip"> - </Button> - </LinearLayout> - - <LinearLayout android:id="@+id/widget00" - android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_gravity="center_vertical"> - - <Button android:id="@+id/btnVolumeMute" android:background="@drawable/mute" android:layout_height="50dip" android:layout_width="60dip"> - </Button> - - </LinearLayout> - - <LinearLayout android:id="@+id/widget00" - android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_gravity="center_vertical" android:paddingBottom="5dip"> - - <Button android:id="@+id/btnVolumeDown" android:background="@drawable/volume_m" android:layout_height="50dip" android:layout_width="60dip"> - </Button> - - <Button android:id="@+id/btnChannelDown" android:layout_marginLeft="40dip" android:background="@drawable/channel_m" android:layout_height="50dip" android:layout_width="60dip"> - </Button> - </LinearLayout> - - <TextView android:id="@+id/naviRemote_text" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="Power control" - android:gravity="center_horizontal" android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:background="#FFA9A9A9" android:padding="2dip"> - </TextView> - - <LinearLayout android:id="@+id/widget00" - android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" - android:id="@+id/btnExit" android:gravity="bottom|center" android:background="@drawable/exit"> - </Button> - - <Button android:textSize="12dip" android:layout_height="60dip" - android:textColor="#FFFFFFFF" android:id="@+id/btnSuspend" - android:gravity="bottom|center" - android:layout_width="60dip" android:background="@drawable/suspend"> - </Button> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnHibernate" - android:gravity="bottom|center" android:background="@drawable/hibernate"> - </Button> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnRestart" - android:gravity="bottom|center" android:background="@drawable/restart"> - </Button> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnShutOff" - android:gravity="bottom|center" android:background="@drawable/power_off"> - </Button> - </LinearLayout> - - <LinearLayout android:id="@+id/widget00" - android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="10dip" android:layout_gravity="center_horizontal"> - - <Button android:layout_width="60dip" android:textSize="12dip" - android:layout_height="60dip" android:textColor="#FFFFFFFF" android:id="@+id/btnWakeOnLan" - android:gravity="bottom|center" android:background="@drawable/wake_on_lan"> - </Button> - </LinearLayout> - -</LinearLayout> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup.xml 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,34 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" android:padding="15dip" - android:background="@drawable/brush"> + android:orientation="vertical" android:padding="15dip"> + <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="MediaPortal IP" - android:textColor="#FF000000" android:textSize="18dip"> - - </TextView> - <EditText android:id="@+id/server_ip" android:layout_width="fill_parent" android:text="192.168.0.30" - android:inputType="numberDecimal" android:layout_height="50dip"></EditText> + android:layout_height="wrap_content" android:textSize="24dip" android:text="Global settings" android:paddingBottom="10dip" android:textColor="#FFFFFFFF"></TextView> + <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="MediaPortal Port" - android:textColor="#FF000000" android:textSize="18dip"></TextView> - <EditText android:id="@+id/server_port" android:layout_width="fill_parent" - android:text="8200" - android:inputType="phone" android:layout_height="50dip"></EditText> - <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:textColor="#FF000000" - android:textSize="18dip" android:text="MediaPortal MAC (WakeOnLan)"></TextView> - <EditText android:id="@+id/server_macid" android:layout_width="fill_parent" - android:text="12-34-56-78-90-12" - android:inputType="text" android:layout_height="50dip"></EditText> - <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:textColor="#FF000000" - android:textSize="18dip" android:text="Power Mode"></TextView> - <Spinner android:id="@+id/Spinner01" android:layout_width="fill_parent" android:layout_height="50dip"></Spinner> + android:layout_height="wrap_content" android:textSize="18dip" android:text="Power Mode" android:textColor="#FFFFFFFF"></TextView> + <Spinner android:id="@+id/Spinner01" android:layout_width="fill_parent" + android:layout_height="wrap_content"></Spinner> <CheckBox android:layout_width="wrap_content" - android:textColor="#000" - android:textSize="18dip" android:id="@+id/vibration" android:text="use vibration feedback" android:layout_height="50dip"></CheckBox> + android:layout_height="wrap_content" android:textSize="18dip" android:id="@+id/vibration" android:text="use vibration feedback" android:textColor="#FFFFFFFF"></CheckBox><Button android:layout_height="wrap_content" android:id="@+id/btnIpSettings" android:text="IP settings" android:layout_width="fill_parent" android:layout_marginTop="20dip"></Button> + </LinearLayout> Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup_ip.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup_ip.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/setup_ip.xml 2011-01-23 21:10:56 UTC (rev 4078) @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" android:layout_height="fill_parent" + android:orientation="vertical" android:padding="15dip"> + + <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/txtIntanceName" android:text="Instance Name : 0" android:textSize="20dip" android:textColor="#FFFFFFFF"></TextView> + <EditText android:id="@+id/server_name" android:layout_height="wrap_content" + android:layout_width="fill_parent" android:inputType="text" android:text="HTPC"></EditText> + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="MediaPortal IP" + android:textSize="18dip" android:textColor="#FFFFFFFF"> + + </TextView> + <EditText android:id="@+id/server_ip" android:layout_height="wrap_content" + android:layout_width="fill_parent" android:text="192.168.0.30" android:inputType="text"></EditText> + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="MediaPortal Port" + android:textSize="18dip" android:textColor="#FFFFFFFF"></TextView> + <EditText android:id="@+id/server_port" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="8200" + android:inputType="phone"></EditText> + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" android:textSize="18dip" android:text="MediaPortal MAC (WakeOnLan)" android:textColor="#FFFFFFFF"></TextView> + <EditText android:id="@+id/server_macid" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="12-34-56-78-90-12" + android:inputType="text"></EditText> + + + + + + + + +</LinearLayout> Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_02.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_02.java 2011-01-23 16:56:25 UTC (rev 4077) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_02.java 2011-01-23 21:10:56 UTC (rev 4078) @@ -1,169 +0,0 @@ -/* - * Copyright (C) 2005-2011 Team MediaPortal - * http://www.team-mediaportal.com - * - * This Program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This Program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Genera... [truncated message content] |
From: <kro...@us...> - 2011-01-23 16:56:32
|
Revision: 4077 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4077&view=rev Author: kroko_koenig Date: 2011-01-23 16:56:25 +0000 (Sun, 23 Jan 2011) Log Message: ----------- fix exception top handler Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Release/video.jpg trunk/plugins/AndroidRemote/Release/video2.jpg Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-21 19:03:28 UTC (rev 4076) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-23 16:56:25 UTC (rev 4077) @@ -5,6 +5,7 @@ switch off / hibernate etc. your MP from the remote vibration feedback show what actual playing on the main screen and pause / skip control +usese VLC to stream to the phone Pictures section ---------------- @@ -48,6 +49,8 @@ set the power mode for power control short push is sending WakeOnLan long push will exti etc. the MP (see power mode) +volume buttons will do vol +/- of the mp +menu opens the keyboard Main issues ------------ Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-21 19:03:28 UTC (rev 4076) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-23 16:56:25 UTC (rev 4077) @@ -73,6 +73,8 @@ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); + + Thread.setDefaultUncaughtExceptionHandler(new TopExceptionHandler(this)); KeyLock.setKeyguardManager((KeyguardManager) getSystemService(Activity.KEYGUARD_SERVICE)); Vibration @@ -86,7 +88,7 @@ chkStatus(); Intent myIntent = new Intent(this, Splash.class); - startActivityForResult(myIntent, 0); + startActivity(myIntent); } // create MP folder @@ -121,8 +123,6 @@ } - Thread.setDefaultUncaughtExceptionHandler(new TopExceptionHandler(this)); - // Navigation Buttons Button btnPictures = (Button) findViewById(R.id.btn_main_pictures); @@ -175,7 +175,7 @@ btnSettings.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - + Toast.makeText(view.getContext(), "not implemented yet. Sorry !", Toast.LENGTH_SHORT) .show(); @@ -281,8 +281,21 @@ } private boolean reportExist() { - File f = new File("stack.trace"); - return f.exists(); + + try + { + BufferedReader reader = new BufferedReader(new InputStreamReader( + this.openFileInput("stack.trace"))); + reader.close(); + + return true; + } + catch (Exception ex){} + + return false; + + //File f = new File("stack.trace"); + //return f.exists(); } private void sendReport() { Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java 2011-01-21 19:03:28 UTC (rev 4076) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java 2011-01-23 16:56:25 UTC (rev 4077) @@ -59,7 +59,7 @@ } report += "-------------------------------\n\n"; - report += "Remote Version : initial release\n\n"; + report += "Remote Version : 2nd version\n\n"; report += "-------------------------------\n\n"; report += "--------- Device ---------\n\n"; report += "Brand: " + Build.BRAND + "\n"; Modified: trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip =================================================================== (Binary files differ) Added: trunk/plugins/AndroidRemote/Release/video.jpg =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Release/video.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Release/video2.jpg =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Release/video2.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-21 19:03:28 UTC (rev 4076) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-23 16:56:25 UTC (rev 4077) @@ -75,6 +75,36 @@ cacheDB.IsBackground = true; cacheDB.Priority = ThreadPriority.Lowest; cacheDB.Start(); + + logInfo("Init vlc palyer"); + + string sVlcPath; + Microsoft.Win32.RegistryKey regkeyVlcInstallPathKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\VideoLAN\VLC"); + if (regkeyVlcInstallPathKey != null) + { + sVlcPath = (string)regkeyVlcInstallPathKey.GetValue("InstallDir", ""); + + string[] args = new string[] + { + "--audio-desync=-50", + "--no-sout-rtp-sap", + "--sout-transcode-fps=15", + "--sout-rtp-caching=2000", + "--sout-transcode-threads=4", + "--sout-transcode-high-priority", + "--sout-keep", + "--sout=#duplicate{dst='transcode{venc=x264{profile=baseline,level=3,keyint=30,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=512,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=512,vfilter=canvas{width=320,height=160,aspect=320:160,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/MediaPortal.sdp,mp4a-latm}',dst='transcode{vcodec=null,acodec=mp3,ab=160,channels=2}:gather:std{access=http,mux=raw,dst=0.0.0.0:8081}'}", + "-I", + "dumy", + "--no-ignore-config", + "--no-osd", + //"--plugin-path=" + System.IO.Path.Combine(sVlcPath , "plugins") + }; + AndroidServer.vlc = new VideoLan.VlcControl(args); + + AndroidServer.vlc.Visible = false; + GUIGraphicsContext.form.Controls.Add(AndroidServer.vlc); + } } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-21 19:03:28 UTC (rev 4076) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-23 16:56:25 UTC (rev 4077) @@ -565,35 +565,7 @@ if (AndroidServer.vlc != null) { if (AndroidServer.vlc.IsPlaying) AndroidServer.vlc.Stop(); - } - string sVlcPath; - Microsoft.Win32.RegistryKey regkeyVlcInstallPathKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\VideoLAN\VLC"); - if (regkeyVlcInstallPathKey != null) - { - - sVlcPath = (string)regkeyVlcInstallPathKey.GetValue("InstallDir", ""); - - string[] args = new string[] - { - "--audio-desync=-50", - "--no-sout-rtp-sap", - "--sout-transcode-fps=15", - "--sout-rtp-caching=2000", - "--sout-transcode-threads=4", - "--sout-transcode-high-priority", - "--sout-keep", - "--sout=#duplicate{dst='transcode{venc=x264{profile=baseline,level=3,keyint=30,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=512,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=512,vfilter=canvas{width=320,height=160,aspect=320:160,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/MediaPortal.sdp,mp4a-latm}',dst='transcode{vcodec=null,acodec=mp3,ab=160,channels=2}:gather:std{access=http,mux=raw,dst=0.0.0.0:8081}'}", - "-I", - "dumy", - "--no-ignore-config", - "--no-osd", - //"--plugin-path=" + System.IO.Path.Combine(sVlcPath , "plugins") - }; - - if (AndroidServer.vlc == null) - AndroidServer.vlc = new VideoLan.VlcControl(args); - string filename = data["filename"].Replace("/", "\\"); directoryList = GetMpShare("movies"); @@ -610,8 +582,8 @@ { // why ever } - } + #endregion #region play video file Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-21 19:03:35
|
Revision: 4076 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4076&view=rev Author: kroko_koenig Date: 2011-01-21 19:03:28 +0000 (Fri, 21 Jan 2011) Log Message: ----------- release a new version Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip trunk/plugins/AndroidRemote/Release/main.jpg trunk/plugins/AndroidRemote/Release/remote.jpg trunk/plugins/AndroidRemote/Release/remote3.jpg trunk/plugins/AndroidRemote/Release/settings.jpg trunk/plugins/AndroidRemote/Server/AndroidRemote/Properties/AssemblyInfo.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/logo.png trunk/plugins/AndroidRemote/Release/MediaPortalRemote.011 trunk/plugins/AndroidRemote/Release/main_menu.jpg trunk/plugins/AndroidRemote/Release/settings2.jpg Removed Paths: ------------- trunk/plugins/AndroidRemote/Release/remote2.jpg Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-21 16:49:31 UTC (rev 4075) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-21 19:03:28 UTC (rev 4076) @@ -44,51 +44,52 @@ public static final int icon=0x7f02001b; public static final int info=0x7f02001c; public static final int left=0x7f02001d; - public static final int main_music=0x7f02001e; - public static final int main_now_playing=0x7f02001f; - public static final int main_pictures=0x7f020020; - public static final int main_remote=0x7f020021; - public static final int main_settings=0x7f020022; - public static final int main_video=0x7f020023; - public static final int menu=0x7f020024; - public static final int movie=0x7f020025; - public static final int music=0x7f020026; - public static final int mute=0x7f020027; - public static final int n_asr=0x7f020028; - public static final int n_full=0x7f020029; - public static final int n_menu=0x7f02002a; - public static final int n_osd=0x7f02002b; - public static final int n_sub=0x7f02002c; - public static final int now_playing=0x7f02002d; - public static final int pause=0x7f02002e; - public static final int picture=0x7f02002f; - public static final int pictures=0x7f020030; - public static final int play=0x7f020031; - public static final int plugins=0x7f020032; - public static final int power_off=0x7f020033; - public static final int remote=0x7f020034; - public static final int restart=0x7f020035; - public static final int rewind=0x7f020036; - public static final int right=0x7f020037; - public static final int sel_play=0x7f020038; - public static final int sel_skp_back=0x7f020039; - public static final int sel_skp_forw=0x7f02003a; - public static final int select=0x7f02003b; - public static final int select2=0x7f02003c; - public static final int settings=0x7f02003d; - public static final int skip_back=0x7f02003e; - public static final int skip_forward=0x7f02003f; - public static final int song=0x7f020040; - public static final int song_off=0x7f020041; - public static final int splash=0x7f020042; - public static final int splash02=0x7f020043; - public static final int stop=0x7f020044; - public static final int suspend=0x7f020045; - public static final int up=0x7f020046; - public static final int video=0x7f020047; - public static final int volume_m=0x7f020048; - public static final int volume_p=0x7f020049; - public static final int wake_on_lan=0x7f02004a; + public static final int logo=0x7f02001e; + public static final int main_music=0x7f02001f; + public static final int main_now_playing=0x7f020020; + public static final int main_pictures=0x7f020021; + public static final int main_remote=0x7f020022; + public static final int main_settings=0x7f020023; + public static final int main_video=0x7f020024; + public static final int menu=0x7f020025; + public static final int movie=0x7f020026; + public static final int music=0x7f020027; + public static final int mute=0x7f020028; + public static final int n_asr=0x7f020029; + public static final int n_full=0x7f02002a; + public static final int n_menu=0x7f02002b; + public static final int n_osd=0x7f02002c; + public static final int n_sub=0x7f02002d; + public static final int now_playing=0x7f02002e; + public static final int pause=0x7f02002f; + public static final int picture=0x7f020030; + public static final int pictures=0x7f020031; + public static final int play=0x7f020032; + public static final int plugins=0x7f020033; + public static final int power_off=0x7f020034; + public static final int remote=0x7f020035; + public static final int restart=0x7f020036; + public static final int rewind=0x7f020037; + public static final int right=0x7f020038; + public static final int sel_play=0x7f020039; + public static final int sel_skp_back=0x7f02003a; + public static final int sel_skp_forw=0x7f02003b; + public static final int select=0x7f02003c; + public static final int select2=0x7f02003d; + public static final int settings=0x7f02003e; + public static final int skip_back=0x7f02003f; + public static final int skip_forward=0x7f020040; + public static final int song=0x7f020041; + public static final int song_off=0x7f020042; + public static final int splash=0x7f020043; + public static final int splash02=0x7f020044; + public static final int stop=0x7f020045; + public static final int suspend=0x7f020046; + public static final int up=0x7f020047; + public static final int video=0x7f020048; + public static final int volume_m=0x7f020049; + public static final int volume_p=0x7f02004a; + public static final int wake_on_lan=0x7f02004b; } public static final class id { public static final int GridView01=0x7f070014; Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-21 16:49:31 UTC (rev 4075) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-21 19:03:28 UTC (rev 4076) @@ -1,20 +1,27 @@ +General +------- +Control up to 3 Mediaportal +Wake On Lan from the remote +switch off / hibernate etc. your MP from the remote +vibration feedback +show what actual playing on the main screen and pause / skip control + Pictures section ---------------- browse folders (MP shares) -display thumbs +display thumbs (threaded) save to sd open browser -send picture +send picture via MMS slide show random slide show -threaded caching - Music section ------------- browse folders (MP shares) browse MP database for artist,albums,songs add title to playlist +play files locally view playlist remove items from playlist clear playlist @@ -24,8 +31,8 @@ Video section ------------- -play an initial file on startup -experimental stream / open file with preview +browse folders (MP shares) +play files locally or in the MP NowPlaying ---------- @@ -38,13 +45,14 @@ Remote ------ most functions as on my remote -two more buttons for subtitle / osd -zoom button missing +set the power mode for power control +short push is sending WakeOnLan +long push will exti etc. the MP (see power mode) Main issues ------------ switch WIFI on (just msg now) save files from Android to MP progress task for downloads -done : multiply control of more then one MP -NowPlaying list show actual / count of items on top bar \ No newline at end of file +NowPlaying list show actual / count of items on top bar +add gfx \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/logo.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-21 16:49:31 UTC (rev 4075) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-21 19:03:28 UTC (rev 4076) @@ -9,7 +9,7 @@ android:layout_width="wrap_content"> <ImageButton android:id="@+id/crtl_mp" - android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/icon"> + android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/logo"> </ImageButton> <ImageButton android:id="@+id/crtl_up" android:layout_width="100dip" android:layout_height="60dip" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-21 16:49:31 UTC (rev 4075) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-21 19:03:28 UTC (rev 4076) @@ -9,7 +9,7 @@ android:layout_width="wrap_content"> <ImageButton android:id="@+id/crtl_mp" - android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/icon"> + android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/logo"> </ImageButton> <ImageButton android:id="@+id/crtl_up" android:layout_width="100dip" android:layout_height="60dip" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java 2011-01-21 16:49:31 UTC (rev 4075) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java 2011-01-21 19:03:28 UTC (rev 4076) @@ -147,11 +147,10 @@ public static CharSequence[] getNames() { - CharSequence[] ret = new CharSequence[4]; + CharSequence[] ret = new CharSequence[3]; ret[0] = getName1(); ret[1] = getName2(); ret[2] = getName3(); - ret[3] = "Cancel"; return ret; } Modified: trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 =================================================================== --- trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-21 16:49:31 UTC (rev 4075) +++ trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-21 19:03:28 UTC (rev 4076) @@ -145,15 +145,15 @@ <UpdateUrl /> <Version> <Major>0</Major> - <Minor>1</Minor> - <Build>1</Build> + <Minor>2</Minor> + <Build>0</Build> <Revision>0</Revision> </Version> <ExtensionDescription>Control your MediaPortal with yout Android. It can be used as a remote control or doing many other things like music, pictures and video control. Gfx has been done by oddfella and some additional coding is from rolls1400. Have fun.</ExtensionDescription> - <VersionDescription>initial release</VersionDescription> + <VersionDescription>add video support, bug fixes, extend remote control</VersionDescription> <DevelopmentStatus>Stable</DevelopmentStatus> <OnlineLocation /> <ReleaseDate>2010-12-09T16:17:18.1693243+01:00</ReleaseDate> Added: trunk/plugins/AndroidRemote/Release/MediaPortalRemote.011 =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Release/MediaPortalRemote.011 ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Release/MediaPortalRemote.zip =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/main.jpg =================================================================== (Binary files differ) Added: trunk/plugins/AndroidRemote/Release/main_menu.jpg =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Release/main_menu.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Release/remote.jpg =================================================================== (Binary files differ) Deleted: trunk/plugins/AndroidRemote/Release/remote2.jpg =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/remote3.jpg =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Release/settings.jpg =================================================================== (Binary files differ) Added: trunk/plugins/AndroidRemote/Release/settings2.jpg =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Release/settings2.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Properties/AssemblyInfo.cs 2011-01-21 16:49:31 UTC (rev 4075) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Properties/AssemblyInfo.cs 2011-01-21 19:03:28 UTC (rev 4076) @@ -32,5 +32,5 @@ // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.0.0")] -[assembly: AssemblyFileVersion("0.1.0.0")] +[assembly: AssemblyVersion("0.2.0.0")] +[assembly: AssemblyFileVersion("0.2.0.0")] Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-21 16:49:39
|
Revision: 4075 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4075&view=rev Author: kroko_koenig Date: 2011-01-21 16:49:31 +0000 (Fri, 21 Jan 2011) Log Message: ----------- play video local and on the MP Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/movie.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/movies.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-21 16:49:31 UTC (rev 4075) @@ -32,6 +32,7 @@ <activity android:launchMode="singleInstance" android:name=".music.MusicResults"></activity> <activity android:launchMode="singleInstance" android:name=".multimedia.Webradio"></activity> <activity android:name=".MediaPlayerControl" android:launchMode="singleInstance"></activity> + <activity android:name=".movies.Movies" android:launchMode="singleInstance"></activity> </application> <uses-sdk android:minSdkVersion="3" /> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-21 16:49:31 UTC (rev 4075) @@ -51,46 +51,47 @@ public static final int main_settings=0x7f020022; public static final int main_video=0x7f020023; public static final int menu=0x7f020024; - public static final int music=0x7f020025; - public static final int mute=0x7f020026; - public static final int n_asr=0x7f020027; - public static final int n_full=0x7f020028; - public static final int n_menu=0x7f020029; - public static final int n_osd=0x7f02002a; - public static final int n_sub=0x7f02002b; - public static final int now_playing=0x7f02002c; - public static final int pause=0x7f02002d; - public static final int picture=0x7f02002e; - public static final int pictures=0x7f02002f; - public static final int play=0x7f020030; - public static final int plugins=0x7f020031; - public static final int power_off=0x7f020032; - public static final int remote=0x7f020033; - public static final int restart=0x7f020034; - public static final int rewind=0x7f020035; - public static final int right=0x7f020036; - public static final int sel_play=0x7f020037; - public static final int sel_skp_back=0x7f020038; - public static final int sel_skp_forw=0x7f020039; - public static final int select=0x7f02003a; - public static final int select2=0x7f02003b; - public static final int settings=0x7f02003c; - public static final int skip_back=0x7f02003d; - public static final int skip_forward=0x7f02003e; - public static final int song=0x7f02003f; - public static final int song_off=0x7f020040; - public static final int splash=0x7f020041; - public static final int splash02=0x7f020042; - public static final int stop=0x7f020043; - public static final int suspend=0x7f020044; - public static final int up=0x7f020045; - public static final int video=0x7f020046; - public static final int volume_m=0x7f020047; - public static final int volume_p=0x7f020048; - public static final int wake_on_lan=0x7f020049; + public static final int movie=0x7f020025; + public static final int music=0x7f020026; + public static final int mute=0x7f020027; + public static final int n_asr=0x7f020028; + public static final int n_full=0x7f020029; + public static final int n_menu=0x7f02002a; + public static final int n_osd=0x7f02002b; + public static final int n_sub=0x7f02002c; + public static final int now_playing=0x7f02002d; + public static final int pause=0x7f02002e; + public static final int picture=0x7f02002f; + public static final int pictures=0x7f020030; + public static final int play=0x7f020031; + public static final int plugins=0x7f020032; + public static final int power_off=0x7f020033; + public static final int remote=0x7f020034; + public static final int restart=0x7f020035; + public static final int rewind=0x7f020036; + public static final int right=0x7f020037; + public static final int sel_play=0x7f020038; + public static final int sel_skp_back=0x7f020039; + public static final int sel_skp_forw=0x7f02003a; + public static final int select=0x7f02003b; + public static final int select2=0x7f02003c; + public static final int settings=0x7f02003d; + public static final int skip_back=0x7f02003e; + public static final int skip_forward=0x7f02003f; + public static final int song=0x7f020040; + public static final int song_off=0x7f020041; + public static final int splash=0x7f020042; + public static final int splash02=0x7f020043; + public static final int stop=0x7f020044; + public static final int suspend=0x7f020045; + public static final int up=0x7f020046; + public static final int video=0x7f020047; + public static final int volume_m=0x7f020048; + public static final int volume_p=0x7f020049; + public static final int wake_on_lan=0x7f02004a; } public static final class id { - public static final int GridView01=0x7f07001b; + public static final int GridView01=0x7f070014; public static final int ImageView01=0x7f07001d; public static final int LinearLayout00=0x7f07005c; public static final int LinearLayout01=0x7f070024; @@ -114,8 +115,8 @@ public static final int btnHibernate=0x7f070058; public static final int btnIpSettings=0x7f07008e; public static final int btnRestart=0x7f070059; - public static final int btnSelDown=0x7f070018; - public static final int btnSelUp=0x7f070019; + public static final int btnSelDown=0x7f07001a; + public static final int btnSelUp=0x7f07001b; public static final int btnShutOff=0x7f07005a; public static final int btnSuspend=0x7f070057; public static final int btnVolumeDown=0x7f070054; @@ -204,12 +205,12 @@ public static final int full_text=0x7f07001c; public static final int icon_image=0x7f070001; public static final int icon_text=0x7f070002; - public static final int list_album=0x7f070014; - public static final int list_artist=0x7f070015; - public static final int list_result=0x7f070016; - public static final int list_song=0x7f070017; + public static final int list_album=0x7f070016; + public static final int list_artist=0x7f070017; + public static final int list_result=0x7f070018; + public static final int list_song=0x7f070019; public static final int main_now_playing=0x7f07000e; - public static final int music_grid=0x7f070013; + public static final int music_grid=0x7f070015; public static final int naviRemote_text=0x7f070050; public static final int now_album=0x7f070026; public static final int now_artist=0x7f07002c; @@ -242,7 +243,7 @@ public static final int slide=0x7f0700a0; public static final int text_kb_streamed=0x7f07001e; public static final int title=0x7f070094; - public static final int txtDirectory=0x7f07001a; + public static final int txtDirectory=0x7f070013; public static final int txtFile=0x7f07001f; public static final int txtInstance=0x7f070006; public static final int txtIntanceName=0x7f070092; @@ -257,26 +258,27 @@ public static final int icon=0x7f030000; public static final int list_item=0x7f030001; public static final int main=0x7f030002; - public static final int music=0x7f030003; - public static final int music_album=0x7f030004; - public static final int music_artist=0x7f030005; - public static final int music_results=0x7f030006; - public static final int music_song=0x7f030007; - public static final int musictab=0x7f030008; - public static final int pictures=0x7f030009; - public static final int picturesfullscreen=0x7f03000a; - public static final int player=0x7f03000b; - public static final int playingnow=0x7f03000c; - public static final int playnowlist=0x7f03000d; - public static final int remote01=0x7f03000e; - public static final int remote02=0x7f03000f; - public static final int remote03=0x7f030010; - public static final int remote03b=0x7f030011; - public static final int setup=0x7f030012; - public static final int setup_ip=0x7f030013; - public static final int splash=0x7f030014; - public static final int title=0x7f030015; - public static final int webradio=0x7f030016; + public static final int movies=0x7f030003; + public static final int music=0x7f030004; + public static final int music_album=0x7f030005; + public static final int music_artist=0x7f030006; + public static final int music_results=0x7f030007; + public static final int music_song=0x7f030008; + public static final int musictab=0x7f030009; + public static final int pictures=0x7f03000a; + public static final int picturesfullscreen=0x7f03000b; + public static final int player=0x7f03000c; + public static final int playingnow=0x7f03000d; + public static final int playnowlist=0x7f03000e; + public static final int remote01=0x7f03000f; + public static final int remote02=0x7f030010; + public static final int remote03=0x7f030011; + public static final int remote03b=0x7f030012; + public static final int setup=0x7f030013; + public static final int setup_ip=0x7f030014; + public static final int splash=0x7f030015; + public static final int title=0x7f030016; + public static final int webradio=0x7f030017; } public static final class menu { public static final int music_menu=0x7f060000; Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/movie.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/movie.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/movies.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/movies.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/movies.xml 2011-01-21 16:49:31 UTC (rev 4075) @@ -0,0 +1,19 @@ +<LinearLayout android:id="@+id/widget0" + android:layout_width="fill_parent" android:layout_height="wrap_content" + xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"> + + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Actual: ..." android:textColor="#FFFFFFFF" + android:textSize="20dip" + android:id="@+id/txtDirectory" android:paddingBottom="5dip"></TextView> + + <GridView android:layout_y="0dip" android:layout_x="0dip" + android:id="@+id/GridView01" android:layout_width="fill_parent" + android:layout_height="fill_parent" android:columnWidth="90dp" + android:numColumns="auto_fit" android:verticalSpacing="10dp" + android:horizontalSpacing="10dp" android:stretchMode="columnWidth" + android:gravity="center"> + </GridView> +</LinearLayout> + Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java 2011-01-21 16:49:31 UTC (rev 4075) @@ -185,5 +185,24 @@ post.Post(xml); } + + public static void PostPlayFile(String Filename, String MediaTyp) { + Filename = Entity.AddEntity(Filename); + + Log.d("MediaPortal", "PostPlayFile : " + Filename); + + PostWebserver post = new PostWebserver(AppSettings.getServer(), AppSettings.getPort()); + String xml = ""; + + xml += "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"; + xml += "<message>\r\n"; + xml += "<command>PlayFile</command>\r\n"; + xml += "<filename>" + Filename + "</filename>\r\n"; + xml += "<mediatyp>" + MediaTyp + "</mediatyp>\r\n"; + xml += "</message>\r\n"; + + post.Post(xml); + } + } Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirHandler.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirHandler.java 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirHandler.java 2011-01-21 16:49:31 UTC (rev 4075) @@ -46,7 +46,12 @@ return fetchData("/pictures/" + Dir); } + + public ArrayList<DirItems> getMoviesDir(String Dir) { + return fetchData("/movies/" + Dir); + } + public ArrayList<DirItems> gotodir(String dir) { actualDir += "/" + dir; return fetchData(actualDir); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-21 16:49:31 UTC (rev 4075) @@ -30,6 +30,7 @@ import mediaportal.remote.R; import mediaportal.remote.communication.SendCommand; import mediaportal.remote.control.Remote_01; +import mediaportal.remote.movies.Movies; import mediaportal.remote.music.MusicTab; import mediaportal.remote.nowPlaying.NowPlaying; import mediaportal.remote.nowPlaying.NowPlayingXmlHandler; @@ -46,7 +47,6 @@ import android.content.DialogInterface; import android.content.Intent; import android.net.ConnectivityManager; -import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; @@ -147,17 +147,8 @@ btnVideo.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - - //Toast.makeText(view.getContext(), - // "not implemented yet. Sorry !", Toast.LENGTH_SHORT) - // .show(); - - // Intent myIntent = new Intent(view.getContext(), - // MediaPlayerControl.class); - // startActivity(myIntent); - - startActivity(new Intent(Intent.ACTION_VIEW, - Uri.parse("rtsp://" + AppSettings.getServer() + ":5554/android.sdp"))); + Intent myIntent = new Intent(view.getContext(), Movies.class); + startActivity(myIntent); } }); Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/movies/Movies.java 2011-01-21 16:49:31 UTC (rev 4075) @@ -0,0 +1,349 @@ +/* + * Copyright (C) 2005-2011 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +package mediaportal.remote.movies; + +import java.util.ArrayList; +import mediaportal.remote.R; +import mediaportal.remote.communication.SendCommand; +import mediaportal.remote.directory.ReceiveDirHandler; +import mediaportal.remote.directory.ReceiveDirectoryXmlHandler; +import mediaportal.remote.directory.ReceiveDirectoryXmlHandler.DirItems; +import mediaportal.remote.utils.AppSettings; +import mediaportal.remote.utils.Vibration; +import android.app.Activity; +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.net.Uri; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.AdapterView; +import android.widget.BaseAdapter; +import android.widget.GridView; +import android.widget.ImageView; +import android.widget.TextView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.Toast; + +public class Movies extends Activity { + + public static String actualDir = ""; + + public static ArrayList<ReceiveDirectoryXmlHandler.DirItems> moviesList; + + public static int selectedMovie; + public static String File; + + private BaseAdapter adapter; + + private update taskFetchData; + private startVideo taskStartVideo; + + final CharSequence[] items = { "Play file locally", "Play file on MP" }; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.pictures); + + adapter = new ImageAdapter2(Movies.this); + + taskFetchData = new update(); + taskFetchData.execute(); + + GridView gridview = (GridView) findViewById(R.id.GridView01); + + gridview.setOnItemClickListener(new OnItemClickListener() { + public void onItemClick(AdapterView<?> parent, View v, + int position, long id) { + + ImageView iv = (ImageView) v.findViewById(R.id.icon_image); + movieItem movie = (movieItem) iv.getTag(); + + Vibration.vibrateShort(); + + if (movie.typ == "item") { + selectedMovie = position - 1; + File = actualDir + movie.title.replaceAll(" ", "%20"); + + AlertDialog.Builder builder = new AlertDialog.Builder( + Movies.this); + + builder.setTitle("Movies options"); + + builder.setItems(items, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, + int item) { + switch (item) { + case 0: + SendCommand.PostStreamFile(File, + "video"); + + taskStartVideo = new startVideo(); + taskStartVideo.execute(); + break; + case 1: + SendCommand.PostPlayFile(File, "video"); + break; + + } + } + }); + AlertDialog alert = builder.create(); + alert.show(); + } + + if (movie.typ == "folder") { + actualDir += movie.title.replaceAll(" ", "%20") + "/"; + + taskFetchData = new update(); + taskFetchData.execute(); + } + + if (movie.typ == "oneup") { + if (actualDir.endsWith("/")) + actualDir = actualDir.substring(0, + actualDir.length() - 1); + + int x = actualDir.lastIndexOf("/"); + if (x >= 0) { + actualDir = actualDir.substring(0, x + 1); + } else + actualDir = ""; + + taskFetchData = new update(); + taskFetchData.execute(); + } + } + }); + } + + private class update extends AsyncTask<String, Void, Void> { + private final ProgressDialog dialog = new ProgressDialog(Movies.this); + + // can use UI thread here + protected void onPreExecute() { + try { + this.dialog.setMessage("Loading..."); + this.dialog.show(); + + String dsp = actualDir; + int len = dsp.length(); + + if (dsp == "") + dsp = "root"; + if (len > 25) + dsp = "..." + dsp.substring(len - 20, len); + + TextView txt = (TextView) findViewById(R.id.txtDirectory); + txt.setText("Act: " + dsp); + + } catch (Exception ex) { + } + } + + // automatically done on worker thread (separate from UI thread) + protected Void doInBackground(final String... args) { + Log.d("MediaPortal", "pictures do read folder : " + actualDir); + + ReceiveDirHandler h = ReceiveDirHandler.getinstance(); + moviesList = h.getMoviesDir(actualDir); + + return null; + } + + // can use UI thread here + protected void onPostExecute(final Void unused) { + if (this.dialog.isShowing()) { + try { + this.dialog.dismiss(); + } catch (Exception ex) { + } + } + + Log.d("MediaPortal", "movies read folder finished"); + + if (moviesList == null) { + Toast.makeText(Movies.this, "TIME OUT SERVER", + Toast.LENGTH_SHORT).show(); + } else { + if (moviesList.size() == 0) { + Toast.makeText(Movies.this, "no items", Toast.LENGTH_SHORT) + .show(); + } + + GridView gridview = (GridView) findViewById(R.id.GridView01); + gridview.setAdapter(adapter); + } + } + } + + private class startVideo extends AsyncTask<String, Void, Void> { + private final ProgressDialog dialog = new ProgressDialog(Movies.this); + + // can use UI thread here + protected void onPreExecute() { + try { + this.dialog.setMessage("Please wait..."); + this.dialog.show(); + } catch (Exception ex) { + } + } + + // automatically done on worker thread (separate from UI thread) + protected Void doInBackground(final String... args) { + try { + Thread.sleep(3000); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return null; + } + + // can use UI thread here + protected void onPostExecute(final Void unused) { + if (this.dialog.isShowing()) { + try { + this.dialog.dismiss(); + } catch (Exception ex) { + } + + String link = "rtsp://" + AppSettings.getServer() + + ":5554/MediaPortal.sdp"; + + Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(link)); + startActivity(intent); + } + + Log.d("MediaPortal", "movies read folder finished"); + + if (moviesList == null) { + Toast.makeText(Movies.this, "TIME OUT SERVER", + Toast.LENGTH_SHORT).show(); + } else { + if (moviesList.size() == 0) { + Toast.makeText(Movies.this, "no items", Toast.LENGTH_SHORT) + .show(); + } + + GridView gridview = (GridView) findViewById(R.id.GridView01); + gridview.setAdapter(adapter); + } + } + } + + public class ImageAdapter2 extends BaseAdapter { + private Context mContext; + public static final int ACTIVITY_CREATE = 10; + + public ImageAdapter2(Context c) { + mContext = c; + } + + public int getCount() { + if (moviesList != null) + return moviesList.size() + 1; + else + return 0; + } + + public Object getItem(int position) { + return null; + } + + public long getItemId(int position) { + return 0; + } + + // @Override + // create a new ImageView for each item referenced by the Adapter + public View getView(int position, View convertView, ViewGroup parent) { + View v; + if (convertView == null) { // if it's not recycled, initialize some + // attributes + + LayoutInflater li = LayoutInflater.from(mContext); + v = li.inflate(R.layout.icon, null); + } else { + v = convertView; + } + + if (position > 0) { + position = position - 1; + + DirItems item = moviesList.get(position); + + String txtName = item.File; + Boolean isFolder = item.isFolder; + + TextView tv = (TextView) v.findViewById(R.id.icon_text); + tv.setText(txtName); + + ImageView iv = (ImageView) v.findViewById(R.id.icon_image); + + if (isFolder) { + iv.setImageResource(R.drawable.folder); + movieItem pic = new movieItem(); + pic.title = txtName; + pic.typ = "folder"; + iv.setTag(pic); + } else { + iv.setImageResource(R.drawable.movie); + + movieItem pic = new movieItem(); + pic.title = txtName; + pic.typ = "item"; + iv.setTag(pic); + } + } else { + LayoutInflater li = LayoutInflater.from(mContext); + v = li.inflate(R.layout.icon, null); + + TextView tv = (TextView) v.findViewById(R.id.icon_text); + tv.setText(".."); + + ImageView iv = (ImageView) v.findViewById(R.id.icon_image); + iv.setImageResource(R.drawable.folderback); + movieItem mov = new movieItem(); + mov.title = ".."; + mov.typ = "oneup"; + iv.setTag(mov); + } + + return v; + } + } + + public class movieItem { + public String title; + public String typ; + } + +} Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-21 16:49:31 UTC (rev 4075) @@ -416,7 +416,7 @@ randomslidestatus = "Start random slideshow"; final CharSequence[] items = { "Save to sd card", "Open in browser", - "Send Picture", slidestatus, randomslidestatus, "Cancel" }; + "Send Picture", slidestatus, randomslidestatus }; AlertDialog.Builder builder = new AlertDialog.Builder( Picturesfullscreen.this); Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj 2011-01-21 16:49:31 UTC (rev 4075) @@ -58,6 +58,7 @@ </ItemGroup> <ItemGroup> <Compile Include="AndroidServer.cs" /> + <Compile Include="Content\VideoHandler.cs" /> <Compile Include="Content\MusicHandler.cs" /> <Compile Include="Content\NowPlayingHandler.cs" /> <Compile Include="Content\PictureHandler.cs" /> Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-21 16:49:31 UTC (rev 4075) @@ -30,6 +30,7 @@ using System.Runtime.InteropServices; using System.IO; using System.Net.Sockets; +using System.Web; using MediaPortal.GUI.Library; using MediaPortal.Utils; @@ -50,6 +51,7 @@ private delegate void DoActionHandler(Action action); private delegate void DoFullscreenHandler(); + private delegate void DoStartFileHandler(string file); private delegate void StartPlaylistPlayer(); private static Dictionary<string, string> directoryList = new Dictionary<string, string>(); @@ -563,7 +565,6 @@ if (AndroidServer.vlc != null) { if (AndroidServer.vlc.IsPlaying) AndroidServer.vlc.Stop(); - AndroidServer.vlc = null; } string sVlcPath; @@ -577,53 +578,65 @@ { "--audio-desync=-50", "--no-sout-rtp-sap", - "--sout-transcode-fps=25", + "--sout-transcode-fps=15", "--sout-rtp-caching=2000", "--sout-transcode-threads=4", "--sout-transcode-high-priority", "--sout-keep", - "--sout=#duplicate{dst='transcode{venc=x264{profile=baseline,level=3,keyint=50,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=512,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=600,vfilter=canvas{width=480,height=320,aspect=480:320,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=128,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/android.sdp,mp4a-latm}',dst='transcode{vcodec=null,acodec=mp3,ab=160,channels=2}:gather:std{access=http,mux=raw,dst=0.0.0.0:8081}'}", + "--sout=#duplicate{dst='transcode{venc=x264{profile=baseline,level=3,keyint=30,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=512,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=512,vfilter=canvas{width=320,height=160,aspect=320:160,padd},soverlay,aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=2,audio-sync}:gather:rtp{sdp=rtsp://0.0.0.0:5554/MediaPortal.sdp,mp4a-latm}',dst='transcode{vcodec=null,acodec=mp3,ab=160,channels=2}:gather:std{access=http,mux=raw,dst=0.0.0.0:8081}'}", "-I", "dumy", "--no-ignore-config", "--no-osd", - "--plugin-path=" + System.IO.Path.Combine(sVlcPath , "plugins") + //"--plugin-path=" + System.IO.Path.Combine(sVlcPath , "plugins") }; - AndroidServer.vlc = new VideoLan.VlcControl(args); - } - if (!data["filename"].StartsWith("webradio")) - AndroidServer.vlc.Open(data["filename"]); - else - { - string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config); - string radio1 = string.Empty; - string radio2 = string.Empty; - string radio3 = string.Empty; - string radio4 = string.Empty; + if (AndroidServer.vlc == null) + AndroidServer.vlc = new VideoLan.VlcControl(args); - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(dir + "\\MediaPortal.xml")) - { - radio1 = xmlreader.GetValueAsString("android", "radio01", "http://ndrstream.ic.llnwd.net/stream/ndrstream_n-joy_hi_mp3"); - radio2 = xmlreader.GetValueAsString("android", "radio02", "http://ndrstream.ic.llnwd.net/stream/ndrstream_ndr2_hi_mp3"); - radio3 = xmlreader.GetValueAsString("android", "radio03", "http://www.fritz.de/live.m3u"); - radio4 = xmlreader.GetValueAsString("android", "radio04", "http://listen.to.techno4ever.net"); - } - if (data["filename"].StartsWith("webradio_1")) - AndroidServer.vlc.Open(radio1); - if (data["filename"].StartsWith("webradio_2")) - AndroidServer.vlc.Open(radio2); - if (data["filename"].StartsWith("webradio_3")) - AndroidServer.vlc.Open(radio3); - if (data["filename"].StartsWith("webradio_4")) - AndroidServer.vlc.Open(radio4); + string filename = data["filename"].Replace("/", "\\"); + + directoryList = GetMpShare("movies"); + string local = GetLocalDir(filename, directoryList); + local = HttpUtility.UrlDecode(local); + + AndroidServer.logDebug("StreamFile play: " + local); + + AndroidServer.vlc.Open(local); AndroidServer.vlc.Play(); } } catch { + // why ever + } + } + #endregion + + #region play video file + if (data["command"] == ("PlayFile")) + { + AndroidServer.logDebug("MP play video: " + data["filename"]); + // parameter = filename + + try + { + string filename = data["filename"].Replace("/", "\\"); + + directoryList = GetMpShare("movies"); + string local = GetLocalDir(filename, directoryList); + local = HttpUtility.UrlDecode(local); + + AndroidServer.logDebug("MP play video: " + local); + + DoStartFileHandler del = new DoStartFileHandler(StartFile); + GUIGraphicsContext.form.Invoke(del, local); } + catch + { + // why ever + } } #endregion @@ -650,6 +663,15 @@ if (playList.Count > 0) playlistPlayer.Play(playList.Count - 1); } + + private void StartFile(string File) + { + g_Player.Stop(); + g_Player.Play(File, g_Player.MediaType.Video); + + GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO); + } + private void DoAction(Action action) { GUIGraphicsContext.OnAction(action); Added: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs (rev 0) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/VideoHandler.cs 2011-01-21 16:49:31 UTC (rev 4075) @@ -0,0 +1,160 @@ +#region Copyright (C) 2005-2011 Team MediaPortal + +/* + * Copyright (C) 2005-2011 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ +#endregion + +using System; +using System.Collections.Generic; +using System.Collections; +using System.Text; +using System.Net.Sockets; +using System.IO; +using System.Drawing; +using System.Web; + +using MediaPortal.GUI.Library; +using MediaPortal.Configuration; +using MediaPortal.Database; +using SQLite.NET; + +namespace AndroidRemote.Content +{ + public class VideoHandler + { + private static Dictionary<string, string> directoryList = new Dictionary<string, string>(); + + public static void ReplyVideoDir(Socket sock, string request) + { + directoryList = SomeUtils.GetMpShare("movies"); + string dir = SomeUtils.GetLocalDir(request, directoryList); + + SocketHandler handler = new SocketHandler(); + + if (request == string.Empty) + { + #region root shares + + string msg = string.Empty; + // header + msg += "HTTP/1.0 200 Ok\r\n"; + msg += "Content-Type: application/xml; charset=utf-8; filename=info.xml" + "\r\n"; + msg += "Proxy-Connection: close" + "\r\n"; + msg += "\r\n"; + // content + msg += "<?xml version=\"1.0\"?>\r\n"; + msg += "<Directory>\r\n"; + + // folder + foreach (string key in directoryList.Keys) + { + msg += "<Folder>" + SomeUtils.EncodeString(key) + "</Folder>\r\n"; + } + msg += "</Directory>\r\n"; + + // send + handler.SendMessage(sock, msg); + + AndroidServer.logDebug("Reply video root dir"); + + #endregion + } + else + { + #region reply dirs + + if (Directory.Exists(dir)) + { + string msg = string.Empty; + // header + msg += "HTTP/1.0 200 Ok\r\n"; + msg += "Content-Type: application/xml; charset=utf-8; filename=info.xml" + "\r\n"; + msg += "Proxy-Connection: close" + "\r\n"; + msg += "\r\n"; + // content + msg += "<?xml version=\"1.0\"?>\r\n"; + msg += "<Directory>\r\n"; + + // folder + string[] dirs = Directory.GetDirectories(dir, "*.*", SearchOption.TopDirectoryOnly); + foreach (string f in dirs) + { + msg += "<Folder>" + SomeUtils.EncodeString(Path.GetFileName(f)) + "</Folder>\r\n"; + } + + //files + + ArrayList list = getAllpattern(dir); + + foreach (string f in list) + { + string fName = Path.GetFileName(f); + msg += "<File>" + SomeUtils.EncodeString(fName) + "</File>\r\n"; + } + + msg += "</Directory>\r\n"; + + // send + handler.SendMessage(sock, msg); + + AndroidServer.logDebug("Reply video dir : " + dir); + } + else + { + // dir does not exist + //SendErrorURL(Request); + + string msg = string.Empty; + // header + msg += "HTTP/1.0 200 Ok\r\n"; + msg += "Content-Type: application/xml; charset=utf-8; filename=info.xml" + "\r\n"; + msg += "Proxy-Connection: close" + "\r\n"; + msg += "\r\n"; + // content + msg += "<?xml version=\"1.0\"?>\r\n"; + msg += "<Directory>\r\n"; + msg += "</Directory>\r\n"; + + // send + handler.SendMessage(sock, msg); + + AndroidServer.logDebug("Reply empty picture dir"); + } + + #endregion + } + } + + private static ArrayList getAllpattern(string Dir) + { + string[] filters = { "*.avi", "*.mpg", "*.flv" , "*.mp4" }; + ArrayList files = new ArrayList(); + + foreach (string filter in filters) + { + files.AddRange(Directory.GetFiles(Dir, filter)); + } + + return files; + } + + } +} Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs 2011-01-21 16:49:31 UTC (rev 4075) @@ -268,6 +268,26 @@ #endregion + #region movies + else if (req.StartsWith("/movies")) + { + // handle movies + req = req.Substring(7); + if (req.StartsWith("/")) req = req.Substring(1); + + if (req == "") + { + // root + VideoHandler.ReplyVideoDir(socket, ""); + } + else + { + req = req.Replace("/", "\\"); + VideoHandler.ReplyVideoDir(socket, req); + } + } + #endregion + #region nowplaying else if (req.StartsWith("/nowplaying/now.xml")) { Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs 2011-01-21 16:49:31 UTC (rev 4075) @@ -39,20 +39,7 @@ this.btnSave = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.btnStop = new System.Windows.Forms.Button(); - this.btnPlay04 = new System.Windows.Forms.Button(); - this.btnPlay03 = new System.Windows.Forms.Button(); - this.btnPlay02 = new System.Windows.Forms.Button(); - this.btnPlay01 = new System.Windows.Forms.Button(); - this.label7 = new System.Windows.Forms.Label(); - this.txtRadio04 = new System.Windows.Forms.TextBox(); - this.label6 = new System.Windows.Forms.Label(); - this.txtRadio03 = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.txtRadio02 = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); - this.txtRadio01 = new System.Windows.Forms.TextBox(); - this.label8 = new System.Windows.Forms.Label(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); @@ -142,7 +129,7 @@ // btnSave // this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnSave.Location = new System.Drawing.Point(12, 391); + this.btnSave.Location = new System.Drawing.Point(12, 186); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(84, 29); this.btnSave.TabIndex = 1; @@ -153,7 +140,7 @@ // btnCancel // this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnCancel.Location = new System.Drawing.Point(104, 391); + this.btnCancel.Location = new System.Drawing.Point(104, 186); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(84, 29); this.btnCancel.TabIndex = 2; @@ -163,165 +150,29 @@ // // groupBox2 // - this.groupBox2.Controls.Add(this.label8); - this.groupBox2.Controls.Add(this.btnStop); - this.groupBox2.Controls.Add(this.btnPlay04); - this.groupBox2.Controls.Add(this.btnPlay03); - this.groupBox2.Controls.Add(this.btnPlay02); - this.groupBox2.Controls.Add(this.btnPlay01); - this.groupBox2.Controls.Add(this.label7); - this.groupBox2.Controls.Add(this.txtRadio04); - this.groupBox2.Controls.Add(this.label6); - this.groupBox2.Controls.Add(this.txtRadio03); - this.groupBox2.Controls.Add(this.label5); - this.groupBox2.Controls.Add(this.txtRadio02); this.groupBox2.Controls.Add(this.label3); - this.groupBox2.Controls.Add(this.txtRadio01); this.groupBox2.Location = new System.Drawing.Point(12, 114); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(487, 271); + this.groupBox2.Size = new System.Drawing.Size(491, 66); this.groupBox2.TabIndex = 3; this.groupBox2.TabStop = false; - this.groupBox2.Text = "Webradio"; + this.groupBox2.Text = "Streaming"; // - // btnStop - // - this.btnStop.Location = new System.Drawing.Point(338, 233); - this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(135, 32); - this.btnStop.TabIndex = 19; - this.btnStop.Text = "STOP"; - this.btnStop.UseVisualStyleBackColor = true; - this.btnStop.Click += new System.EventHandler(this.btnStop_Click); - // - // btnPlay04 - // - this.btnPlay04.Location = new System.Drawing.Point(398, 185); - this.btnPlay04.Name = "btnPlay04"; - this.btnPlay04.Size = new System.Drawing.Size(75, 23); - this.btnPlay04.TabIndex = 18; - this.btnPlay04.Text = "Test"; - this.btnPlay04.UseVisualStyleBackColor = true; - this.btnPlay04.Click += new System.EventHandler(this.btnPlay04_Click); - // - // btnPlay03 - // - this.btnPlay03.Location = new System.Drawing.Point(398, 137); - this.btnPlay03.Name = "btnPlay03"; - this.btnPlay03.Size = new System.Drawing.Size(75, 23); - this.btnPlay03.TabIndex = 17; - this.btnPlay03.Text = "Test"; - this.btnPlay03.UseVisualStyleBackColor = true; - this.btnPlay03.Click += new System.EventHandler(this.btnPlay03_Click); - // - // btnPlay02 - // - this.btnPlay02.Location = new System.Drawing.Point(398, 93); - this.btnPlay02.Name = "btnPlay02"; - this.btnPlay02.Size = new System.Drawing.Size(75, 23); - this.btnPlay02.TabIndex = 16; - this.btnPlay02.Text = "Test"; - this.btnPlay02.UseVisualStyleBackColor = true; - this.btnPlay02.Click += new System.EventHandler(this.btnPlay02_Click); - // - // btnPlay01 - // - this.btnPlay01.Location = new System.Drawing.Point(398, 46); - this.btnPlay01.Name = "btnPlay01"; - this.btnPlay01.Size = new System.Drawing.Size(75, 23); - this.btnPlay01.TabIndex = 15; - this.btnPlay01.Text = "Test"; - this.btnPlay01.UseVisualStyleBackColor = true; - this.btnPlay01.Click += new System.EventHandler(this.btnPlay01_Click); - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label7.Location = new System.Drawing.Point(14, 168); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(85, 16); - this.label7.TabIndex = 14; - this.label7.Text = "Webradio 04"; - // - // txtRadio04 - // - this.txtRadio04.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtRadio04.Location = new System.Drawing.Point(100, 186); - this.txtRadio04.Name = "txtRadio04"; - this.txtRadio04.Size = new System.Drawing.Size(292, 22); - this.txtRadio04.TabIndex = 13; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.Location = new System.Drawing.Point(14, 120); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(85, 16); - this.label6.TabIndex = 12; - this.label6.Text = "Webradio 03"; - // - // txtRadio03 - // - this.txtRadio03.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtRadio03.Location = new System.Drawing.Point(100, 138); - this.txtRadio03.Name = "txtRadio03"; - this.txtRadio03.Size = new System.Drawing.Size(292, 22); - this.txtRadio03.TabIndex = 11; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label5.Location = new System.Drawing.Point(14, 75); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(85, 16); - this.label5.TabIndex = 10; - this.label5.Text = "Webradio 02"; - // - // txtRadio02 - // - this.txtRadio02.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtRadio02.Location = new System.Drawing.Point(100, 93); - this.txtRadio02.Name = "txtRadio02"; - this.txtRadio02.Size = new System.Drawing.Size(292, 22); - this.txtRadio02.TabIndex = 9; - // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(14, 29); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(85, 16); - this.label3.TabIndex = 8; - this.label3.Text = "Webradio 01"; + this.label3.Size = new System.Drawing.Size(396, 16); + this.label3.TabIndex = 7; + this.label3.Text = "VLC parameter can be found in the vlc.par in the process directory"; // - // txtRadio01 - // - this.txtRadio01.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtRadio01.Location = new System.Drawing.Point(100, 47); - this.txtRadio01.Name = "txtRadio01"; - this.txtRadio01.Size = new System.Drawing.Size(292, 22); - this.txtRadio01.TabIndex = 7; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label8.ForeColor = System.Drawing.Color.DarkRed; - this.label8.Location = new System.Drawing.Point(118, 22); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(252, 16); - this.label8.TabIndex = 20; - this.label8.Text = "VLC 1.x need to be installed for streaming"; - // // Setup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(511, 432); + this.ClientSize = new System.Drawing.Size(514, 227); this.Controls.Add(this.groupBox2); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnSave); @@ -357,19 +208,6 @@ private System.Windows.Forms.Button btnCopy; private System.Windows.Forms.Label label4; private System.Windows.Forms.GroupBox groupBox2; - private System.Windows.Forms.Button btnPlay04; - private System.Windows.Forms.Button btnPlay03; - private System.Windows.Forms.Button btnPlay02; - private System.Windows.Forms.Button btnPlay01; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.TextBox txtRadio04; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.TextBox txtRadio03; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.TextBox txtRadio02; private System.Windows.Forms.Label label3; - private System.Windows.Forms.TextBox txtRadio01; - private System.Windows.Forms.Button btnStop; - private System.Windows.Forms.Label label8; } } \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs 2011-01-21 11:52:48 UTC (rev 4074) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs 2011-01-21 16:49:31 UTC (rev 4075) @@ -40,8 +40,6 @@ { public partial class Setup : Form { - private VideoLan.VlcControl vlc; - public Setup() { InitializeComponent(); @@ -65,11 +63,6 @@ { txtServer.Text = xmlreader.GetValueAsString("android", "server", "192.168.0.30"); txtPort.Text = xmlreader.GetValueAsString("android", "port", "8200"); - - txtRadio01.Text = xmlreader.GetValueAsString("android", "radio01", "http://ndrstream.ic.llnwd.net/stream/ndrstream_n-joy_hi_mp3"); - txtRadio02.Text = xmlreader.GetValueAsString("android", "radio02", "http://ndrstream.ic.llnwd.net/stream/ndrstream_ndr2_hi_mp3"); - txtRadio03.Text = xmlreader.GetValueAsString("android", "radio03", "http://hotmixradio80.hotmixradio.com"); - txtRadio04.Text = xmlreader.GetValueAsString("android", "radio04", "http://listen.to.techno4ever.net"); } } private void SaveSettings() @@ -79,11 +72,6 @@ { xmlwriter.SetValue("android", "server", txtServer.Text); xmlwriter.SetValue("android", "port", txtPort.Text); - - xmlwriter.SetValue("android", "radio01", txtRadio01.Text); - xmlwriter.SetValue("android", "radio02", txtRadio02.Text); - xmlwriter.SetValue("android", "radio03", txtRadio03.Text); - xmlwriter.SetValue("android", "radio04", txtRadio04.Text); } } @@ -102,62 +90,9 @@ txtServer.Text = txtMyIP.Text; } - private void btnPlay01_Click(object sender, EventArgs e) - { - PlayStream(txtRadio01.Text); - } - private void btnPlay02_Click(object sender, EventArgs e) - { - PlayStream(txtRadio02.Text); - } - private void btnPlay03_Click(object sender, EventArgs e) - { - PlayStream(txtRadio03.Text); - } - private void btnPlay04_Click(object sender, EventArgs e) - { - PlayStream(txtRadio04.Text); - } - - private void btnStop_Click(object sender, EventArgs e) - { - if (vlc != null) - { - if (vlc.IsPlaying) vlc.Stop(); - } - } - - private void PlayStream(string stream) - { - if (vlc == null) - { - Microsoft.Win32.RegistryKey regkeyVlcInstallPathKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\VideoLAN\VLC"); - if (regkeyVlcInstallPathKey != null) - { - vlc = new VideoLan.VlcControl(); - - vlc.Visible = false; - this.Controls.Add(vlc); - } - } - - if (vlc != null) - { - if (vlc.IsPlaying) vlc.Stop(); - - vlc.Open(stream); - vlc.Play(); - } - } - private void Setup_FormClosing(object sender, FormClosingEventArgs e) { - if (vlc != null) - { - if (vlc.IsPlaying) vlc.Stop(); - } + } - - } } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-21 11:52:55
|
Revision: 4074 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4074&view=rev Author: kroko_koenig Date: 2011-01-21 11:52:48 +0000 (Fri, 21 Jan 2011) Log Message: ----------- play mp3s locally on the phone settings in menu now, play video stream Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/empty.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/plugins.png Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-20 21:59:40 UTC (rev 4073) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-21 11:52:48 UTC (rev 4074) @@ -27,65 +27,67 @@ public static final int channel_p=0x7f02000a; public static final int document=0x7f02000b; public static final int down=0x7f02000c; - public static final int exit=0x7f02000d; - public static final int folder=0x7f02000e; - public static final int folderback=0x7f02000f; - public static final int foldertab=0x7f020010; - public static final int foldertab_off=0x7f020011; - public static final int forward=0x7f020012; - public static final int hibernate=0x7f020013; - public static final int home=0x7f020014; - public static final int ic_tab=0x7f020015; - public static final int ic_tab1=0x7f020016; - public static final int ic_tab2=0x7f020017; - public static final int ic_tab3=0x7f020018; - public static final int ic_tab4=0x7f020019; - public static final int icon=0x7f02001a; - public static final int info=0x7f02001b; - public static final int left=0x7f02001c; - public static final int main_music=0x7f02001d; - public static final int main_now_playing=0x7f02001e; - public static final int main_pictures=0x7f02001f; - public static final int main_remote=0x7f020020; - public static final int main_settings=0x7f020021; - public static final int main_video=0x7f020022; - public static final int menu=0x7f020023; - public static final int music=0x7f020024; - public static final int mute=0x7f020025; - public static final int n_asr=0x7f020026; - public static final int n_full=0x7f020027; - public static final int n_menu=0x7f020028; - public static final int n_osd=0x7f020029; - public static final int n_sub=0x7f02002a; - public static final int now_playing=0x7f02002b; - public static final int pause=0x7f02002c; - public static final int picture=0x7f02002d; - public static final int pictures=0x7f02002e; - public static final int play=0x7f02002f; - public static final int power_off=0x7f020030; - public static final int remote=0x7f020031; - public static final int restart=0x7f020032; - public static final int rewind=0x7f020033; - public static final int right=0x7f020034; - public static final int sel_play=0x7f020035; - public static final int sel_skp_back=0x7f020036; - public static final int sel_skp_forw=0x7f020037; - public static final int select=0x7f020038; - public static final int select2=0x7f020039; - public static final int settings=0x7f02003a; - public static final int skip_back=0x7f02003b; - public static final int skip_forward=0x7f02003c; - public static final int song=0x7f02003d; - public static final int song_off=0x7f02003e; - public static final int splash=0x7f02003f; - public static final int splash02=0x7f020040; - public static final int stop=0x7f020041; - public static final int suspend=0x7f020042; - public static final int up=0x7f020043; - public static final int video=0x7f020044; - public static final int volume_m=0x7f020045; - public static final int volume_p=0x7f020046; - public static final int wake_on_lan=0x7f020047; + public static final int empty=0x7f02000d; + public static final int exit=0x7f02000e; + public static final int folder=0x7f02000f; + public static final int folderback=0x7f020010; + public static final int foldertab=0x7f020011; + public static final int foldertab_off=0x7f020012; + public static final int forward=0x7f020013; + public static final int hibernate=0x7f020014; + public static final int home=0x7f020015; + public static final int ic_tab=0x7f020016; + public static final int ic_tab1=0x7f020017; + public static final int ic_tab2=0x7f020018; + public static final int ic_tab3=0x7f020019; + public static final int ic_tab4=0x7f02001a; + public static final int icon=0x7f02001b; + public static final int info=0x7f02001c; + public static final int left=0x7f02001d; + public static final int main_music=0x7f02001e; + public static final int main_now_playing=0x7f02001f; + public static final int main_pictures=0x7f020020; + public static final int main_remote=0x7f020021; + public static final int main_settings=0x7f020022; + public static final int main_video=0x7f020023; + public static final int menu=0x7f020024; + public static final int music=0x7f020025; + public static final int mute=0x7f020026; + public static final int n_asr=0x7f020027; + public static final int n_full=0x7f020028; + public static final int n_menu=0x7f020029; + public static final int n_osd=0x7f02002a; + public static final int n_sub=0x7f02002b; + public static final int now_playing=0x7f02002c; + public static final int pause=0x7f02002d; + public static final int picture=0x7f02002e; + public static final int pictures=0x7f02002f; + public static final int play=0x7f020030; + public static final int plugins=0x7f020031; + public static final int power_off=0x7f020032; + public static final int remote=0x7f020033; + public static final int restart=0x7f020034; + public static final int rewind=0x7f020035; + public static final int right=0x7f020036; + public static final int sel_play=0x7f020037; + public static final int sel_skp_back=0x7f020038; + public static final int sel_skp_forw=0x7f020039; + public static final int select=0x7f02003a; + public static final int select2=0x7f02003b; + public static final int settings=0x7f02003c; + public static final int skip_back=0x7f02003d; + public static final int skip_forward=0x7f02003e; + public static final int song=0x7f02003f; + public static final int song_off=0x7f020040; + public static final int splash=0x7f020041; + public static final int splash02=0x7f020042; + public static final int stop=0x7f020043; + public static final int suspend=0x7f020044; + public static final int up=0x7f020045; + public static final int video=0x7f020046; + public static final int volume_m=0x7f020047; + public static final int volume_p=0x7f020048; + public static final int wake_on_lan=0x7f020049; } public static final class id { public static final int GridView01=0x7f07001b; Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/empty.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/empty.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png =================================================================== (Binary files differ) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png =================================================================== (Binary files differ) Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/plugins.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/plugins.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-20 21:59:40 UTC (rev 4073) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-21 11:52:48 UTC (rev 4074) @@ -47,7 +47,7 @@ </Button> <Button android:layout_height="80dip" android:layout_width="80dip" - android:scaleType="fitXY" android:padding="5dip" android:background="@drawable/main_settings" android:id="@+id/btn_main_settings"> + android:scaleType="fitXY" android:padding="5dip" android:id="@+id/btn_main_settings" android:background="@drawable/plugins"> </Button> </TableRow> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-20 21:59:40 UTC (rev 4073) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-21 11:52:48 UTC (rev 4074) @@ -9,7 +9,7 @@ android:layout_width="wrap_content"> <ImageButton android:id="@+id/crtl_mp" - android:layout_height="60dip" android:layout_width="100dip"> + android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/icon"> </ImageButton> <ImageButton android:id="@+id/crtl_up" android:layout_width="100dip" android:layout_height="60dip" @@ -44,7 +44,7 @@ android:layout_gravity="center_vertical"> <ImageButton android:id="@+id/crtl_parent" - android:layout_height="60dip" android:layout_width="100dip"> + android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/home"> </ImageButton> <ImageButton android:id="@+id/crtl_down" android:layout_height="60dip" android:layout_width="100dip" @@ -111,7 +111,7 @@ android:layout_width="60dip"> </ImageButton> <ImageButton android:id="@+id/crtl_menu" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/menu"> </ImageButton> <ImageButton android:id="@+id/crtl_ch_m" android:layout_height="60dip" android:background="@drawable/channel_m" @@ -123,13 +123,13 @@ android:layout_height="wrap_content"> <ImageButton android:id="@+id/crtl_sub" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_sub"> </ImageButton> <ImageButton android:id="@+id/crtl_ratio" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_asr"> </ImageButton> <ImageButton android:id="@+id/crtl_osd" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_osd"> </ImageButton> <ImageButton android:id="@+id/crtl_info" android:layout_height="60dip" android:background="@drawable/info" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-20 21:59:40 UTC (rev 4073) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-21 11:52:48 UTC (rev 4074) @@ -46,6 +46,7 @@ import android.content.DialogInterface; import android.content.Intent; import android.net.ConnectivityManager; +import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; @@ -147,13 +148,16 @@ public void onClick(View view) { Vibration.vibrateShort(); - Toast.makeText(view.getContext(), - "not implemented yet. Sorry !", Toast.LENGTH_SHORT) - .show(); + //Toast.makeText(view.getContext(), + // "not implemented yet. Sorry !", Toast.LENGTH_SHORT) + // .show(); // Intent myIntent = new Intent(view.getContext(), // MediaPlayerControl.class); // startActivity(myIntent); + + startActivity(new Intent(Intent.ACTION_VIEW, + Uri.parse("rtsp://" + AppSettings.getServer() + ":5554/android.sdp"))); } }); @@ -180,8 +184,10 @@ btnSettings.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - Intent myIntent = new Intent(view.getContext(), Setup.class); - startActivity(myIntent); + + Toast.makeText(view.getContext(), + "not implemented yet. Sorry !", Toast.LENGTH_SHORT) + .show(); } }); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java 2011-01-20 21:59:40 UTC (rev 4073) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java 2011-01-21 11:52:48 UTC (rev 4074) @@ -28,6 +28,7 @@ import mediaportal.remote.directory.ReceiveDirHandler; import mediaportal.remote.directory.ReceiveDirectoryXmlHandler; import mediaportal.remote.directory.ReceiveDirectoryXmlHandler.DirItems; +import mediaportal.remote.utils.AppSettings; import mediaportal.remote.utils.MediaScannerNotifier; import mediaportal.remote.utils.Vibration; import android.app.Activity; @@ -35,6 +36,8 @@ import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; +import android.content.Intent; +import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; @@ -64,9 +67,9 @@ private static ReceiveDirectoryXmlHandler.DirItems selectedItem; final CharSequence[] items = { "Add to playlist", "Clear playlist", - "Save to SD card", "Cancel" }; + "Save to SD card", "Play locally" }; - final CharSequence[] itemsLong = { "Add folder to playlist", "Clear playlist", "Cancel" }; + final CharSequence[] itemsLong = { "Add folder to playlist", "Clear playlist" }; @Override public void onCreate(Bundle savedInstanceState) { @@ -119,6 +122,17 @@ case 2: SavetoSDCard(selectedItem.File); break; + case 3: + + String link = "http://" + AppSettings.getServer() + + ":" + AppSettings.getPort() + "/music/" + actualDir + + selectedItem.File.replaceAll(" ", "%20"); + + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.parse(link), "audio/mp3"); + + startActivity(intent); + break; } } }); @@ -181,9 +195,6 @@ "Playlist has been cleared", Toast.LENGTH_SHORT).show(); break; - case 2: - // cancel - break; } } }); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java 2011-01-20 21:59:40 UTC (rev 4073) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java 2011-01-21 11:52:48 UTC (rev 4074) @@ -43,6 +43,7 @@ import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; +import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; @@ -81,7 +82,7 @@ ReceiveDbXmlHandler.DbItems selectedItem = null; final CharSequence[] items = { "Add to playlist", "Clear playlist", - "Save to SD card", "Cancel" }; + "Save to SD card", "Play locally" }; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -127,6 +128,15 @@ case 2: SavetoSDCard(selectedItem); break; + case 3: + String link = "http://" + AppSettings.getServer() + + ":" + AppSettings.getPort() + "/db_music/getfile?id=" + selectedItem.ID; + + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.parse(link), "audio/mp3"); + + startActivity(intent); + break; } } }); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java 2011-01-20 21:59:40 UTC (rev 4073) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java 2011-01-21 11:52:48 UTC (rev 4074) @@ -43,6 +43,7 @@ import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; +import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; @@ -72,7 +73,7 @@ ReceiveDbXmlHandler.DbItems selectedItem = null; final CharSequence[] items = { "Add to playlist", "Clear playlist", - "Save to SD card", "Cancel" }; + "Save to SD card", "Play locally" }; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -115,6 +116,15 @@ selectedItem.Title + " has been transferd", Toast.LENGTH_SHORT).show(); break; + case 3: + String link = "http://" + AppSettings.getServer() + + ":" + AppSettings.getPort() + "/db_music/getfile?id=" + selectedItem.ID; + + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.parse(link), "audio/mp3"); + + startActivity(intent); + break; } } }); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-20 21:59:50
|
Revision: 4073 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4073&view=rev Author: kroko_koenig Date: 2011-01-20 21:59:40 +0000 (Thu, 20 Jan 2011) Log Message: ----------- pictures sometimes crashes (threading) Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_song.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/pictures.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ReceiveDbXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-20 21:59:40 UTC (rev 4073) @@ -52,67 +52,74 @@ public static final int menu=0x7f020023; public static final int music=0x7f020024; public static final int mute=0x7f020025; - public static final int now_playing=0x7f020026; - public static final int pause=0x7f020027; - public static final int picture=0x7f020028; - public static final int pictures=0x7f020029; - public static final int play=0x7f02002a; - public static final int power_off=0x7f02002b; - public static final int remote=0x7f02002c; - public static final int restart=0x7f02002d; - public static final int rewind=0x7f02002e; - public static final int right=0x7f02002f; - public static final int sel_play=0x7f020030; - public static final int sel_skp_back=0x7f020031; - public static final int sel_skp_forw=0x7f020032; - public static final int select=0x7f020033; - public static final int select2=0x7f020034; - public static final int settings=0x7f020035; - public static final int skip_back=0x7f020036; - public static final int skip_forward=0x7f020037; - public static final int song=0x7f020038; - public static final int song_off=0x7f020039; - public static final int splash=0x7f02003a; - public static final int splash02=0x7f02003b; - public static final int stop=0x7f02003c; - public static final int suspend=0x7f02003d; - public static final int up=0x7f02003e; - public static final int video=0x7f02003f; - public static final int volume_m=0x7f020040; - public static final int volume_p=0x7f020041; - public static final int wake_on_lan=0x7f020042; + public static final int n_asr=0x7f020026; + public static final int n_full=0x7f020027; + public static final int n_menu=0x7f020028; + public static final int n_osd=0x7f020029; + public static final int n_sub=0x7f02002a; + public static final int now_playing=0x7f02002b; + public static final int pause=0x7f02002c; + public static final int picture=0x7f02002d; + public static final int pictures=0x7f02002e; + public static final int play=0x7f02002f; + public static final int power_off=0x7f020030; + public static final int remote=0x7f020031; + public static final int restart=0x7f020032; + public static final int rewind=0x7f020033; + public static final int right=0x7f020034; + public static final int sel_play=0x7f020035; + public static final int sel_skp_back=0x7f020036; + public static final int sel_skp_forw=0x7f020037; + public static final int select=0x7f020038; + public static final int select2=0x7f020039; + public static final int settings=0x7f02003a; + public static final int skip_back=0x7f02003b; + public static final int skip_forward=0x7f02003c; + public static final int song=0x7f02003d; + public static final int song_off=0x7f02003e; + public static final int splash=0x7f02003f; + public static final int splash02=0x7f020040; + public static final int stop=0x7f020041; + public static final int suspend=0x7f020042; + public static final int up=0x7f020043; + public static final int video=0x7f020044; + public static final int volume_m=0x7f020045; + public static final int volume_p=0x7f020046; + public static final int wake_on_lan=0x7f020047; } public static final class id { - public static final int GridView01=0x7f070018; - public static final int ImageView01=0x7f07001a; - public static final int LinearLayout00=0x7f070059; - public static final int LinearLayout01=0x7f070021; - public static final int LinearLayout02=0x7f070064; - public static final int LinearLayout03=0x7f07006e; - public static final int LinearLayout04=0x7f070078; - public static final int LinearLayout05=0x7f07007e; - public static final int ListView01=0x7f07002f; - public static final int Spinner01=0x7f070089; - public static final int SurfaceView01=0x7f070020; + public static final int GridView01=0x7f07001b; + public static final int ImageView01=0x7f07001d; + public static final int LinearLayout00=0x7f07005c; + public static final int LinearLayout01=0x7f070024; + public static final int LinearLayout02=0x7f070067; + public static final int LinearLayout03=0x7f070071; + public static final int LinearLayout04=0x7f07007b; + public static final int LinearLayout05=0x7f070081; + public static final int ListView01=0x7f070032; + public static final int Spinner01=0x7f07008c; + public static final int SurfaceView01=0x7f070023; public static final int TableLayout01=0x7f070005; - public static final int TableLayout02=0x7f07003e; + public static final int TableLayout02=0x7f070041; public static final int TableRow01=0x7f070007; - public static final int TableRow02=0x7f070043; - public static final int TableRow03=0x7f070048; + public static final int TableRow02=0x7f070046; + public static final int TableRow03=0x7f07004b; public static final int TextView01=0x7f070003; public static final int TextView02=0x7f070004; - public static final int btnChannelDown=0x7f070052; - public static final int btnChannelUp=0x7f07004f; - public static final int btnExit=0x7f070053; - public static final int btnHibernate=0x7f070055; - public static final int btnIpSettings=0x7f07008b; - public static final int btnRestart=0x7f070056; - public static final int btnShutOff=0x7f070057; - public static final int btnSuspend=0x7f070054; - public static final int btnVolumeDown=0x7f070051; - public static final int btnVolumeMute=0x7f070050; - public static final int btnVolumeUp=0x7f07004e; - public static final int btnWakeOnLan=0x7f070058; + public static final int btnChannelDown=0x7f070055; + public static final int btnChannelUp=0x7f070052; + public static final int btnExit=0x7f070056; + public static final int btnHibernate=0x7f070058; + public static final int btnIpSettings=0x7f07008e; + public static final int btnRestart=0x7f070059; + public static final int btnSelDown=0x7f070018; + public static final int btnSelUp=0x7f070019; + public static final int btnShutOff=0x7f07005a; + public static final int btnSuspend=0x7f070057; + public static final int btnVolumeDown=0x7f070054; + public static final int btnVolumeMute=0x7f070053; + public static final int btnVolumeUp=0x7f070051; + public static final int btnWakeOnLan=0x7f07005b; public static final int btn_main_music=0x7f070009; public static final int btn_main_now_playing=0x7f07000c; public static final int btn_main_pictures=0x7f070008; @@ -122,77 +129,77 @@ public static final int btn_main_skp_back=0x7f07000f; public static final int btn_main_skp_forw=0x7f070011; public static final int btn_main_video=0x7f07000a; - public static final int btnkey01=0x7f07005a; - public static final int btnkey02=0x7f07005b; - public static final int btnkey03=0x7f07005c; - public static final int btnkey04=0x7f07005d; - public static final int btnkey05=0x7f07005e; - public static final int btnkey06=0x7f07005f; - public static final int btnkey07=0x7f070060; - public static final int btnkey08=0x7f070061; - public static final int btnkey09=0x7f070062; - public static final int btnkey10=0x7f070063; - public static final int btnkey11=0x7f070065; - public static final int btnkey12=0x7f070066; - public static final int btnkey13=0x7f070067; - public static final int btnkey14=0x7f070068; - public static final int btnkey15=0x7f070069; - public static final int btnkey16=0x7f07006a; - public static final int btnkey17=0x7f07006b; - public static final int btnkey18=0x7f07006c; - public static final int btnkey19=0x7f07006d; - public static final int btnkey20=0x7f07006f; - public static final int btnkey21=0x7f070070; - public static final int btnkey22=0x7f070071; - public static final int btnkey23=0x7f070072; - public static final int btnkey24=0x7f070073; - public static final int btnkey25=0x7f070074; - public static final int btnkey26=0x7f070075; - public static final int btnkey27=0x7f070076; - public static final int btnkey28=0x7f070077; - public static final int btnkey29=0x7f070079; - public static final int btnkey30=0x7f07007a; - public static final int btnkey31=0x7f07007b; - public static final int btnkey32=0x7f07007c; - public static final int btnkey33=0x7f07007d; - public static final int btnkey41=0x7f07007f; - public static final int btnkey42=0x7f070080; - public static final int btnkey43=0x7f070081; - public static final int btnkey44=0x7f070082; - public static final int btnkey45=0x7f070083; - public static final int btnkey46=0x7f070084; - public static final int btnkey47=0x7f070085; - public static final int btnkey48=0x7f070086; - public static final int btnkey49=0x7f070087; - public static final int btnkey50=0x7f070088; - public static final int button_open=0x7f07001d; - public static final int button_stream=0x7f07001e; - public static final int button_stream_stop=0x7f07001f; - public static final int clearplaylist=0x7f070098; - public static final int crtl_back=0x7f07003b; - public static final int crtl_ch_m=0x7f070047; - public static final int crtl_ch_p=0x7f070042; - public static final int crtl_down=0x7f07003a; - public static final int crtl_full=0x7f070044; - public static final int crtl_info=0x7f07004c; - public static final int crtl_left=0x7f070035; - public static final int crtl_menu=0x7f070046; - public static final int crtl_mp=0x7f070031; - public static final int crtl_osd=0x7f07004b; - public static final int crtl_parent=0x7f070039; - public static final int crtl_play=0x7f070045; - public static final int crtl_power=0x7f070033; - public static final int crtl_ratio=0x7f07004a; - public static final int crtl_right=0x7f070037; - public static final int crtl_select=0x7f070036; - public static final int crtl_skip_back=0x7f07003f; - public static final int crtl_skip_forw=0x7f070041; - public static final int crtl_stop=0x7f070040; - public static final int crtl_sub=0x7f070049; - public static final int crtl_up=0x7f070032; - public static final int crtl_vol_m=0x7f07003d; - public static final int crtl_vol_p=0x7f07003c; - public static final int full_text=0x7f070019; + public static final int btnkey01=0x7f07005d; + public static final int btnkey02=0x7f07005e; + public static final int btnkey03=0x7f07005f; + public static final int btnkey04=0x7f070060; + public static final int btnkey05=0x7f070061; + public static final int btnkey06=0x7f070062; + public static final int btnkey07=0x7f070063; + public static final int btnkey08=0x7f070064; + public static final int btnkey09=0x7f070065; + public static final int btnkey10=0x7f070066; + public static final int btnkey11=0x7f070068; + public static final int btnkey12=0x7f070069; + public static final int btnkey13=0x7f07006a; + public static final int btnkey14=0x7f07006b; + public static final int btnkey15=0x7f07006c; + public static final int btnkey16=0x7f07006d; + public static final int btnkey17=0x7f07006e; + public static final int btnkey18=0x7f07006f; + public static final int btnkey19=0x7f070070; + public static final int btnkey20=0x7f070072; + public static final int btnkey21=0x7f070073; + public static final int btnkey22=0x7f070074; + public static final int btnkey23=0x7f070075; + public static final int btnkey24=0x7f070076; + public static final int btnkey25=0x7f070077; + public static final int btnkey26=0x7f070078; + public static final int btnkey27=0x7f070079; + public static final int btnkey28=0x7f07007a; + public static final int btnkey29=0x7f07007c; + public static final int btnkey30=0x7f07007d; + public static final int btnkey31=0x7f07007e; + public static final int btnkey32=0x7f07007f; + public static final int btnkey33=0x7f070080; + public static final int btnkey41=0x7f070082; + public static final int btnkey42=0x7f070083; + public static final int btnkey43=0x7f070084; + public static final int btnkey44=0x7f070085; + public static final int btnkey45=0x7f070086; + public static final int btnkey46=0x7f070087; + public static final int btnkey47=0x7f070088; + public static final int btnkey48=0x7f070089; + public static final int btnkey49=0x7f07008a; + public static final int btnkey50=0x7f07008b; + public static final int button_open=0x7f070020; + public static final int button_stream=0x7f070021; + public static final int button_stream_stop=0x7f070022; + public static final int clearplaylist=0x7f07009b; + public static final int crtl_back=0x7f07003e; + public static final int crtl_ch_m=0x7f07004a; + public static final int crtl_ch_p=0x7f070045; + public static final int crtl_down=0x7f07003d; + public static final int crtl_full=0x7f070047; + public static final int crtl_info=0x7f07004f; + public static final int crtl_left=0x7f070038; + public static final int crtl_menu=0x7f070049; + public static final int crtl_mp=0x7f070034; + public static final int crtl_osd=0x7f07004e; + public static final int crtl_parent=0x7f07003c; + public static final int crtl_play=0x7f070048; + public static final int crtl_power=0x7f070036; + public static final int crtl_ratio=0x7f07004d; + public static final int crtl_right=0x7f07003a; + public static final int crtl_select=0x7f070039; + public static final int crtl_skip_back=0x7f070042; + public static final int crtl_skip_forw=0x7f070044; + public static final int crtl_stop=0x7f070043; + public static final int crtl_sub=0x7f07004c; + public static final int crtl_up=0x7f070035; + public static final int crtl_vol_m=0x7f070040; + public static final int crtl_vol_p=0x7f07003f; + public static final int full_text=0x7f07001c; public static final int icon_image=0x7f070001; public static final int icon_text=0x7f070002; public static final int list_album=0x7f070014; @@ -201,46 +208,47 @@ public static final int list_song=0x7f070017; public static final int main_now_playing=0x7f07000e; public static final int music_grid=0x7f070013; - public static final int naviRemote_text=0x7f07004d; - public static final int now_album=0x7f070023; - public static final int now_artist=0x7f070029; - public static final int now_cd=0x7f070024; - public static final int now_list=0x7f07002e; - public static final int now_next=0x7f07002d; - public static final int now_play=0x7f07002c; - public static final int now_playing=0x7f070022; - public static final int now_playing_right=0x7f070027; - public static final int now_playing_t_left=0x7f070026; - public static final int now_prev=0x7f07002a; - public static final int now_progress=0x7f070025; - public static final int now_stop=0x7f07002b; - public static final int now_title=0x7f070028; - public static final int open=0x7f07009b; - public static final int playlist=0x7f070097; - public static final int radio01=0x7f070092; - public static final int radio02=0x7f070093; - public static final int radio03=0x7f070094; - public static final int radio04=0x7f070095; - public static final int radioStop=0x7f070096; - public static final int rslide=0x7f07009e; - public static final int save=0x7f07009a; - public static final int sdcard=0x7f070099; - public static final int send=0x7f07009c; - public static final int server_ip=0x7f07008c; - public static final int server_macid=0x7f07008e; - public static final int server_name=0x7f070090; - public static final int server_port=0x7f07008d; - public static final int slide=0x7f07009d; - public static final int text_kb_streamed=0x7f07001b; - public static final int title=0x7f070091; - public static final int txtFile=0x7f07001c; + public static final int naviRemote_text=0x7f070050; + public static final int now_album=0x7f070026; + public static final int now_artist=0x7f07002c; + public static final int now_cd=0x7f070027; + public static final int now_list=0x7f070031; + public static final int now_next=0x7f070030; + public static final int now_play=0x7f07002f; + public static final int now_playing=0x7f070025; + public static final int now_playing_right=0x7f07002a; + public static final int now_playing_t_left=0x7f070029; + public static final int now_prev=0x7f07002d; + public static final int now_progress=0x7f070028; + public static final int now_stop=0x7f07002e; + public static final int now_title=0x7f07002b; + public static final int open=0x7f07009e; + public static final int playlist=0x7f07009a; + public static final int radio01=0x7f070095; + public static final int radio02=0x7f070096; + public static final int radio03=0x7f070097; + public static final int radio04=0x7f070098; + public static final int radioStop=0x7f070099; + public static final int rslide=0x7f0700a1; + public static final int save=0x7f07009d; + public static final int sdcard=0x7f07009c; + public static final int send=0x7f07009f; + public static final int server_ip=0x7f07008f; + public static final int server_macid=0x7f070091; + public static final int server_name=0x7f070093; + public static final int server_port=0x7f070090; + public static final int slide=0x7f0700a0; + public static final int text_kb_streamed=0x7f07001e; + public static final int title=0x7f070094; + public static final int txtDirectory=0x7f07001a; + public static final int txtFile=0x7f07001f; public static final int txtInstance=0x7f070006; - public static final int txtIntanceName=0x7f07008f; - public static final int vibration=0x7f07008a; + public static final int txtIntanceName=0x7f070092; + public static final int vibration=0x7f07008d; public static final int widget0=0x7f070012; - public static final int widget00=0x7f070030; - public static final int widget01=0x7f070034; - public static final int widget02=0x7f070038; + public static final int widget00=0x7f070033; + public static final int widget01=0x7f070037; + public static final int widget02=0x7f07003b; public static final int widget44=0x7f070000; } public static final class layout { Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_asr.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_full.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_menu.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_osd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/n_sub.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_song.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_song.xml 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/music_song.xml 2011-01-20 21:59:40 UTC (rev 4073) @@ -4,6 +4,22 @@ android:layout_height="fill_parent"> <ListView android:id="@+id/list_song" android:layout_height="wrap_content" - android:layout_width="fill_parent" android:fastScrollEnabled="true"> + android:layout_width="fill_parent" android:fastScrollEnabled="true" android:layout_weight="1"> </ListView> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:orientation="horizontal" android:layout_gravity="center_horizontal" android:layout_width="wrap_content"> + + <Button android:background="@drawable/down" android:id="@+id/btnSelDown" android:layout_height="60dip" android:layout_width="60dip"> + </Button> + + <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" + android:text="1000/4000 items" android:textColor="#FFFFFFFF" + android:id="@+id/txtInstance" android:textSize="18dip" android:layout_marginLeft="10dip" android:layout_marginRight="10dip"> + </TextView> + + <Button android:background="@drawable/up" android:id="@+id/btnSelUp" android:layout_height="60dip" android:layout_width="60dip"> + </Button> + </LinearLayout> </LinearLayout> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/pictures.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/pictures.xml 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/pictures.xml 2011-01-20 21:59:40 UTC (rev 4073) @@ -1,6 +1,13 @@ -<AbsoluteLayout android:id="@+id/widget0" +<LinearLayout android:id="@+id/widget0" android:layout_width="fill_parent" android:layout_height="wrap_content" - xmlns:android="http://schemas.android.com/apk/res/android"> + xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"> + + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Actual: ..." android:textColor="#FFFFFFFF" + android:textSize="20dip" + android:id="@+id/txtDirectory" android:paddingBottom="5dip"></TextView> + <GridView android:layout_y="0dip" android:layout_x="0dip" android:id="@+id/GridView01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:columnWidth="90dp" @@ -8,5 +15,5 @@ android:horizontalSpacing="10dp" android:stretchMode="columnWidth" android:gravity="center"> </GridView> -</AbsoluteLayout> +</LinearLayout> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-20 21:59:40 UTC (rev 4073) @@ -9,7 +9,7 @@ android:layout_width="wrap_content"> <ImageButton android:id="@+id/crtl_mp" - android:layout_height="60dip" android:layout_width="100dip"> + android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/icon"> </ImageButton> <ImageButton android:id="@+id/crtl_up" android:layout_width="100dip" android:layout_height="60dip" @@ -43,7 +43,7 @@ android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> <ImageButton android:id="@+id/crtl_parent" - android:layout_height="60dip" android:layout_width="100dip"> + android:layout_height="60dip" android:layout_width="100dip" android:background="@drawable/home"> </ImageButton> <ImageButton android:id="@+id/crtl_down" android:layout_height="60dip" android:layout_width="100dip" @@ -103,14 +103,14 @@ android:layout_height="wrap_content"> <ImageButton android:id="@+id/crtl_full" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_full"> </ImageButton> <ImageButton android:id="@+id/crtl_play" android:layout_height="60dip" android:background="@drawable/right" android:layout_width="60dip"> </ImageButton> <ImageButton android:id="@+id/crtl_menu" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/menu"> </ImageButton> <ImageButton android:id="@+id/crtl_ch_m" android:layout_height="60dip" android:background="@drawable/channel_m" @@ -122,13 +122,13 @@ android:layout_height="wrap_content"> <ImageButton android:id="@+id/crtl_sub" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_sub"> </ImageButton> <ImageButton android:id="@+id/crtl_ratio" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_asr"> </ImageButton> <ImageButton android:id="@+id/crtl_osd" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_osd"> </ImageButton> <ImageButton android:id="@+id/crtl_info" android:layout_height="60dip" android:background="@drawable/info" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-20 21:59:40 UTC (rev 4073) @@ -104,7 +104,7 @@ android:layout_height="wrap_content"> <ImageButton android:id="@+id/crtl_full" - android:layout_height="60dip" android:layout_width="60dip"> + android:layout_height="60dip" android:layout_width="60dip" android:background="@drawable/n_full"> </ImageButton> <ImageButton android:id="@+id/crtl_play" android:layout_height="60dip" android:background="@drawable/right" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-20 21:59:40 UTC (rev 4073) @@ -30,7 +30,6 @@ import mediaportal.remote.R; import mediaportal.remote.communication.SendCommand; import mediaportal.remote.control.Remote_01; -import mediaportal.remote.multimedia.Webradio; import mediaportal.remote.music.MusicTab; import mediaportal.remote.nowPlaying.NowPlaying; import mediaportal.remote.nowPlaying.NowPlayingXmlHandler; @@ -152,9 +151,9 @@ "not implemented yet. Sorry !", Toast.LENGTH_SHORT) .show(); - //Intent myIntent = new Intent(view.getContext(), - //MediaPlayerControl.class); - //startActivity(myIntent); + // Intent myIntent = new Intent(view.getContext(), + // MediaPlayerControl.class); + // startActivity(myIntent); } }); @@ -181,7 +180,7 @@ btnSettings.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - Intent myIntent = new Intent(view.getContext(), Webradio.class); + Intent myIntent = new Intent(view.getContext(), Setup.class); startActivity(myIntent); } }); @@ -208,17 +207,17 @@ } // hardware keys - @Override public boolean onKeyDown(int keyCode, KeyEvent event) { + @Override + public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_MENU: { - - final CharSequence[] items = { "Settings", - "Switch HTPC", "Exit", "Cancel" }; - + + final CharSequence[] items = { "Settings", "Switch HTPC", "Exit" }; + AlertDialog.Builder builder = new AlertDialog.Builder(Main.this); builder.setTitle("Select option"); - + builder.setItems(items, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { switch (item) { @@ -228,45 +227,47 @@ break; case 1: // switch instance final CharSequence[] items2 = AppSettings.getNames(); - - AlertDialog.Builder builder = new AlertDialog.Builder(Main.this); + + AlertDialog.Builder builder = new AlertDialog.Builder( + Main.this); builder.setTitle("Select instance"); - - builder.setItems(items2, new DialogInterface.OnClickListener() { - public void onClick(DialogInterface dialog, int item) { - switch (item) { - case 0: // MP1 - AppSettings.setInstance(1); - break; - case 1: // MP2 - AppSettings.setInstance(2); - break; - case 2: // MP3 - AppSettings.setInstance(3); - break; - } - TextView txtHtpc = (TextView) findViewById(R.id.txtInstance); - txtHtpc.setText(AppSettings.getName()); - - Pictures.actualDir = ""; - } - - }); - + + builder.setItems(items2, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, + int item) { + switch (item) { + case 0: // MP1 + AppSettings.setInstance(1); + break; + case 1: // MP2 + AppSettings.setInstance(2); + break; + case 2: // MP3 + AppSettings.setInstance(3); + break; + } + TextView txtHtpc = (TextView) findViewById(R.id.txtInstance); + txtHtpc.setText(AppSettings.getName()); + + Pictures.actualDir = ""; + } + + }); + AlertDialog alert = builder.create(); alert.show(); break; case 2: // exit - android.os.Process.killProcess(android.os.Process.myPid()); + android.os.Process.killProcess(android.os.Process + .myPid()); break; - case 3: // cancel - break; } } }); AlertDialog alert = builder.create(); alert.show(); - + return true; } case KeyEvent.KEYCODE_VOLUME_UP: { @@ -281,10 +282,10 @@ return super.onKeyDown(keyCode, event); } - + private boolean reportExist() { - File f = new File("stack.trace"); - return f.exists(); + File f = new File("stack.trace"); + return f.exists(); } private void sendReport() { @@ -324,7 +325,7 @@ this.deleteFile("stack.trace"); } - void chkStatus() { + void chkStatus() { final ConnectivityManager connMgr = (ConnectivityManager) this .getSystemService(Context.CONNECTIVITY_SERVICE); @@ -357,7 +358,7 @@ TextView txtHtpc = (TextView) findViewById(R.id.txtInstance); txtHtpc.setText(AppSettings.getName()); - + mHandler.removeCallbacks(mUpdateTimeTask); mHandler.postDelayed(mUpdateTimeTask, 1000); @@ -428,7 +429,7 @@ } if (doUpdate) - mHandler.postDelayed(mUpdateTimeTask, 1000); + mHandler.postDelayed(mUpdateTimeTask, 2000); } } Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ReceiveDbXmlHandler.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ReceiveDbXmlHandler.java 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ReceiveDbXmlHandler.java 2011-01-20 21:59:40 UTC (rev 4073) @@ -30,23 +30,26 @@ public class ReceiveDbXmlHandler extends DefaultHandler { Boolean currentElement = false; String currentValue = null; - - public ArrayList<DbItems> DbList = new ArrayList<DbItems>(); - - public static class DbItems - { - public String Title = ""; - public String Artist= ""; - public String Album= ""; - public String AlbumArtist= ""; - public String Track= ""; - public String Rating= ""; - public String Filename= ""; - public String Duration= ""; - public String ID= ""; + + public ArrayList<DbItems> DbList = new ArrayList<DbItems>(); + public int Results; + public int Start; + public int Count; + + public static class DbItems { + public String Title = ""; + public String Artist = ""; + public String Album = ""; + public String AlbumArtist = ""; + public String Track = ""; + public String Rating = ""; + public String Filename = ""; + public String Duration = ""; + public String ID = ""; } + private DbItems currentDbItem; - + /** * Called when tag starts ( example:- <name>AndroidPeople</name> -- <name> ) */ @@ -54,14 +57,20 @@ public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { currentElement = true; - + currentValue = ""; - if (localName == "Database")DbList = new ArrayList<DbItems>(); - if (localName == "Item")currentDbItem = new DbItems(); + if (localName == "Database") { + DbList = new ArrayList<DbItems>(); + Results = 0; + Start = 0; + } + if (localName == "Item") + currentDbItem = new DbItems(); } /** - * Called when tag closing ( example:- <name>AndroidPeople</name> -- </name> ) + * Called when tag closing ( example:- <name>AndroidPeople</name> -- </name> + * ) */ @Override public void endElement(String uri, String localName, String qName) @@ -70,24 +79,53 @@ currentElement = false; /** set value */ - if (localName == "Artist") {currentDbItem.Artist =currentValue;} - if (localName == "Title") {currentDbItem.Title =currentValue;} - if (localName == "Album") {currentDbItem.Album =currentValue;} - if (localName == "AlbumArtist") {currentDbItem.AlbumArtist =currentValue;} - if (localName == "Track") {currentDbItem.Track =currentValue;} - if (localName == "Rating") {currentDbItem.Rating =currentValue;} - if (localName == "Filename") {currentDbItem.Filename =currentValue;} - if (localName == "Duration") {currentDbItem.Duration =currentValue;} - if (localName == "ID") {currentDbItem.ID =currentValue;} - - if (localName == "Item")DbList.add(currentDbItem); - + if (localName == "Results") { + Results = Integer.parseInt(currentValue); + } + if (localName == "Start") { + Start = Integer.parseInt(currentValue); + } + if (localName == "Count") { + Count = Integer.parseInt(currentValue); + } + + if (localName == "Artist") { + currentDbItem.Artist = currentValue; + } + if (localName == "Title") { + currentDbItem.Title = currentValue; + } + if (localName == "Album") { + currentDbItem.Album = currentValue; + } + if (localName == "AlbumArtist") { + currentDbItem.AlbumArtist = currentValue; + } + if (localName == "Track") { + currentDbItem.Track = currentValue; + } + if (localName == "Rating") { + currentDbItem.Rating = currentValue; + } + if (localName == "Filename") { + currentDbItem.Filename = currentValue; + } + if (localName == "Duration") { + currentDbItem.Duration = currentValue; + } + if (localName == "ID") { + currentDbItem.ID = currentValue; + } + + if (localName == "Item") + DbList.add(currentDbItem); + currentValue = null; } /** - * Called to get tag characters ( example:- <name>AndroidPeople</name> -- to get - * AndroidPeople Character ) + * Called to get tag characters ( example:- <name>AndroidPeople</name> -- to + * get AndroidPeople Character ) */ @Override public void characters(char[] ch, int start, int length) Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java 2011-01-20 21:59:40 UTC (rev 4073) @@ -35,7 +35,6 @@ import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; -import android.os.Handler; import android.util.Log; import android.view.LayoutInflater; import android.view.View; @@ -50,30 +49,37 @@ public class Pictures extends Activity { - private Handler mHandler = new Handler(); - public static String actualDir = ""; public static ArrayList<ReceiveDirectoryXmlHandler.DirItems> pictureList; public static int selectedPicture; private static int picNo; - final CharSequence[] itemsLong = { "Slideshow", "Random Slideshow", - "Cancel" }; + private BaseAdapter adapter; + private update taskFetchData; + private fetchPictures taskFetchPictures; + + final CharSequence[] itemsLong = { "Slideshow", "Random Slideshow" }; + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pictures); - mHandler.removeCallbacks(mUpdateTimeTask); - mHandler.postDelayed(mUpdateTimeTask, 100); + adapter = new ImageAdapter2(Pictures.this); + taskFetchData = new update(); + taskFetchData.execute(); + GridView gridview = (GridView) findViewById(R.id.GridView01); + gridview.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { + taskFetchPictures.requestStop(); + ImageView iv = (ImageView) v.findViewById(R.id.icon_image); picItem pic = (picItem) iv.getTag(); @@ -89,8 +95,8 @@ if (pic.typ == "folder") { actualDir += pic.title.replaceAll(" ", "%20") + "/"; - mHandler.removeCallbacks(mUpdateTimeTask); - mHandler.postDelayed(mUpdateTimeTask, 0); + taskFetchData = new update(); + taskFetchData.execute(); } if (pic.typ == "oneup") { @@ -104,26 +110,44 @@ } else actualDir = ""; - mHandler.removeCallbacks(mUpdateTimeTask); - mHandler.postDelayed(mUpdateTimeTask, 0); + taskFetchData = new update(); + taskFetchData.execute(); } } }); } - private Runnable mUpdateTimeTask = new Runnable() { - public void run() { - new update().execute(); + public void onResume() { + super.onResume(); + + picNo = 0; + + if (pictureList != null) { + taskFetchPictures = new fetchPictures(); + taskFetchPictures.execute(); } - }; + } private class update extends AsyncTask<String, Void, Void> { private final ProgressDialog dialog = new ProgressDialog(Pictures.this); // can use UI thread here protected void onPreExecute() { - this.dialog.setMessage("Loading..."); - this.dialog.show(); + try { + this.dialog.setMessage("Loading..."); + this.dialog.show(); + + String dsp = actualDir; + int len = dsp.length(); + + if(dsp=="") dsp = "root"; + if(len>25) dsp = "..." + dsp.substring(len-20, len); + + TextView txt = (TextView) findViewById(R.id.txtDirectory); + txt.setText("Act: " + dsp); + + } catch (Exception ex) { + } } // automatically done on worker thread (separate from UI thread) @@ -139,7 +163,10 @@ // can use UI thread here protected void onPostExecute(final Void unused) { if (this.dialog.isShowing()) { - this.dialog.dismiss(); + try { + this.dialog.dismiss(); + } catch (Exception ex) { + } } Log.d("MediaPortal", "pictures read folder finished"); @@ -151,25 +178,26 @@ if (pictureList.size() == 0) { Toast.makeText(Pictures.this, "no items", Toast.LENGTH_SHORT).show(); - } else { - GridView gridview = (GridView) findViewById(R.id.GridView01); - gridview.setAdapter(new ImageAdapter2(Pictures.this)); + } + GridView gridview = (GridView) findViewById(R.id.GridView01); + gridview.setAdapter(adapter); - picNo = 0; - mFetchTask.run(); - } + picNo = 0; + + taskFetchPictures = new fetchPictures(); + taskFetchPictures.execute(); } } } - private Runnable mFetchTask = new Runnable() { - public void run() { - new fetchPictures().execute(); + private class fetchPictures extends AsyncTask<String, Void, Void> { + + private volatile boolean stop = false; + + public synchronized void requestStop() { + stop = true; } - }; - private class fetchPictures extends AsyncTask<String, Void, Void> { - // can use UI thread here protected void onPreExecute() { @@ -180,9 +208,9 @@ HttpHandler http = new HttpHandler(); String server = AppSettings.getWebServer() + "/pictures/"; - - while(picNo < pictureList.size()) { + while (picNo < pictureList.size()) { + DirItems item = pictureList.get(picNo); if (!item.isFolder) { if (item.Picture == null) { @@ -194,17 +222,28 @@ } picNo++; } + + try { + Thread.sleep(10); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return null; } // can use UI thread here protected void onPostExecute(final Void unused) { - GridView gridview = (GridView) findViewById(R.id.GridView01); - gridview.setAdapter(new ImageAdapter2(Pictures.this)); - - if (picNo < pictureList.size()) - mFetchTask.run(); + if (!stop) { + adapter.notifyDataSetChanged(); + + if (picNo < pictureList.size()) { + taskFetchPictures = new fetchPictures(); + taskFetchPictures.execute(); + } + } } } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-20 21:59:40 UTC (rev 4073) @@ -77,7 +77,7 @@ cacheDB.Start(); } - + public void Stop() { logInfo("Stop server"); Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs 2011-01-20 21:59:40 UTC (rev 4073) @@ -39,6 +39,8 @@ { public class MusicHandler { + const int maxResult = 500; + private static Dictionary<string, string> directoryList = new Dictionary<string, string>(); private static string replyAllArtist = string.Empty; @@ -67,13 +69,17 @@ db.GetAllArtists(ref list); AndroidServer.logInfo("Caching music artist found :" + list.Count); + msg += "<Results>" + list.Count + "</Results>\r\n"; + msg += "<Start>0</Start>\r\n"; + msg += "<Count>" + maxResult + "</Count>\r\n"; + cnt = 0; foreach (string artist in list) { if (artist != string.Empty) { cnt++; - if (cnt > 1000) break; + if (cnt > maxResult) break; msg += "<Item>\r\n"; msg += "<Artist>" + SomeUtils.EncodeString(artist) + "</Artist>\r\n"; @@ -110,11 +116,15 @@ list1.Sort(new AlbumComparer()); AndroidServer.logInfo("Caching music album sorted"); + msg += "<Results>" + list1.Count + "</Results>\r\n"; + msg += "<Start>0</Start>\r\n"; + msg += "<Count>" + maxResult + "</Count>\r\n"; + cnt = 0; foreach (MediaPortal.Music.Database.AlbumInfo album in list1) { cnt++; - if (cnt > 1000) break; + if (cnt > maxResult) break; string name = album.Album.Replace("|", "").Trim(); if (name != string.Empty) @@ -153,17 +163,21 @@ List<MediaPortal.Music.Database.Song> list2 = new List<MediaPortal.Music.Database.Song>(); db.GetSongsByArtist("%", ref list2); - AndroidServer.logInfo("Caching music songs found :" + list2.Count) ; + AndroidServer.logInfo("Caching music songs found :" + list2.Count); list2.Sort(new SongComparer()); AndroidServer.logInfo("Caching music songs sorted"); + msg += "<Results>" + list2.Count + "</Results>\r\n"; + msg += "<Start>0</Start>\r\n"; + msg += "<Count>" + maxResult + "</Count>\r\n"; + cnt = 0; foreach (MediaPortal.Music.Database.Song song in list2) { cnt++; - if (cnt > 1000) break; + if (cnt > maxResult) break; msg += "<Item>\r\n"; @@ -369,11 +383,11 @@ MediaPortal.Music.Database.MusicDatabase db = MediaPortal.Music.Database.MusicDatabase.Instance; List<MediaPortal.Music.Database.Song> list = new List<MediaPortal.Music.Database.Song>(); + int start = 0; + if (!req.StartsWith("?")) { // cached on startup - // db.GetSongsByArtist("%", ref list); - msg = replyAllSong; handler.SendMessage(sock, msg); @@ -382,6 +396,16 @@ AndroidServer.logDebug("Reply music db all songs "); return; } + else if (req.StartsWith("?start=")) + { + req = req.Replace("?start=", ""); + try + { + start = Convert.ToInt32(req); + } + catch { } + db.GetSongsByArtist("%", ref list); + } else if (req.StartsWith("?artist=")) { req = req.Replace("?artist=", ""); @@ -408,21 +432,36 @@ list.Sort(new SongComparer()); + int cnt = 0; + int act = 0; + if (start > list.Count) start = 0; + + msg += "<Results>" + list.Count + "</Results>\r\n"; + msg += "<Start>" + start + "</Start>\r\n"; + msg += "<Count>" + maxResult + "</Count>\r\n"; + foreach (MediaPortal.Music.Database.Song song in list) { - msg += "<Item>\r\n"; + if (act >= start) + { + msg += "<Item>\r\n"; - msg += "<ID>" + HttpUtility.HtmlEncode(song.Id.ToString()) + "</ID>\r\n"; - msg += "<Title>" + SomeUtils.EncodeString(song.Title) + "</Title>\r\n"; - msg += "<Artist>" + SomeUtils.EncodeString(song.Artist) + "</Artist>\r\n"; - msg += "<Album>" + SomeUtils.EncodeString(song.Artist) + "</Album>\r\n"; - msg += "<Genre>" + HttpUtility.HtmlEncode(song.Genre) + "</Genre>\r\n"; - msg += "<Track>" + HttpUtility.HtmlEncode(song.Track.ToString()) + "</Track>\r\n"; - msg += "<Duration>" + HttpUtility.HtmlEncode(song.Duration.ToString()) + "</Duration>\r\n"; - msg += "<Rating>" + HttpUtility.HtmlEncode(song.Rating.ToString()) + "</Rating>\r\n"; - msg += "<Filename>" + SomeUtils.EncodeString(song.FileName) + "</Filename>\r\n"; + msg += "<ID>" + HttpUtility.HtmlEncode(song.Id.ToString()) + "</ID>\r\n"; + msg += "<Title>" + SomeUtils.EncodeString(song.Title) + "</Title>\r\n"; + msg += "<Artist>" + SomeUtils.EncodeString(song.Artist) + "</Artist>\r\n"; + msg += "<Album>" + SomeUtils.EncodeString(song.Artist) + "</Album>\r\n"; + msg += "<Genre>" + HttpUtility.HtmlEncode(song.Genre) + "</Genre>\r\n"; + msg += "<Track>" + HttpUtility.HtmlEncode(song.Track.ToString()) + "</Track>\r\n"; + msg += "<Duration>" + HttpUtility.HtmlEncode(song.Duration.ToString()) + "</Duration>\r\n"; + msg += "<Rating>" + HttpUtility.HtmlEncode(song.Rating.ToString()) + "</Rating>\r\n"; + msg += "<Filename>" + SomeUtils.EncodeString(song.FileName) + "</Filename>\r\n"; - msg += "</Item>\r\n"; + msg += "</Item>\r\n"; + + cnt++; + if (cnt == maxResult) break; + } + act++; } msg += "</Database>\r\n\r\n"; Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs 2011-01-20 21:59:40 UTC (rev 4073) @@ -241,11 +241,11 @@ req = req.Replace("/db_music", ""); if (req.StartsWith("/")) req = req.Substring(1); - if (req == "artist.xml") + if (req.StartsWith("artist.xml")) { MusicHandler.ReplyMusicDbArtist(socket); } - if (req == "album.xml") + if (req.StartsWith("album.xml")) { MusicHandler.ReplyMusicDbAlbum(socket); } @@ -253,6 +253,7 @@ { MusicHandler.ReplyMusicDbSongs(socket, req); } + if (req.StartsWith("getfile")) { int pos = req.IndexOf("?"); Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs 2011-01-17 21:09:34 UTC (rev 4072) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs 2011-01-20 21:59:40 UTC (rev 4073) @@ -58,11 +58,39 @@ } catch { } } + private void sendText(Socket sock, String text) + { + sock.Send(Encoding.UTF8.GetBytes(text + Environment.NewLine)); + } + public void SendBytes(Socket sock, byte[] Bytes) { try { - sock.Send(Bytes, Bytes.Length, 0); + long read = 0; + long actual = 0; + + while (read < Bytes.Length) + { + actual = read; + + int buffersize; + if (Bytes.Length - read > 1024) + { + buffersize = 1024; + read += 1024; + } + else + { + buffersize = (int)(Bytes.Length - read); + read = Bytes.Length; + } + byte[] tosend = new byte[buffersize]; + Array.Copy(Bytes, actual, tosend, 0, buffersize); + + sock.Send(tosend); + System.Threading.Thread.Sleep(3); + } } catch { } } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-17 21:09:41
|
Revision: 4072 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4072&view=rev Author: kroko_koenig Date: 2011-01-17 21:09:34 +0000 (Mon, 17 Jan 2011) Log Message: ----------- some tweaks still slow on pictures (100% cpu on slow system) Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/PictureHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-17 14:33:48 UTC (rev 4071) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-17 21:09:34 UTC (rev 4072) @@ -247,6 +247,8 @@ } TextView txtHtpc = (TextView) findViewById(R.id.txtInstance); txtHtpc.setText(AppSettings.getName()); + + Pictures.actualDir = ""; } }); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java 2011-01-17 14:33:48 UTC (rev 4071) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java 2011-01-17 21:09:34 UTC (rev 4072) @@ -56,8 +56,10 @@ public static ArrayList<ReceiveDirectoryXmlHandler.DirItems> pictureList; public static int selectedPicture; + private static int picNo; - final CharSequence[] itemsLong = { "Slideshow", "Random Slideshow", "Cancel" }; + final CharSequence[] itemsLong = { "Slideshow", "Random Slideshow", + "Cancel" }; @Override public void onCreate(Bundle savedInstanceState) { @@ -141,7 +143,7 @@ } Log.d("MediaPortal", "pictures read folder finished"); - + if (pictureList == null) { Toast.makeText(Pictures.this, "TIME OUT SERVER", Toast.LENGTH_SHORT).show(); @@ -152,11 +154,60 @@ } else { GridView gridview = (GridView) findViewById(R.id.GridView01); gridview.setAdapter(new ImageAdapter2(Pictures.this)); + + picNo = 0; + mFetchTask.run(); } } } } + private Runnable mFetchTask = new Runnable() { + public void run() { + new fetchPictures().execute(); + } + }; + + private class fetchPictures extends AsyncTask<String, Void, Void> { + + // can use UI thread here + protected void onPreExecute() { + + } + + // automatically done on worker thread (separate from UI thread) + protected Void doInBackground(final String... args) { + + HttpHandler http = new HttpHandler(); + String server = AppSettings.getWebServer() + "/pictures/"; + + while(picNo < pictureList.size()) { + + DirItems item = pictureList.get(picNo); + if (!item.isFolder) { + if (item.Picture == null) { + String file = server + actualDir + item.File + ".thb"; + item.Picture = http.DownloadImage(file); + pictureList.set(picNo, item); + break; + } + } + picNo++; + } + return null; + } + + // can use UI thread here + protected void onPostExecute(final Void unused) { + + GridView gridview = (GridView) findViewById(R.id.GridView01); + gridview.setAdapter(new ImageAdapter2(Pictures.this)); + + if (picNo < pictureList.size()) + mFetchTask.run(); + } + } + public class ImageAdapter2 extends BaseAdapter { private Context mContext; public static final int ACTIVITY_CREATE = 10; @@ -214,17 +265,20 @@ iv.setTag(pic); } else { - HttpHandler http = new HttpHandler(); + /* + * HttpHandler http = new HttpHandler(); + * + * String file = AppSettings.getWebServer() + "/pictures/"; + * file += actualDir + item.File + ".thb"; item.Picture = + * http.DownloadImage(file); + * iv.setImageBitmap(item.Picture); + */ - String file = AppSettings.getWebServer() + "/pictures/"; - file += actualDir + item.File + ".thb"; - item.Picture = http.DownloadImage(file); - iv.setImageBitmap(item.Picture); - if (item.Picture == null) iv.setImageResource(R.drawable.picture); - // else - // iv.setImageBitmap(item.Picture); + else + iv.setImageBitmap(item.Picture); + picItem pic = new picItem(); pic.title = txtName; pic.typ = "item"; Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-17 14:33:48 UTC (rev 4071) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-17 21:09:34 UTC (rev 4072) @@ -69,7 +69,8 @@ public static boolean SlideshowPaused = false; private static long SlideInterval = 5000; - private Bitmap picture; + private static Bitmap picture; + private static String title; /** Called when the activity is first created. */ @Override @@ -77,12 +78,22 @@ super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); + getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.picturesfullscreen); gestureScanner = new GestureDetector(Picturesfullscreen.this); - new setPicture().execute(); + + if (savedInstanceState == null) + new setPicture().execute(); + else + { + ImageView imagev = (ImageView) findViewById(R.id.ImageView01); + imagev.setImageBitmap(picture); + TextView txt = (TextView) findViewById(R.id.full_text); + txt.setText(title); + } } private class setPicture extends AsyncTask<String, Void, Void> { @@ -116,7 +127,10 @@ // can use UI thread here protected void onPostExecute(final Void unused) { if (this.dialog.isShowing()) { - this.dialog.dismiss(); + try { + this.dialog.dismiss(); + } catch (Exception ex) { + } } if (item.isFolder != true) { @@ -126,9 +140,15 @@ TextView txt = (TextView) findViewById(R.id.full_text); if (!slideShow) + { txt.setText(item.File); + title = item.File; + } else + { txt.setText("Slide show"); + title = "Slide show"; + } } } } @@ -147,7 +167,7 @@ // // keep screen on in slideshow // - + if ((slideShow) || (randomShow)) { PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock( @@ -293,8 +313,8 @@ try { outStream.close(); - //Toast.makeText(Picturesfullscreen.this, "File saved.", - // Toast.LENGTH_SHORT).show(); + // Toast.makeText(Picturesfullscreen.this, "File saved.", + // Toast.LENGTH_SHORT).show(); } catch (IOException e) { e.printStackTrace(); Log.e("Debug", "SavetoSDCard " + e.getMessage().toString() Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-17 14:33:48 UTC (rev 4071) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-17 21:09:34 UTC (rev 4072) @@ -49,6 +49,7 @@ private Thread listen; private Thread grabPictures; + private Thread cacheDB; public static VideoLan.VlcControl vlc; @@ -69,9 +70,14 @@ grabPictures.Start(); logInfo("Caching music DB"); - Content.MusicHandler.CacheDB(); + cacheDB = new Thread(Content.MusicHandler.CacheDB); + cacheDB.IsBackground = true; + cacheDB.Priority = ThreadPriority.Lowest; + cacheDB.Start(); } + + public void Stop() { logInfo("Stop server"); @@ -121,9 +127,10 @@ // work on request Request req = new Request(clientSocket); + Thread thread = new Thread(new ThreadStart(req.DoWork)); thread.IsBackground = true; - thread.Priority = ThreadPriority.Normal; + thread.Priority = ThreadPriority.BelowNormal; thread.Start(); } catch (Exception ex) Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs 2011-01-17 14:33:48 UTC (rev 4071) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs 2011-01-17 21:09:34 UTC (rev 4072) @@ -50,6 +50,7 @@ MediaPortal.Music.Database.MusicDatabase db = MediaPortal.Music.Database.MusicDatabase.Instance; string msg = string.Empty; + int cnt = 0; #region artist @@ -64,11 +65,16 @@ ArrayList list = new ArrayList(); db.GetAllArtists(ref list); + AndroidServer.logInfo("Caching music artist found :" + list.Count); + cnt = 0; foreach (string artist in list) { if (artist != string.Empty) { + cnt++; + if (cnt > 1000) break; + msg += "<Item>\r\n"; msg += "<Artist>" + SomeUtils.EncodeString(artist) + "</Artist>\r\n"; msg += "</Item>\r\n"; @@ -78,6 +84,8 @@ replyAllArtist = msg; #endregion + AndroidServer.logInfo("Caching music artist finished"); + #region album msg = string.Empty; @@ -92,6 +100,7 @@ List<MediaPortal.Music.Database.AlbumInfo> list1 = new List<MediaPortal.Music.Database.AlbumInfo>(); db.GetAllAlbums(ref list1); + AndroidServer.logInfo("Caching music albums found :" + list1.Count); foreach (MediaPortal.Music.Database.AlbumInfo album in list1) { @@ -99,9 +108,14 @@ } list1.Sort(new AlbumComparer()); + AndroidServer.logInfo("Caching music album sorted"); + cnt = 0; foreach (MediaPortal.Music.Database.AlbumInfo album in list1) { + cnt++; + if (cnt > 1000) break; + string name = album.Album.Replace("|", "").Trim(); if (name != string.Empty) { @@ -121,6 +135,8 @@ #endregion + AndroidServer.logInfo("Caching music album finished"); + #region songs msg = string.Empty; @@ -137,11 +153,18 @@ List<MediaPortal.Music.Database.Song> list2 = new List<MediaPortal.Music.Database.Song>(); db.GetSongsByArtist("%", ref list2); + AndroidServer.logInfo("Caching music songs found :" + list2.Count) ; list2.Sort(new SongComparer()); + AndroidServer.logInfo("Caching music songs sorted"); + + cnt = 0; foreach (MediaPortal.Music.Database.Song song in list2) { + cnt++; + if (cnt > 1000) break; + msg += "<Item>\r\n"; msg += "<ID>" + HttpUtility.HtmlEncode(song.Id.ToString()) + "</ID>\r\n"; @@ -160,6 +183,9 @@ replyAllSong = msg; #endregion + + AndroidServer.logInfo("Caching music songs finished"); + } public static void ReplyMusicDir(Socket Socket, string Request) Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/PictureHandler.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/PictureHandler.cs 2011-01-17 14:33:48 UTC (rev 4071) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/PictureHandler.cs 2011-01-17 21:09:34 UTC (rev 4072) @@ -154,10 +154,10 @@ Bitmap bit = (Bitmap)Bitmap.FromFile(dir); byte[] b; - if ((bit.Width > 1600) || (bit.Height > 1600)) + if ((bit.Width > 600) || (bit.Height > 600)) { Bitmap thumb = (Bitmap)bit.Clone(); - thumb = MediaPortal.Util.BitmapResize.Resize(ref thumb, 1600, 1600, false, true); + thumb = MediaPortal.Util.BitmapResize.Resize(ref thumb, 600, 600, false, true); b = SomeUtils.ImageToByteArray((Image)thumb); } @@ -277,10 +277,10 @@ Bitmap bit = (Bitmap)Bitmap.FromFile(PictureHandler.AllPicturesList[x]); byte[] b; - if ((bit.Width > 1600) || (bit.Height > 1600)) + if ((bit.Width > 600) || (bit.Height > 600)) { Bitmap thumb = (Bitmap)bit.Clone(); - thumb = MediaPortal.Util.BitmapResize.Resize(ref thumb, 1600, 1600, false, true); + thumb = MediaPortal.Util.BitmapResize.Resize(ref thumb, 600, 600, false, true); b = SomeUtils.ImageToByteArray((Image)thumb); } @@ -307,12 +307,12 @@ } else { - handler.SendServerError(sock,PictureHandler.AllPicturesList[x], "ReplyRandomPictureFile"); + handler.SendServerError(sock, PictureHandler.AllPicturesList[x], "ReplyRandomPictureFile"); } } else { - handler.SendErrorFile(sock,"ReplyRandomPictureFile"); + handler.SendErrorFile(sock, "ReplyRandomPictureFile"); } } @@ -478,10 +478,10 @@ Bitmap bit = (Bitmap)Bitmap.FromFile(filePath); byte[] b; - if ((bit.Width > 1600) || (bit.Height > 1600)) + if ((bit.Width > 600) || (bit.Height > 600)) { Bitmap thumb = (Bitmap)bit.Clone(); - thumb = MediaPortal.Util.BitmapResize.Resize(ref thumb, 1600, 1600, false, true); + thumb = MediaPortal.Util.BitmapResize.Resize(ref thumb, 600, 600, false, true); b = SomeUtils.ImageToByteArray((Image)thumb); } Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2011-01-17 14:33:57
|
Revision: 4071 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4071&view=rev Author: kroko_koenig Date: 2011-01-17 14:33:48 +0000 (Mon, 17 Jan 2011) Log Message: ----------- Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/setup.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/SomeUtils.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Setup_ip.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/MediaPlayerControl.java trunk/plugins/AndroidRemote/Release/icons.zip Removed Paths: ------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-17 14:33:48 UTC (rev 4071) @@ -22,6 +22,7 @@ <activity android:launchMode="singleInstance" android:name=".pictures.Picturesfullscreen"></activity> <activity android:launchMode="singleInstance" android:name=".music.MusicDir"></activity> <activity android:launchMode="singleInstance" android:name="Setup"></activity> + <activity android:launchMode="singleInstance" android:name="Setup_ip"></activity> <activity android:launchMode="singleInstance" android:name=".nowPlaying.NowPlaying"></activity> <activity android:launchMode="singleInstance" android:name=".nowPlaying.NowPlayingList"></activity> <activity android:launchMode="singleInstance" android:name=".music.MusicArtist"></activity> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -83,160 +83,164 @@ public static final int wake_on_lan=0x7f020042; } public static final class id { - public static final int GridView01=0x7f070017; - public static final int ImageView01=0x7f070019; - public static final int LinearLayout00=0x7f070058; - public static final int LinearLayout01=0x7f070020; - public static final int LinearLayout02=0x7f070063; - public static final int LinearLayout03=0x7f07006d; - public static final int LinearLayout04=0x7f070077; - public static final int LinearLayout05=0x7f07007d; - public static final int ListView01=0x7f07002e; - public static final int Spinner01=0x7f07008b; - public static final int SurfaceView01=0x7f07001f; + public static final int GridView01=0x7f070018; + public static final int ImageView01=0x7f07001a; + public static final int LinearLayout00=0x7f070059; + public static final int LinearLayout01=0x7f070021; + public static final int LinearLayout02=0x7f070064; + public static final int LinearLayout03=0x7f07006e; + public static final int LinearLayout04=0x7f070078; + public static final int LinearLayout05=0x7f07007e; + public static final int ListView01=0x7f07002f; + public static final int Spinner01=0x7f070089; + public static final int SurfaceView01=0x7f070020; public static final int TableLayout01=0x7f070005; - public static final int TableLayout02=0x7f07003d; - public static final int TableRow01=0x7f070006; - public static final int TableRow02=0x7f070042; - public static final int TableRow03=0x7f070047; + public static final int TableLayout02=0x7f07003e; + public static final int TableRow01=0x7f070007; + public static final int TableRow02=0x7f070043; + public static final int TableRow03=0x7f070048; public static final int TextView01=0x7f070003; public static final int TextView02=0x7f070004; - public static final int btnChannelDown=0x7f070051; - public static final int btnChannelUp=0x7f07004e; - public static final int btnExit=0x7f070052; - public static final int btnHibernate=0x7f070054; - public static final int btnRestart=0x7f070055; - public static final int btnShutOff=0x7f070056; - public static final int btnSuspend=0x7f070053; - public static final int btnVolumeDown=0x7f070050; - public static final int btnVolumeMute=0x7f07004f; - public static final int btnVolumeUp=0x7f07004d; - public static final int btnWakeOnLan=0x7f070057; - public static final int btn_main_music=0x7f070008; - public static final int btn_main_now_playing=0x7f07000b; - public static final int btn_main_pictures=0x7f070007; - public static final int btn_main_play=0x7f07000f; - public static final int btn_main_remote=0x7f07000a; - public static final int btn_main_settings=0x7f07000c; - public static final int btn_main_skp_back=0x7f07000e; - public static final int btn_main_skp_forw=0x7f070010; - public static final int btn_main_video=0x7f070009; - public static final int btnkey01=0x7f070059; - public static final int btnkey02=0x7f07005a; - public static final int btnkey03=0x7f07005b; - public static final int btnkey04=0x7f07005c; - public static final int btnkey05=0x7f07005d; - public static final int btnkey06=0x7f07005e; - public static final int btnkey07=0x7f07005f; - public static final int btnkey08=0x7f070060; - public static final int btnkey09=0x7f070061; - public static final int btnkey10=0x7f070062; - public static final int btnkey11=0x7f070064; - public static final int btnkey12=0x7f070065; - public static final int btnkey13=0x7f070066; - public static final int btnkey14=0x7f070067; - public static final int btnkey15=0x7f070068; - public static final int btnkey16=0x7f070069; - public static final int btnkey17=0x7f07006a; - public static final int btnkey18=0x7f07006b; - public static final int btnkey19=0x7f07006c; - public static final int btnkey20=0x7f07006e; - public static final int btnkey21=0x7f07006f; - public static final int btnkey22=0x7f070070; - public static final int btnkey23=0x7f070071; - public static final int btnkey24=0x7f070072; - public static final int btnkey25=0x7f070073; - public static final int btnkey26=0x7f070074; - public static final int btnkey27=0x7f070075; - public static final int btnkey28=0x7f070076; - public static final int btnkey29=0x7f070078; - public static final int btnkey30=0x7f070079; - public static final int btnkey31=0x7f07007a; - public static final int btnkey32=0x7f07007b; - public static final int btnkey33=0x7f07007c; - public static final int btnkey41=0x7f07007e; - public static final int btnkey42=0x7f07007f; - public static final int btnkey43=0x7f070080; - public static final int btnkey44=0x7f070081; - public static final int btnkey45=0x7f070082; - public static final int btnkey46=0x7f070083; - public static final int btnkey47=0x7f070084; - public static final int btnkey48=0x7f070085; - public static final int btnkey49=0x7f070086; - public static final int btnkey50=0x7f070087; - public static final int button_open=0x7f07001c; - public static final int button_stream=0x7f07001d; - public static final int button_stream_stop=0x7f07001e; - public static final int clearplaylist=0x7f070094; - public static final int crtl_back=0x7f07003a; - public static final int crtl_ch_m=0x7f070046; - public static final int crtl_ch_p=0x7f070041; - public static final int crtl_down=0x7f070039; - public static final int crtl_full=0x7f070043; - public static final int crtl_info=0x7f07004b; - public static final int crtl_left=0x7f070034; - public static final int crtl_menu=0x7f070045; - public static final int crtl_mp=0x7f070030; - public static final int crtl_osd=0x7f07004a; - public static final int crtl_parent=0x7f070038; - public static final int crtl_play=0x7f070044; - public static final int crtl_power=0x7f070032; - public static final int crtl_ratio=0x7f070049; - public static final int crtl_right=0x7f070036; - public static final int crtl_select=0x7f070035; - public static final int crtl_skip_back=0x7f07003e; - public static final int crtl_skip_forw=0x7f070040; - public static final int crtl_stop=0x7f07003f; - public static final int crtl_sub=0x7f070048; - public static final int crtl_up=0x7f070031; - public static final int crtl_vol_m=0x7f07003c; - public static final int crtl_vol_p=0x7f07003b; - public static final int full_text=0x7f070018; + public static final int btnChannelDown=0x7f070052; + public static final int btnChannelUp=0x7f07004f; + public static final int btnExit=0x7f070053; + public static final int btnHibernate=0x7f070055; + public static final int btnIpSettings=0x7f07008b; + public static final int btnRestart=0x7f070056; + public static final int btnShutOff=0x7f070057; + public static final int btnSuspend=0x7f070054; + public static final int btnVolumeDown=0x7f070051; + public static final int btnVolumeMute=0x7f070050; + public static final int btnVolumeUp=0x7f07004e; + public static final int btnWakeOnLan=0x7f070058; + public static final int btn_main_music=0x7f070009; + public static final int btn_main_now_playing=0x7f07000c; + public static final int btn_main_pictures=0x7f070008; + public static final int btn_main_play=0x7f070010; + public static final int btn_main_remote=0x7f07000b; + public static final int btn_main_settings=0x7f07000d; + public static final int btn_main_skp_back=0x7f07000f; + public static final int btn_main_skp_forw=0x7f070011; + public static final int btn_main_video=0x7f07000a; + public static final int btnkey01=0x7f07005a; + public static final int btnkey02=0x7f07005b; + public static final int btnkey03=0x7f07005c; + public static final int btnkey04=0x7f07005d; + public static final int btnkey05=0x7f07005e; + public static final int btnkey06=0x7f07005f; + public static final int btnkey07=0x7f070060; + public static final int btnkey08=0x7f070061; + public static final int btnkey09=0x7f070062; + public static final int btnkey10=0x7f070063; + public static final int btnkey11=0x7f070065; + public static final int btnkey12=0x7f070066; + public static final int btnkey13=0x7f070067; + public static final int btnkey14=0x7f070068; + public static final int btnkey15=0x7f070069; + public static final int btnkey16=0x7f07006a; + public static final int btnkey17=0x7f07006b; + public static final int btnkey18=0x7f07006c; + public static final int btnkey19=0x7f07006d; + public static final int btnkey20=0x7f07006f; + public static final int btnkey21=0x7f070070; + public static final int btnkey22=0x7f070071; + public static final int btnkey23=0x7f070072; + public static final int btnkey24=0x7f070073; + public static final int btnkey25=0x7f070074; + public static final int btnkey26=0x7f070075; + public static final int btnkey27=0x7f070076; + public static final int btnkey28=0x7f070077; + public static final int btnkey29=0x7f070079; + public static final int btnkey30=0x7f07007a; + public static final int btnkey31=0x7f07007b; + public static final int btnkey32=0x7f07007c; + public static final int btnkey33=0x7f07007d; + public static final int btnkey41=0x7f07007f; + public static final int btnkey42=0x7f070080; + public static final int btnkey43=0x7f070081; + public static final int btnkey44=0x7f070082; + public static final int btnkey45=0x7f070083; + public static final int btnkey46=0x7f070084; + public static final int btnkey47=0x7f070085; + public static final int btnkey48=0x7f070086; + public static final int btnkey49=0x7f070087; + public static final int btnkey50=0x7f070088; + public static final int button_open=0x7f07001d; + public static final int button_stream=0x7f07001e; + public static final int button_stream_stop=0x7f07001f; + public static final int clearplaylist=0x7f070098; + public static final int crtl_back=0x7f07003b; + public static final int crtl_ch_m=0x7f070047; + public static final int crtl_ch_p=0x7f070042; + public static final int crtl_down=0x7f07003a; + public static final int crtl_full=0x7f070044; + public static final int crtl_info=0x7f07004c; + public static final int crtl_left=0x7f070035; + public static final int crtl_menu=0x7f070046; + public static final int crtl_mp=0x7f070031; + public static final int crtl_osd=0x7f07004b; + public static final int crtl_parent=0x7f070039; + public static final int crtl_play=0x7f070045; + public static final int crtl_power=0x7f070033; + public static final int crtl_ratio=0x7f07004a; + public static final int crtl_right=0x7f070037; + public static final int crtl_select=0x7f070036; + public static final int crtl_skip_back=0x7f07003f; + public static final int crtl_skip_forw=0x7f070041; + public static final int crtl_stop=0x7f070040; + public static final int crtl_sub=0x7f070049; + public static final int crtl_up=0x7f070032; + public static final int crtl_vol_m=0x7f07003d; + public static final int crtl_vol_p=0x7f07003c; + public static final int full_text=0x7f070019; public static final int icon_image=0x7f070001; public static final int icon_text=0x7f070002; - public static final int list_album=0x7f070013; - public static final int list_artist=0x7f070014; - public static final int list_result=0x7f070015; - public static final int list_song=0x7f070016; - public static final int main_now_playing=0x7f07000d; - public static final int music_grid=0x7f070012; - public static final int naviRemote_text=0x7f07004c; - public static final int now_album=0x7f070022; - public static final int now_artist=0x7f070028; - public static final int now_cd=0x7f070023; - public static final int now_list=0x7f07002d; - public static final int now_next=0x7f07002c; - public static final int now_play=0x7f07002b; - public static final int now_playing=0x7f070021; - public static final int now_playing_right=0x7f070026; - public static final int now_playing_t_left=0x7f070025; - public static final int now_prev=0x7f070029; - public static final int now_progress=0x7f070024; - public static final int now_stop=0x7f07002a; - public static final int now_title=0x7f070027; - public static final int open=0x7f070097; - public static final int playlist=0x7f070093; - public static final int radio01=0x7f07008e; - public static final int radio02=0x7f07008f; - public static final int radio03=0x7f070090; - public static final int radio04=0x7f070091; - public static final int radioStop=0x7f070092; - public static final int rslide=0x7f07009a; - public static final int save=0x7f070096; - public static final int sdcard=0x7f070095; - public static final int send=0x7f070098; - public static final int server_ip=0x7f070088; - public static final int server_macid=0x7f07008a; - public static final int server_port=0x7f070089; - public static final int slide=0x7f070099; - public static final int text_kb_streamed=0x7f07001a; - public static final int title=0x7f07008d; - public static final int txtFile=0x7f07001b; - public static final int vibration=0x7f07008c; - public static final int widget0=0x7f070011; - public static final int widget00=0x7f07002f; - public static final int widget01=0x7f070033; - public static final int widget02=0x7f070037; + public static final int list_album=0x7f070014; + public static final int list_artist=0x7f070015; + public static final int list_result=0x7f070016; + public static final int list_song=0x7f070017; + public static final int main_now_playing=0x7f07000e; + public static final int music_grid=0x7f070013; + public static final int naviRemote_text=0x7f07004d; + public static final int now_album=0x7f070023; + public static final int now_artist=0x7f070029; + public static final int now_cd=0x7f070024; + public static final int now_list=0x7f07002e; + public static final int now_next=0x7f07002d; + public static final int now_play=0x7f07002c; + public static final int now_playing=0x7f070022; + public static final int now_playing_right=0x7f070027; + public static final int now_playing_t_left=0x7f070026; + public static final int now_prev=0x7f07002a; + public static final int now_progress=0x7f070025; + public static final int now_stop=0x7f07002b; + public static final int now_title=0x7f070028; + public static final int open=0x7f07009b; + public static final int playlist=0x7f070097; + public static final int radio01=0x7f070092; + public static final int radio02=0x7f070093; + public static final int radio03=0x7f070094; + public static final int radio04=0x7f070095; + public static final int radioStop=0x7f070096; + public static final int rslide=0x7f07009e; + public static final int save=0x7f07009a; + public static final int sdcard=0x7f070099; + public static final int send=0x7f07009c; + public static final int server_ip=0x7f07008c; + public static final int server_macid=0x7f07008e; + public static final int server_name=0x7f070090; + public static final int server_port=0x7f07008d; + public static final int slide=0x7f07009d; + public static final int text_kb_streamed=0x7f07001b; + public static final int title=0x7f070091; + public static final int txtFile=0x7f07001c; + public static final int txtInstance=0x7f070006; + public static final int txtIntanceName=0x7f07008f; + public static final int vibration=0x7f07008a; + public static final int widget0=0x7f070012; + public static final int widget00=0x7f070030; + public static final int widget01=0x7f070034; + public static final int widget02=0x7f070038; public static final int widget44=0x7f070000; } public static final class layout { @@ -259,9 +263,10 @@ public static final int remote03=0x7f030010; public static final int remote03b=0x7f030011; public static final int setup=0x7f030012; - public static final int splash=0x7f030013; - public static final int title=0x7f030014; - public static final int webradio=0x7f030015; + public static final int setup_ip=0x7f030013; + public static final int splash=0x7f030014; + public static final int title=0x7f030015; + public static final int webradio=0x7f030016; } public static final class menu { public static final int music_menu=0x7f060000; Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-17 14:33:48 UTC (rev 4071) @@ -39,12 +39,12 @@ ------ most functions as on my remote two more buttons for subtitle / osd +zoom button missing Main issues ------------ switch WIFI on (just msg now) save files from Android to MP -if the MP has no focus the remote doesnt work (normal) progress task for downloads -multiply control of more then one MP +done : multiply control of more then one MP NowPlaying list show actual / count of items on top bar \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-17 14:33:48 UTC (rev 4071) @@ -11,7 +11,7 @@ android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> -<TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="10dip" android:id="@+id/TableRow01"> +<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="HTPC" android:textColor="#FF000000" android:textStyle="bold" android:textSize="20dip" android:gravity="center_horizontal" android:id="@+id/txtInstance"></TextView><TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="10dip" android:id="@+id/TableRow01"> <Button android:background="@drawable/main_pictures" android:scaleType="fitXY" android:layout_height="80dip" android:layout_width="80dip" @@ -36,8 +36,9 @@ android:scaleType="fitXY" android:padding="5dip" android:background="@drawable/main_remote" android:id="@+id/btn_main_remote"> </Button> - </TableRow> +</TableRow> + <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="10dip" android:id="@+id/TableRow01"> <Button android:scaleType="fitXY" Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup.xml 2011-01-17 14:33:48 UTC (rev 4071) @@ -3,25 +3,11 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:padding="15dip" android:background="@drawable/brush"> + <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="MediaPortal IP" - android:textColor="#FF000000" android:textSize="18dip"> - - </TextView> - <EditText android:id="@+id/server_ip" android:layout_height="wrap_content" - android:layout_width="fill_parent" android:text="192.168.0.30" android:inputType="text"></EditText> - <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="MediaPortal Port" - android:textColor="#FF000000" android:textSize="18dip"></TextView> - <EditText android:id="@+id/server_port" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="8200" - android:inputType="phone"></EditText> - <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textColor="#FF000000" - android:textSize="18dip" android:text="MediaPortal MAC (WakeOnLan)"></TextView> - <EditText android:id="@+id/server_macid" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="12-34-56-78-90-12" - android:inputType="text"></EditText> + android:textSize="24dip" android:text="Global settings" android:paddingBottom="10dip"></TextView> + <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textColor="#FF000000" android:textSize="18dip" android:text="Power Mode"></TextView> @@ -30,6 +16,7 @@ <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000" - android:textSize="18dip" android:id="@+id/vibration" android:text="use vibration feedback"></CheckBox> + android:textSize="18dip" android:id="@+id/vibration" android:text="use vibration feedback"></CheckBox><Button android:layout_height="wrap_content" android:id="@+id/btnIpSettings" android:text="IP settings" android:layout_width="fill_parent" android:layout_marginTop="20dip"></Button> + </LinearLayout> Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/setup_ip.xml 2011-01-17 14:33:48 UTC (rev 4071) @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" android:layout_height="fill_parent" + android:orientation="vertical" android:padding="15dip" + android:background="@drawable/brush"> + + <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/txtIntanceName" android:textColor="#FF000000" android:text="Instance Name : 0" android:textSize="20dip"></TextView> + <EditText android:id="@+id/server_name" android:layout_height="wrap_content" + android:layout_width="fill_parent" android:inputType="text" android:text="HTPC"></EditText> + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="MediaPortal IP" + android:textColor="#FF000000" android:textSize="18dip"> + + </TextView> + <EditText android:id="@+id/server_ip" android:layout_height="wrap_content" + android:layout_width="fill_parent" android:text="192.168.0.30" android:inputType="text"></EditText> + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="MediaPortal Port" + android:textColor="#FF000000" android:textSize="18dip"></TextView> + <EditText android:id="@+id/server_port" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="8200" + android:inputType="phone"></EditText> + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" android:textColor="#FF000000" + android:textSize="18dip" android:text="MediaPortal MAC (WakeOnLan)"></TextView> + <EditText android:id="@+id/server_macid" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="12-34-56-78-90-12" + android:inputType="text"></EditText> + + + + + + + + +</LinearLayout> Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -1,136 +0,0 @@ -package mediaportal.remote; - -import java.io.IOException; - -import mediaportal.remote.communication.SendCommand; -import mediaportal.remote.utils.AppSettings; -import android.app.Activity; -import android.media.MediaPlayer; -import android.os.Bundle; -import android.view.SurfaceHolder; -import android.view.SurfaceView; -import android.view.View; -import android.widget.Button; -import android.widget.TextView; - -public class MediaPlayerControl extends Activity implements - SurfaceHolder.Callback { - - private Button openButton; - private Button streamButton; - private Button streamStopButton; - - private TextView txtFile; - - private SurfaceView mPreview; - private SurfaceHolder holder; - - private static MediaPlayer mp; - - @Override - public void onCreate(Bundle icicle) { - - super.onCreate(icicle); - - setContentView(R.layout.player); - initControls(); - } - - private void initControls() { - - txtFile = (TextView) findViewById(R.id.txtFile); - txtFile.setText(AppSettings.getLastFile()); - - openButton = (Button) findViewById(R.id.button_open); - streamButton = (Button) findViewById(R.id.button_stream); - streamStopButton = (Button) findViewById(R.id.button_stream_stop); - - mPreview = (SurfaceView) findViewById(R.id.SurfaceView01); - - // Set a size for the video screen - holder = mPreview.getHolder(); - holder.addCallback(this); - holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); - holder.setFixedSize(300, 200); - - openButton.setOnClickListener(new View.OnClickListener() { - public void onClick(View view) { - SendCommand.PostStreamFile(txtFile.getText().toString(),"video"); - } - }); - - streamButton.setOnClickListener(new View.OnClickListener() { - public void onClick(View view) { - if (mp == null) - mp = new MediaPlayer(); - startStreaming(); - } - }); - - streamStopButton.setOnClickListener(new View.OnClickListener() { - public void onClick(View view) { - closePlayer(); - } - }); - - } - - private void startStreaming() { - - try { - mp.setDataSource("rtsp://" + AppSettings.getServer() - + ":5554/android.sdp"); - mp.setDisplay(holder); - } catch (IllegalArgumentException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IllegalStateException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - try { - mp.prepare(); - } catch (IllegalStateException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - mp.start(); - mp.setScreenOnWhilePlaying(true); - } - - public void surfaceCreated(SurfaceHolder surfaceholder) { - - } - - public void surfaceChanged(SurfaceHolder surfaceholder, int i, int j, int k) { - - } - - public void surfaceDestroyed(SurfaceHolder surfaceholder) { - - } - - @Override - protected void onPause() { - super.onPause(); - - closePlayer(); - - AppSettings.setLastFile(txtFile.getText().toString()); - } - - private void closePlayer() { - if (mp != null) { - if (mp.isPlaying()) - mp.stop(); - mp = null; - - } - } -} Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Setup_ip.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Setup_ip.java (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Setup_ip.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2005-2011 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +package mediaportal.remote; + +import mediaportal.remote.R; +import mediaportal.remote.utils.AppSettings; +import android.app.Activity; +import android.os.Bundle; +import android.widget.EditText; +import android.widget.TextView; + +public class Setup_ip extends Activity { + + private TextView txtInstance; + private EditText txtName; + private EditText txtServer; + private EditText txtPort; + private EditText txtMac; + + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle icicle) { + super.onCreate(icicle); + setContentView(R.layout.setup_ip); + + txtInstance = (TextView) findViewById(R.id.txtIntanceName); + txtName = (EditText) findViewById(R.id.server_name); + txtServer = (EditText) findViewById(R.id.server_ip); + txtPort = (EditText) findViewById(R.id.server_port); + txtMac = (EditText) findViewById(R.id.server_macid); + } + + @Override + public void onResume() { + super.onResume(); + + txtInstance.setText("Instance name (" + AppSettings.getInstance() + ")"); + txtName.setText(AppSettings.getName()); + txtServer.setText(AppSettings.getServer()); + txtPort.setText(AppSettings.getPort()); + txtMac.setText(AppSettings.getMacId()); + } + + @Override + public void onPause() { + super.onPause(); + + AppSettings.setName(txtName.getText().toString()); + AppSettings.setServer(txtServer.getText().toString()); + AppSettings.setPort(txtPort.getText().toString()); + AppSettings.setMacId(txtMac.getText().toString()); + } +} Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -148,13 +148,13 @@ public void onClick(View view) { Vibration.vibrateShort(); - //Toast.makeText(view.getContext(), - // "not implemented yet. Sorry !", Toast.LENGTH_LONG) - // .show(); + Toast.makeText(view.getContext(), + "not implemented yet. Sorry !", Toast.LENGTH_SHORT) + .show(); - Intent myIntent = new Intent(view.getContext(), - MediaPlayerControl.class); - startActivity(myIntent); + //Intent myIntent = new Intent(view.getContext(), + //MediaPlayerControl.class); + //startActivity(myIntent); } }); @@ -207,17 +207,83 @@ }); } - private boolean reportExist() { - try { - @SuppressWarnings("unused") - BufferedReader reader = new BufferedReader(new InputStreamReader( - this.openFileInput("stack.trace"))); + // hardware keys + @Override public boolean onKeyDown(int keyCode, KeyEvent event) { + + switch (keyCode) { + case KeyEvent.KEYCODE_MENU: { + + final CharSequence[] items = { "Settings", + "Switch HTPC", "Exit", "Cancel" }; + + AlertDialog.Builder builder = new AlertDialog.Builder(Main.this); + builder.setTitle("Select option"); + + builder.setItems(items, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int item) { + switch (item) { + case 0: // settings + Intent myIntent = new Intent(Main.this, Setup.class); + startActivityForResult(myIntent, 0); + break; + case 1: // switch instance + final CharSequence[] items2 = AppSettings.getNames(); + + AlertDialog.Builder builder = new AlertDialog.Builder(Main.this); + builder.setTitle("Select instance"); + + builder.setItems(items2, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int item) { + switch (item) { + case 0: // MP1 + AppSettings.setInstance(1); + break; + case 1: // MP2 + AppSettings.setInstance(2); + break; + case 2: // MP3 + AppSettings.setInstance(3); + break; + } + TextView txtHtpc = (TextView) findViewById(R.id.txtInstance); + txtHtpc.setText(AppSettings.getName()); + } + + }); + + AlertDialog alert = builder.create(); + alert.show(); + break; + case 2: // exit + android.os.Process.killProcess(android.os.Process.myPid()); + break; + case 3: // cancel + break; + } + } + }); + AlertDialog alert = builder.create(); + alert.show(); + return true; - } catch (FileNotFoundException e) { - e.printStackTrace(); } - return false; + case KeyEvent.KEYCODE_VOLUME_UP: { + SendCommand.PostCommandButton("volumeUp"); + return true; + } + case KeyEvent.KEYCODE_VOLUME_DOWN: { + SendCommand.PostCommandButton("volumeDown"); + return true; + } + } + + return super.onKeyDown(keyCode, event); } + + private boolean reportExist() { + File f = new File("stack.trace"); + return f.exists(); + } private void sendReport() { try { @@ -256,7 +322,7 @@ this.deleteFile("stack.trace"); } - void chkStatus() { + void chkStatus() { final ConnectivityManager connMgr = (ConnectivityManager) this .getSystemService(Context.CONNECTIVITY_SERVICE); @@ -287,6 +353,9 @@ AppSettings.setSettings(getSharedPreferences(PREFS_PRIVATE, MODE_PRIVATE)); + TextView txtHtpc = (TextView) findViewById(R.id.txtInstance); + txtHtpc.setText(AppSettings.getName()); + mHandler.removeCallbacks(mUpdateTimeTask); mHandler.postDelayed(mUpdateTimeTask, 1000); @@ -301,21 +370,6 @@ mHandler.removeCallbacks(mUpdateTimeTask); } - // hardware keys - @Override - public boolean onKeyDown(int keyCode, KeyEvent event) { - - switch (keyCode) { - case KeyEvent.KEYCODE_MENU: { - Intent myIntent = new Intent(this, Setup.class); - startActivityForResult(myIntent, 0); - return true; - } - } - - return super.onKeyDown(keyCode, event); - } - private Runnable mUpdateTimeTask = new Runnable() { public void run() { new update().execute(); Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -1,4 +1,4 @@ -package mediaportal.remote.multimedia; + package mediaportal.remote.multimedia; import java.io.IOException; Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/MediaPlayerControl.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/MediaPlayerControl.java (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/MediaPlayerControl.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -0,0 +1,136 @@ +package mediaportal.remote.multimedia; + +import java.io.IOException; +import mediaportal.remote.R; +import mediaportal.remote.communication.SendCommand; +import mediaportal.remote.utils.AppSettings; +import android.app.Activity; +import android.media.MediaPlayer; +import android.os.Bundle; +import android.view.SurfaceHolder; +import android.view.SurfaceView; +import android.view.View; +import android.widget.Button; +import android.widget.TextView; + +public class MediaPlayerControl extends Activity implements + SurfaceHolder.Callback { + + private Button openButton; + private Button streamButton; + private Button streamStopButton; + + private TextView txtFile; + + private SurfaceView mPreview; + private SurfaceHolder holder; + + private static MediaPlayer mp; + + @Override + public void onCreate(Bundle icicle) { + + super.onCreate(icicle); + + setContentView(R.layout.player); + initControls(); + } + + private void initControls() { + + txtFile = (TextView) findViewById(R.id.txtFile); + txtFile.setText(AppSettings.getLastFile()); + + openButton = (Button) findViewById(R.id.button_open); + streamButton = (Button) findViewById(R.id.button_stream); + streamStopButton = (Button) findViewById(R.id.button_stream_stop); + + mPreview = (SurfaceView) findViewById(R.id.SurfaceView01); + + // Set a size for the video screen + holder = mPreview.getHolder(); + holder.addCallback(this); + holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); + holder.setFixedSize(300, 200); + + openButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + SendCommand.PostStreamFile(txtFile.getText().toString(),"video"); + } + }); + + streamButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + if (mp == null) + mp = new MediaPlayer(); + startStreaming(); + } + }); + + streamStopButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + closePlayer(); + } + }); + + } + + private void startStreaming() { + + try { + mp.setDataSource("rtsp://" + AppSettings.getServer() + + ":5554/android.sdp"); + mp.setDisplay(holder); + } catch (IllegalArgumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalStateException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + try { + mp.prepare(); + } catch (IllegalStateException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + mp.start(); + mp.setScreenOnWhilePlaying(true); + } + + public void surfaceCreated(SurfaceHolder surfaceholder) { + + } + + public void surfaceChanged(SurfaceHolder surfaceholder, int i, int j, int k) { + + } + + public void surfaceDestroyed(SurfaceHolder surfaceholder) { + + } + + @Override + protected void onPause() { + super.onPause(); + + closePlayer(); + + AppSettings.setLastFile(txtFile.getText().toString()); + } + + private void closePlayer() { + if (mp != null) { + if (mp.isPlaying()) + mp.stop(); + mp = null; + + } + } +} Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -9,23 +9,24 @@ import android.view.View; import android.widget.Button; -public class Webradio extends Activity{ +public class Webradio extends Activity { - private AudioPlayer player; - + private static AudioPlayer player; + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.webradio); - player = new AudioPlayer(); - + if (player == null) + player = new AudioPlayer(); + Button radio01 = (Button) findViewById(R.id.radio01); radio01.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - - SendCommand.PostStreamFile("webradio_1","audio"); + + SendCommand.PostStreamFile("webradio_1", "audio"); player.StartPlaying(); } }); @@ -33,8 +34,8 @@ radio02.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - - SendCommand.PostStreamFile("webradio_2","audio"); + + SendCommand.PostStreamFile("webradio_2", "audio"); player.StartPlaying(); } }); @@ -42,8 +43,8 @@ radio03.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - - SendCommand.PostStreamFile("webradio_3","audio"); + + SendCommand.PostStreamFile("webradio_3", "audio"); player.StartPlaying(); } }); @@ -51,12 +52,12 @@ radio04.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - - SendCommand.PostStreamFile("webradio_4","audio"); + + SendCommand.PostStreamFile("webradio_4", "audio"); player.StartPlaying(); } }); - + Button radioStop = (Button) findViewById(R.id.radioStop); radioStop.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { @@ -66,7 +67,7 @@ }); } - + @Override public void onResume() { super.onResume(); @@ -79,6 +80,6 @@ super.onPause(); KeyLock.enbleKeylock(); - + } } Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -400,7 +400,7 @@ AlertDialog.Builder builder = new AlertDialog.Builder( Picturesfullscreen.this); - builder.setTitle("Picture optoins"); + builder.setTitle("Picture options"); builder.setItems(items, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { switch (item) { Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/setup.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/setup.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/setup.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -25,23 +25,28 @@ import mediaportal.remote.utils.AppSettings; import mediaportal.remote.utils.Vibration; import android.app.Activity; +import android.content.Intent; import android.os.Bundle; +import android.view.View; import android.widget.ArrayAdapter; +import android.widget.Button; import android.widget.CheckBox; -import android.widget.EditText; import android.widget.CompoundButton; import android.widget.Spinner; public class Setup extends Activity { + private Spinner powerMode; + private CheckBox vibrate; + /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.setup); - CheckBox chk = (CheckBox) findViewById(R.id.vibration); - chk.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { + vibrate = (CheckBox) findViewById(R.id.vibration); + vibrate.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { @@ -50,48 +55,39 @@ } }); - Spinner spinner = (Spinner) findViewById(R.id.Spinner01); + powerMode = (Spinner) findViewById(R.id.Spinner01); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( this, R.array.shutdown, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); - spinner.setAdapter(adapter); + powerMode.setAdapter(adapter); + + Button settings = (Button) findViewById(R.id.btnIpSettings); + settings.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + Vibration.vibrateShort(); + Intent myIntent = new Intent(view.getContext(), + Setup_ip.class); + startActivity(myIntent); + } + }); + } @Override public void onResume() { super.onResume(); - EditText txt1 = (EditText) findViewById(R.id.server_ip); - EditText txt2 = (EditText) findViewById(R.id.server_port); - EditText txt3 = (EditText) findViewById(R.id.server_macid); - CheckBox chk = (CheckBox) findViewById(R.id.vibration); - Spinner spinner = (Spinner) findViewById(R.id.Spinner01); - - txt1.setText(AppSettings.getServer()); - txt2.setText(AppSettings.getPort()); - txt3.setText(AppSettings.getMacId()); - - chk.setChecked(AppSettings.getVibrate()); - spinner.setSelection(AppSettings.getPowerMode()); + vibrate.setChecked(AppSettings.getVibrate()); + powerMode.setSelection(AppSettings.getPowerMode()); } @Override public void onPause() { super.onPause(); - - EditText txt1 = (EditText) findViewById(R.id.server_ip); - EditText txt2 = (EditText) findViewById(R.id.server_port); - EditText txt3 = (EditText) findViewById(R.id.server_macid); - CheckBox chk = (CheckBox) findViewById(R.id.vibration); - Spinner spinner = (Spinner) findViewById(R.id.Spinner01); - - AppSettings.setServer(txt1.getText().toString()); - AppSettings.setPort(txt2.getText().toString()); - AppSettings.setMacId(txt3.getText().toString()); - - AppSettings.setVibrate(chk.isChecked()); - AppSettings.setPowerMode(spinner.getSelectedItemPosition()); + + AppSettings.setVibrate(vibrate.isChecked()); + AppSettings.setPowerMode(powerMode.getSelectedItemPosition()); } } Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java 2011-01-17 14:33:48 UTC (rev 4071) @@ -34,54 +34,281 @@ prefEditor = settings.edit(); } + // get + + public static int getInstance() + { + return settings.getInt("Instance", 1); + } + public static String getServer() { - return settings.getString("Server", "192.168.0.30"); + switch(getInstance()) + { + case 1: + return getServer1(); + case 2: + return getServer2(); + case 3: + return getServer3(); + } + return ""; } public static String getPort() { - return settings.getString("Port", "8200"); + switch(getInstance()) + { + case 1: + return getPort1(); + case 2: + return getPort2(); + case 3: + return getPort3(); + } + return ""; } public static String getMacId() { - return settings.getString("MacId", "11-22-33-44-55-66"); + switch(getInstance()) + { + case 1: + return getMacId1(); + case 2: + return getMacId2(); + case 3: + return getMacId3(); + } + return ""; } - public static boolean getVibrate() + public static String getName() { - return settings.getBoolean("Vibrate", true); + switch(getInstance()) + { + case 1: + return getName1(); + case 2: + return getName2(); + case 3: + return getName3(); + } + return ""; + } + + private static String getServer1() + { + return settings.getString("Server1", "192.168.0.30"); } - public static int getPowerMode() + private static String getPort1() { - return settings.getInt("PowerMode", 0); + return settings.getString("Port1", "8200"); } + private static String getMacId1() + { + return settings.getString("MacId1", "11-22-33-44-55-66"); + } + private static String getName1() + { + return settings.getString("Name1", "HTPC 1"); + } + private static String getServer2() + { + return settings.getString("Server2", "192.168.0.31"); + } + private static String getPort2() + { + return settings.getString("Port2", "8200"); + } + private static String getMacId2() + { + return settings.getString("MacId2", "11-22-33-44-55-66"); + } + private static String getName2() + { + return settings.getString("Name2", "HTPC 2"); + } + + private static String getServer3() + { + return settings.getString("Server3", "192.168.0.32"); + } + private static String getPort3() + { + return settings.getString("Port3", "8200"); + } + private static String getMacId3() + { + return settings.getString("MacId3", "11-22-33-44-55-66"); + } + private static String getName3() + { + return settings.getString("Name3", "HTPC 3"); + } + + public static CharSequence[] getNames() + { + CharSequence[] ret = new CharSequence[4]; + ret[0] = getName1(); + ret[1] = getName2(); + ret[2] = getName3(); + ret[3] = "Cancel"; + + return ret; + } + public static String getWebServer() { return "http://" + AppSettings.getServer() + ":" + AppSettings.getPort(); } + public static boolean getVibrate() + { + return settings.getBoolean("Vibrate", true); + } + public static int getPowerMode() + { + return settings.getInt("PowerMode", 0); + } + public static String getLastFile() { return settings.getString("LastFile", "c:\\test.mp4"); } - public static void setServer(String Server) + // set + + public static void setInstance(int Instance) { - prefEditor.putString("Server", Server); + prefEditor.putInt("Instance", Instance); prefEditor.commit(); } + + public static void setServer(String Server) + { + switch(getInstance()) + { + case 1: + setServer1(Server); + break; + case 2: + setServer2(Server); + break; + case 3: + setServer3(Server); + break; + } + } public static void setPort(String Port) { - prefEditor.putString("Port", Port); - prefEditor.commit(); + switch(getInstance()) + { + case 1: + setPort1(Port); + break; + case 2: + setPort2(Port); + break; + case 3: + setPort3(Port); + break; + } } public static void setMacId(String MacId) { - prefEditor.putString("MacId", MacId); + switch(getInstance()) + { + case 1: + setMacId1(MacId); + break; + case 2: + setMacId2(MacId); + break; + case 3: + setMacId3(MacId); + break; + } + } + public static void setName(String Name) + { + switch(getInstance()) + { + case 1: + setName1(Name); + break; + case 2: + setName2(Name); + break; + case 3: + setName3(Name); + break; + } + } + + private static void setServer1(String Server) + { + prefEditor.putString("Server1", Server); prefEditor.commit(); + } + private static void setPort1(String Port) + { + prefEditor.putString("Port1", Port); + prefEditor.commit(); + } + private static void setMacId1(String MacId) + { + prefEditor.putString("MacId1", MacId); + prefEditor.commit(); } - public static void setVibrate(boolean Vibration) + private static void setName1(String Name) { + prefEditor.putString("Name1", Name); + prefEditor.commit(); + } + + private static void setServer2(String Server) + { + prefEditor.putString("Server2", Server); + prefEditor.commit(); + } + private static void setPort2(String Port) + { + prefEditor.putString("Port2", Port); + prefEditor.commit(); + } + private static void setMacId2(String MacId) + { + prefEditor.putString("MacId2", MacId); + prefEditor.commit(); + } + private static void setName2(String Name) + { + prefEditor.putString("Name2", Name); + prefEditor.commit(); + } + + private static void setServer3(String Server) + { + prefEditor.putString("Server3", Server); + prefEditor.commit(); + } + private static void setPort3(String Port) + { + prefEditor.putString("Port3", Port); + prefEditor.commit(); + } + private static void setMacId3(String MacId) + { + prefEditor.putString("MacId3", MacId); + prefEditor.commit(); + } + private static void setName3(String Name) + { + prefEditor.putString("Name3", Name); + prefEditor.commit(); + } + + public static void setVibrate(boolean Vibration) + { prefEditor.putBoolean("Vibrate", Vibration); prefEditor.commit(); } Added: trunk/plugins/AndroidRemote/Release/icons.zip =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Release/icons.zip ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-13 21:02:08 UTC (rev 4070) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs 2011-01-17 14:33:48 UTC (rev 4071) @@ -48,6 +48,9 @@ [DllImport("USER32.DLL")] public static extern bool SetForegroundWindow(IntPtr hWnd); + private delegate void DoActionHandler(Action action); + private delegate void DoFullscreenHandler(); + private delegate void StartPlaylistPlayer(); private static Dictionary<string, string> directoryList = new Dictionary<string, string>(); @@ -84,7 +87,8 @@ if (g_Player.Playing) { Action action = new Action(Action.ActionType.ACTION_PAUSE, 0, 0); - GUIGraphicsContext.OnAction(action); + DoActionHandler del = new DoActionHandler(DoAction); + GUIGraphicsContext.form.Invoke(del, action); } else { @@ -95,32 +99,38 @@ if (data["command"] == ("ACTION_STOP")) { Action action = new Action(Action.ActionType.ACTION_STOP, 0, 0); - GUIGraphicsContext.OnAction(action); + DoActionHandler del = new DoActionHandler(DoAction); + GUIGraphicsContext.form.Invoke(del, action); } if (data["command"] == ("ACTION_PAUSE")) { Action action = new Action(Action.ActionType.ACTION_PAUSE, 0, 0); - GUIGraphicsContext.OnAction(action); + DoActionHandler del = new DoActionHandler(DoAction); + GUIGraphicsContext.form.Invoke(del, action); } if (data["command"] == ("ACTION_NEXT_ITEM")) { Action action = new Action(Action.ActionType.ACTION_NEXT_ITEM, 0, 0); - GUIGraphicsContext.OnAction(action); + DoActionHandler del = new DoActionHandler(DoAction); + GUIGraphicsContext.form.Invoke(del, action); } if (data["command"] == ("ACTION_PREV_ITEM")) { Action action = new Action(Action.ActionType.ACTION_PREV_ITEM, 0, 0); - GUIGraphicsContext.OnAction(action); + DoActionHandler del = new DoActionHandler(DoAction); + GUIGraphicsContext.form.Invoke(del, action); } if (data["command"] == ("ACTION_FORWARD")) { Action action = new Action(Action.ActionType.ACTION_FORWARD, 0, 0); - G... [truncated message content] |
From: <kro...@us...> - 2011-01-13 21:02:17
|
Revision: 4070 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4070&view=rev Author: kroko_koenig Date: 2011-01-13 21:02:08 +0000 (Thu, 13 Jan 2011) Log Message: ----------- split the code into diff sections, add vlc interop Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.Designer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Setup.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/MusicHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/NowPlayingHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/PictureHandler.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Content/SomeUtils.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/SocketHandler.cs Removed Paths: ------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/StreamingMediaPlayer.java trunk/plugins/AndroidRemote/Server/AndroidRemote/ExecuteCommand.cs Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-13 21:02:08 UTC (rev 4070) @@ -2,7 +2,11 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mediaportal.remote" android:versionCode="1" android:versionName="1.0"> - <application android:icon="@drawable/icon" android:theme="@android:style/Theme.NoTitleBar" android:debuggable="true"> + <application android:icon="@drawable/icon" + + android:theme="@android:style/Theme.NoTitleBar" + android:debuggable="true" + android:label="MediaPortal Remote"> <activity android:label="@string/app_name" android:launchMode="singleInstance" android:name=".Main"> <intent-filter> @@ -25,6 +29,7 @@ <activity android:launchMode="singleInstance" android:name=".music.MusicSong"></activity> <activity android:launchMode="singleInstance" android:name=".music.MusicTab"></activity> <activity android:launchMode="singleInstance" android:name=".music.MusicResults"></activity> + <activity android:launchMode="singleInstance" android:name=".multimedia.Webradio"></activity> <activity android:name=".MediaPlayerControl" android:launchMode="singleInstance"></activity> </application> <uses-sdk android:minSdkVersion="3" /> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -85,32 +85,33 @@ public static final class id { public static final int GridView01=0x7f070017; public static final int ImageView01=0x7f070019; - public static final int LinearLayout00=0x7f070056; - public static final int LinearLayout01=0x7f07001e; - public static final int LinearLayout02=0x7f070061; - public static final int LinearLayout03=0x7f07006b; - public static final int LinearLayout04=0x7f070075; - public static final int LinearLayout05=0x7f07007b; - public static final int ListView01=0x7f07002c; - public static final int Spinner01=0x7f070089; + public static final int LinearLayout00=0x7f070058; + public static final int LinearLayout01=0x7f070020; + public static final int LinearLayout02=0x7f070063; + public static final int LinearLayout03=0x7f07006d; + public static final int LinearLayout04=0x7f070077; + public static final int LinearLayout05=0x7f07007d; + public static final int ListView01=0x7f07002e; + public static final int Spinner01=0x7f07008b; + public static final int SurfaceView01=0x7f07001f; public static final int TableLayout01=0x7f070005; - public static final int TableLayout02=0x7f07003b; + public static final int TableLayout02=0x7f07003d; public static final int TableRow01=0x7f070006; - public static final int TableRow02=0x7f070040; - public static final int TableRow03=0x7f070045; + public static final int TableRow02=0x7f070042; + public static final int TableRow03=0x7f070047; public static final int TextView01=0x7f070003; public static final int TextView02=0x7f070004; - public static final int btnChannelDown=0x7f07004f; - public static final int btnChannelUp=0x7f07004c; - public static final int btnExit=0x7f070050; - public static final int btnHibernate=0x7f070052; - public static final int btnRestart=0x7f070053; - public static final int btnShutOff=0x7f070054; - public static final int btnSuspend=0x7f070051; - public static final int btnVolumeDown=0x7f07004e; - public static final int btnVolumeMute=0x7f07004d; - public static final int btnVolumeUp=0x7f07004b; - public static final int btnWakeOnLan=0x7f070055; + public static final int btnChannelDown=0x7f070051; + public static final int btnChannelUp=0x7f07004e; + public static final int btnExit=0x7f070052; + public static final int btnHibernate=0x7f070054; + public static final int btnRestart=0x7f070055; + public static final int btnShutOff=0x7f070056; + public static final int btnSuspend=0x7f070053; + public static final int btnVolumeDown=0x7f070050; + public static final int btnVolumeMute=0x7f07004f; + public static final int btnVolumeUp=0x7f07004d; + public static final int btnWakeOnLan=0x7f070057; public static final int btn_main_music=0x7f070008; public static final int btn_main_now_playing=0x7f07000b; public static final int btn_main_pictures=0x7f070007; @@ -120,75 +121,76 @@ public static final int btn_main_skp_back=0x7f07000e; public static final int btn_main_skp_forw=0x7f070010; public static final int btn_main_video=0x7f070009; - public static final int btnkey01=0x7f070057; - public static final int btnkey02=0x7f070058; - public static final int btnkey03=0x7f070059; - public static final int btnkey04=0x7f07005a; - public static final int btnkey05=0x7f07005b; - public static final int btnkey06=0x7f07005c; - public static final int btnkey07=0x7f07005d; - public static final int btnkey08=0x7f07005e; - public static final int btnkey09=0x7f07005f; - public static final int btnkey10=0x7f070060; - public static final int btnkey11=0x7f070062; - public static final int btnkey12=0x7f070063; - public static final int btnkey13=0x7f070064; - public static final int btnkey14=0x7f070065; - public static final int btnkey15=0x7f070066; - public static final int btnkey16=0x7f070067; - public static final int btnkey17=0x7f070068; - public static final int btnkey18=0x7f070069; - public static final int btnkey19=0x7f07006a; - public static final int btnkey20=0x7f07006c; - public static final int btnkey21=0x7f07006d; - public static final int btnkey22=0x7f07006e; - public static final int btnkey23=0x7f07006f; - public static final int btnkey24=0x7f070070; - public static final int btnkey25=0x7f070071; - public static final int btnkey26=0x7f070072; - public static final int btnkey27=0x7f070073; - public static final int btnkey28=0x7f070074; - public static final int btnkey29=0x7f070076; - public static final int btnkey30=0x7f070077; - public static final int btnkey31=0x7f070078; - public static final int btnkey32=0x7f070079; - public static final int btnkey33=0x7f07007a; - public static final int btnkey41=0x7f07007c; - public static final int btnkey42=0x7f07007d; - public static final int btnkey43=0x7f07007e; - public static final int btnkey44=0x7f07007f; - public static final int btnkey45=0x7f070080; - public static final int btnkey46=0x7f070081; - public static final int btnkey47=0x7f070082; - public static final int btnkey48=0x7f070083; - public static final int btnkey49=0x7f070084; - public static final int btnkey50=0x7f070085; - public static final int button_play=0x7f07001d; - public static final int button_stream=0x7f07001b; - public static final int clearplaylist=0x7f07008d; - public static final int crtl_back=0x7f070038; - public static final int crtl_ch_m=0x7f070044; - public static final int crtl_ch_p=0x7f07003f; - public static final int crtl_down=0x7f070037; - public static final int crtl_full=0x7f070041; - public static final int crtl_info=0x7f070049; - public static final int crtl_left=0x7f070032; - public static final int crtl_menu=0x7f070043; - public static final int crtl_mp=0x7f07002e; - public static final int crtl_osd=0x7f070048; - public static final int crtl_parent=0x7f070036; - public static final int crtl_play=0x7f070042; - public static final int crtl_power=0x7f070030; - public static final int crtl_ratio=0x7f070047; - public static final int crtl_right=0x7f070034; - public static final int crtl_select=0x7f070033; - public static final int crtl_skip_back=0x7f07003c; - public static final int crtl_skip_forw=0x7f07003e; - public static final int crtl_stop=0x7f07003d; - public static final int crtl_sub=0x7f070046; - public static final int crtl_up=0x7f07002f; - public static final int crtl_vol_m=0x7f07003a; - public static final int crtl_vol_p=0x7f070039; + public static final int btnkey01=0x7f070059; + public static final int btnkey02=0x7f07005a; + public static final int btnkey03=0x7f07005b; + public static final int btnkey04=0x7f07005c; + public static final int btnkey05=0x7f07005d; + public static final int btnkey06=0x7f07005e; + public static final int btnkey07=0x7f07005f; + public static final int btnkey08=0x7f070060; + public static final int btnkey09=0x7f070061; + public static final int btnkey10=0x7f070062; + public static final int btnkey11=0x7f070064; + public static final int btnkey12=0x7f070065; + public static final int btnkey13=0x7f070066; + public static final int btnkey14=0x7f070067; + public static final int btnkey15=0x7f070068; + public static final int btnkey16=0x7f070069; + public static final int btnkey17=0x7f07006a; + public static final int btnkey18=0x7f07006b; + public static final int btnkey19=0x7f07006c; + public static final int btnkey20=0x7f07006e; + public static final int btnkey21=0x7f07006f; + public static final int btnkey22=0x7f070070; + public static final int btnkey23=0x7f070071; + public static final int btnkey24=0x7f070072; + public static final int btnkey25=0x7f070073; + public static final int btnkey26=0x7f070074; + public static final int btnkey27=0x7f070075; + public static final int btnkey28=0x7f070076; + public static final int btnkey29=0x7f070078; + public static final int btnkey30=0x7f070079; + public static final int btnkey31=0x7f07007a; + public static final int btnkey32=0x7f07007b; + public static final int btnkey33=0x7f07007c; + public static final int btnkey41=0x7f07007e; + public static final int btnkey42=0x7f07007f; + public static final int btnkey43=0x7f070080; + public static final int btnkey44=0x7f070081; + public static final int btnkey45=0x7f070082; + public static final int btnkey46=0x7f070083; + public static final int btnkey47=0x7f070084; + public static final int btnkey48=0x7f070085; + public static final int btnkey49=0x7f070086; + public static final int btnkey50=0x7f070087; + public static final int button_open=0x7f07001c; + public static final int button_stream=0x7f07001d; + public static final int button_stream_stop=0x7f07001e; + public static final int clearplaylist=0x7f070094; + public static final int crtl_back=0x7f07003a; + public static final int crtl_ch_m=0x7f070046; + public static final int crtl_ch_p=0x7f070041; + public static final int crtl_down=0x7f070039; + public static final int crtl_full=0x7f070043; + public static final int crtl_info=0x7f07004b; + public static final int crtl_left=0x7f070034; + public static final int crtl_menu=0x7f070045; + public static final int crtl_mp=0x7f070030; + public static final int crtl_osd=0x7f07004a; + public static final int crtl_parent=0x7f070038; + public static final int crtl_play=0x7f070044; + public static final int crtl_power=0x7f070032; + public static final int crtl_ratio=0x7f070049; + public static final int crtl_right=0x7f070036; + public static final int crtl_select=0x7f070035; + public static final int crtl_skip_back=0x7f07003e; + public static final int crtl_skip_forw=0x7f070040; + public static final int crtl_stop=0x7f07003f; + public static final int crtl_sub=0x7f070048; + public static final int crtl_up=0x7f070031; + public static final int crtl_vol_m=0x7f07003c; + public static final int crtl_vol_p=0x7f07003b; public static final int full_text=0x7f070018; public static final int icon_image=0x7f070001; public static final int icon_text=0x7f070002; @@ -198,38 +200,43 @@ public static final int list_song=0x7f070016; public static final int main_now_playing=0x7f07000d; public static final int music_grid=0x7f070012; - public static final int naviRemote_text=0x7f07004a; - public static final int now_album=0x7f070020; - public static final int now_artist=0x7f070026; - public static final int now_cd=0x7f070021; - public static final int now_list=0x7f07002b; - public static final int now_next=0x7f07002a; - public static final int now_play=0x7f070029; - public static final int now_playing=0x7f07001f; - public static final int now_playing_right=0x7f070024; - public static final int now_playing_t_left=0x7f070023; - public static final int now_prev=0x7f070027; - public static final int now_progress=0x7f070022; - public static final int now_stop=0x7f070028; - public static final int now_title=0x7f070025; - public static final int open=0x7f070090; - public static final int playlist=0x7f07008c; - public static final int progress_bar=0x7f07001c; - public static final int rslide=0x7f070093; - public static final int save=0x7f07008f; - public static final int sdcard=0x7f07008e; - public static final int send=0x7f070091; - public static final int server_ip=0x7f070086; - public static final int server_macid=0x7f070088; - public static final int server_port=0x7f070087; - public static final int slide=0x7f070092; + public static final int naviRemote_text=0x7f07004c; + public static final int now_album=0x7f070022; + public static final int now_artist=0x7f070028; + public static final int now_cd=0x7f070023; + public static final int now_list=0x7f07002d; + public static final int now_next=0x7f07002c; + public static final int now_play=0x7f07002b; + public static final int now_playing=0x7f070021; + public static final int now_playing_right=0x7f070026; + public static final int now_playing_t_left=0x7f070025; + public static final int now_prev=0x7f070029; + public static final int now_progress=0x7f070024; + public static final int now_stop=0x7f07002a; + public static final int now_title=0x7f070027; + public static final int open=0x7f070097; + public static final int playlist=0x7f070093; + public static final int radio01=0x7f07008e; + public static final int radio02=0x7f07008f; + public static final int radio03=0x7f070090; + public static final int radio04=0x7f070091; + public static final int radioStop=0x7f070092; + public static final int rslide=0x7f07009a; + public static final int save=0x7f070096; + public static final int sdcard=0x7f070095; + public static final int send=0x7f070098; + public static final int server_ip=0x7f070088; + public static final int server_macid=0x7f07008a; + public static final int server_port=0x7f070089; + public static final int slide=0x7f070099; public static final int text_kb_streamed=0x7f07001a; - public static final int title=0x7f07008b; - public static final int vibration=0x7f07008a; + public static final int title=0x7f07008d; + public static final int txtFile=0x7f07001b; + public static final int vibration=0x7f07008c; public static final int widget0=0x7f070011; - public static final int widget00=0x7f07002d; - public static final int widget01=0x7f070031; - public static final int widget02=0x7f070035; + public static final int widget00=0x7f07002f; + public static final int widget01=0x7f070033; + public static final int widget02=0x7f070037; public static final int widget44=0x7f070000; } public static final class layout { @@ -254,6 +261,7 @@ public static final int setup=0x7f030012; public static final int splash=0x7f030013; public static final int title=0x7f030014; + public static final int webradio=0x7f030015; } public static final class menu { public static final int music_menu=0x7f060000; Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-13 21:02:08 UTC (rev 4070) @@ -24,7 +24,8 @@ Video section ------------- -nothing yet +play an initial file on startup +experimental stream / open file with preview NowPlaying ---------- Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml 2011-01-13 21:02:08 UTC (rev 4070) @@ -5,21 +5,25 @@ <TextView android:id="@+id/text_kb_streamed" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:textStyle="bold" android:text="Streaming .mp3 Audio Tutorial" /> + android:textStyle="bold" android:text="Streaming files experimental"/> - <Button android:id="@+id/button_stream" android:layout_width="wrap_content" - android:layout_height="wrap_content" android:layout_marginTop="10px" - style="?android:attr/buttonStyleSmall" android:text="Start Streaming" /> + <EditText android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="@+id/txtFile" android:id="@+id/txtFile" android:inputType="text" android:layout_marginTop="10dip"></EditText> + + <Button android:id="@+id/button_open" android:layout_height="wrap_content" android:layout_marginTop="10px" + style="?android:attr/buttonStyleSmall" android:text="Open stream" android:layout_width="fill_parent"/> + + <Button android:id="@+id/button_stream" android:layout_height="wrap_content" android:layout_marginTop="10px" + style="?android:attr/buttonStyleSmall" android:text="Start streaming" android:layout_width="fill_parent"/> + + <Button android:id="@+id/button_stream_stop" android:layout_height="wrap_content" android:layout_marginTop="10px" + style="?android:attr/buttonStyleSmall" android:text="Stop streaming" android:layout_width="fill_parent"/> - <ProgressBar android:id="@+id/progress_bar" - android:layout_width="200px" android:layout_height="wrap_content" - android:layout_alignParentLeft="true" - style="?android:attr/progressBarStyleHorizontal" /> + - <ImageButton android:id="@+id/button_play" - android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="5px" style="?android:attr/buttonStyleSmall" - android:src="@drawable/pause" /> + +<SurfaceView android:id="@+id/SurfaceView01" android:layout_width="300dip" android:layout_height="200dip" android:layout_marginTop="10dip"></SurfaceView> + + </LinearLayout> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-13 21:02:08 UTC (rev 4070) @@ -40,8 +40,7 @@ </LinearLayout> <LinearLayout android:id="@+id/widget02" - android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_gravity="center_vertical"> + android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> <ImageButton android:id="@+id/crtl_parent" android:layout_height="60dip" android:layout_width="100dip"> Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/webradio.xml 2011-01-13 21:02:08 UTC (rev 4070) @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="fill_parent" + android:layout_height="fill_parent" android:background="@drawable/brush"> + +<Button android:text="Webradio 01" + android:id="@+id/radio01" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> +</Button> +<Button android:text="Webradio 02" + android:id="@+id/radio02" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> +</Button> +<Button android:text="Webradio 03" + android:id="@+id/radio03" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> +</Button> +<Button android:text="Webradio 04" + android:id="@+id/radio04" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> +</Button> + +<Button android:text="Stop Playing" + android:id="@+id/radioStop" + android:layout_width="fill_parent" + android:layout_height="wrap_content" android:layout_marginTop="20dip"> +</Button> + +</LinearLayout> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -2,69 +2,85 @@ import java.io.IOException; +import mediaportal.remote.communication.SendCommand; import mediaportal.remote.utils.AppSettings; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; -import android.provider.Contacts.Settings; -import android.util.Log; +import android.view.SurfaceHolder; +import android.view.SurfaceView; import android.view.View; import android.widget.Button; -import android.widget.ImageButton; -import android.widget.ProgressBar; import android.widget.TextView; -public class MediaPlayerControl extends Activity { +public class MediaPlayerControl extends Activity implements + SurfaceHolder.Callback { + private Button openButton; private Button streamButton; - private ImageButton playButton; - private TextView textStreamed; + private Button streamStopButton; - private MediaPlayer mp; - - private boolean isPlaying; - - private StreamingMediaPlayer audioStreamer; - - @Override + private TextView txtFile; + + private SurfaceView mPreview; + private SurfaceHolder holder; + + private static MediaPlayer mp; + + @Override public void onCreate(Bundle icicle) { - - super.onCreate(icicle); - setContentView(R.layout.player); - initControls(); - - mp = new MediaPlayer(); - } - - private void initControls() { - textStreamed = (TextView) findViewById(R.id.text_kb_streamed); + super.onCreate(icicle); + + setContentView(R.layout.player); + initControls(); + } + + private void initControls() { + + txtFile = (TextView) findViewById(R.id.txtFile); + txtFile.setText(AppSettings.getLastFile()); + + openButton = (Button) findViewById(R.id.button_open); streamButton = (Button) findViewById(R.id.button_stream); + streamStopButton = (Button) findViewById(R.id.button_stream_stop); + + mPreview = (SurfaceView) findViewById(R.id.SurfaceView01); + + // Set a size for the video screen + holder = mPreview.getHolder(); + holder.addCallback(this); + holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); + holder.setFixedSize(300, 200); + + openButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + SendCommand.PostStreamFile(txtFile.getText().toString(),"video"); + } + }); + streamButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - startStreamingAudio(); - }}); + if (mp == null) + mp = new MediaPlayer(); + startStreaming(); + } + }); - playButton = (ImageButton) findViewById(R.id.button_play); - playButton.setEnabled(false); - playButton.setOnClickListener(new View.OnClickListener() { + streamStopButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - if (audioStreamer.getMediaPlayer().isPlaying()) { - audioStreamer.getMediaPlayer().pause(); - playButton.setImageResource(R.drawable.play); - } else { - audioStreamer.getMediaPlayer().start(); - audioStreamer.startPlayProgressUpdater(); - playButton.setImageResource(R.drawable.pause); - } - isPlaying = !isPlaying; - }}); - } - - private void startStreamingAudio() { - - try { - mp.setDataSource("rtsp://" + AppSettings.getServer() +"/stream.sdp"); + closePlayer(); + } + }); + + } + + private void startStreaming() { + + try { + mp.setDataSource("rtsp://" + AppSettings.getServer() + + ":5554/android.sdp"); + mp.setDisplay(holder); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); @@ -75,7 +91,7 @@ // TODO Auto-generated catch block e.printStackTrace(); } - try { + try { mp.prepare(); } catch (IllegalStateException e) { // TODO Auto-generated catch block @@ -84,7 +100,37 @@ // TODO Auto-generated catch block e.printStackTrace(); } - mp.start(); - - } + mp.start(); + mp.setScreenOnWhilePlaying(true); + } + + public void surfaceCreated(SurfaceHolder surfaceholder) { + + } + + public void surfaceChanged(SurfaceHolder surfaceholder, int i, int j, int k) { + + } + + public void surfaceDestroyed(SurfaceHolder surfaceholder) { + + } + + @Override + protected void onPause() { + super.onPause(); + + closePlayer(); + + AppSettings.setLastFile(txtFile.getText().toString()); + } + + private void closePlayer() { + if (mp != null) { + if (mp.isPlaying()) + mp.stop(); + mp = null; + + } + } } Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/StreamingMediaPlayer.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/StreamingMediaPlayer.java 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/StreamingMediaPlayer.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -1,335 +0,0 @@ -package mediaportal.remote; - -import java.io.BufferedInputStream; -import java.io.BufferedOutputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.net.URL; -import java.net.URLConnection; -import android.content.Context; -import android.media.MediaPlayer; -import android.os.Handler; -import android.util.Log; -import android.widget.Button; -import android.widget.ImageButton; -import android.widget.ProgressBar; -import android.widget.TextView; - -/** - * MediaPlayer does not yet support streaming from external URLs so this class provides a pseudo-streaming function - * by downloading the content incrementally & playing as soon as we get enough audio in our temporary storage. - */ -public class StreamingMediaPlayer { - - private static final int INTIAL_KB_BUFFER = 160*10/8;//assume 96kbps*10secs/8bits per byte - - private TextView textStreamed; - - private ImageButton playButton; - - private ProgressBar progressBar; - - // Track for display by progressBar - private long mediaLengthInKb, mediaLengthInSeconds; - private int totalKbRead = 0; - - // Create Handler to call View updates on the main UI thread. - private final Handler handler = new Handler(); - - private MediaPlayer mediaPlayer; - - private File downloadingMediaFile; - - private boolean isInterrupted; - - private Context context; - - private int counter = 0; - - public StreamingMediaPlayer(Context context,TextView textStreamed, ImageButton playButton, Button streamButton,ProgressBar progressBar) - { - this.context = context; - this.textStreamed = textStreamed; - this.playButton = playButton; - this.progressBar = progressBar; - } - - /** - * Progressively download the media to a temporary location and update the MediaPlayer as new content becomes available. - */ - public void startStreaming(final String mediaUrl, long mediaLengthInKb, long mediaLengthInSeconds) throws IOException { - - this.mediaLengthInKb = mediaLengthInKb; - this.mediaLengthInSeconds = mediaLengthInSeconds; - - Runnable r = new Runnable() { - public void run() { - try { - downloadAudioIncrement(mediaUrl); - } catch (IOException e) { - Log.e(getClass().getName(), "Unable to initialize the MediaPlayer for fileUrl=" + mediaUrl, e); - return; - } - } - }; - new Thread(r).start(); - } - - /** - * Download the url stream to a temporary location and then call the setDataSource - * for that local file - */ - public void downloadAudioIncrement(String mediaUrl) throws IOException { - - URLConnection cn = new URL(mediaUrl).openConnection(); - cn.connect(); - InputStream stream = cn.getInputStream(); - if (stream == null) { - Log.e(getClass().getName(), "Unable to create InputStream for mediaUrl:" + mediaUrl); - } - - downloadingMediaFile = new File(context.getCacheDir(),"downloadingMedia.dat"); - - // Just in case a prior deletion failed because our code crashed or something, we also delete any previously - // downloaded file to ensure we start fresh. If you use this code, always delete - // no longer used downloads else you'll quickly fill up your hard disk memory. Of course, you can also - // store any previously downloaded file in a separate data cache for instant replay if you wanted as well. - if (downloadingMediaFile.exists()) { - downloadingMediaFile.delete(); - } - - FileOutputStream out = new FileOutputStream(downloadingMediaFile); - byte buf[] = new byte[16384]; - int totalBytesRead = 0, incrementalBytesRead = 0; - do { - int numread = stream.read(buf); - if (numread <= 0) - break; - out.write(buf, 0, numread); - totalBytesRead += numread; - incrementalBytesRead += numread; - totalKbRead = totalBytesRead/1000; - - testMediaBuffer(); - fireDataLoadUpdate(); - } while (validateNotInterrupted()); - stream.close(); - if (validateNotInterrupted()) { - fireDataFullyLoaded(); - } - } - - private boolean validateNotInterrupted() { - if (isInterrupted) { - if (mediaPlayer != null) { - mediaPlayer.pause(); - //mediaPlayer.release(); - } - return false; - } else { - return true; - } - } - - - /** - * Test whether we need to transfer buffered data to the MediaPlayer. - * Interacting with MediaPlayer on non-main UI thread can causes crashes to so perform this using a Handler. - */ - private void testMediaBuffer() { - Runnable updater = new Runnable() { - public void run() { - if (mediaPlayer == null) { - // Only create the MediaPlayer once we have the minimum buffered data - if ( totalKbRead >= INTIAL_KB_BUFFER) { - try { - startMediaPlayer(); - } catch (Exception e) { - Log.e(getClass().getName(), "Error copying buffered conent.", e); - } - } - } else if ( mediaPlayer.getDuration() - mediaPlayer.getCurrentPosition() <= 1000 ){ - // NOTE: The media player has stopped at the end so transfer any existing buffered data - // We test for < 1second of data because the media player can stop when there is still - // a few milliseconds of data left to play - transferBufferToMediaPlayer(); - } - } - }; - handler.post(updater); - } - - private void startMediaPlayer() { - try { - File bufferedFile = new File(context.getCacheDir(),"playingMedia" + (counter++) + ".dat"); - - // We double buffer the data to avoid potential read/write errors that could happen if the - // download thread attempted to write at the same time the MediaPlayer was trying to read. - // For example, we can't guarantee that the MediaPlayer won't open a file for playing and leave it locked while - // the media is playing. This would permanently deadlock the file download. To avoid such a deadloack, - // we move the currently loaded data to a temporary buffer file that we start playing while the remaining - // data downloads. - moveFile(downloadingMediaFile,bufferedFile); - - Log.e(getClass().getName(),"Buffered File path: " + bufferedFile.getAbsolutePath()); - Log.e(getClass().getName(),"Buffered File length: " + bufferedFile.length()+""); - - mediaPlayer = createMediaPlayer(bufferedFile); - - // We have pre-loaded enough content and started the MediaPlayer so update the buttons & progress meters. - mediaPlayer.start(); - startPlayProgressUpdater(); - playButton.setEnabled(true); - } catch (IOException e) { - Log.e(getClass().getName(), "Error initializing the MediaPlayer.", e); - return; - } - } - - private MediaPlayer createMediaPlayer(File mediaFile) - throws IOException { - MediaPlayer mPlayer = new MediaPlayer(); - mPlayer.setOnErrorListener( - new MediaPlayer.OnErrorListener() { - public boolean onError(MediaPlayer mp, int what, int extra) { - Log.e(getClass().getName(), "Error in MediaPlayer: (" + what +") with extra (" +extra +")" ); - return false; - } - }); - - // It appears that for security/permission reasons, it is better to pass a FileDescriptor rather than a direct path to the File. - // Also I have seen errors such as "PVMFErrNotSupported" and "Prepare failed.: status=0x1" if a file path String is passed to - // setDataSource(). So unless otherwise noted, we use a FileDescriptor here. - FileInputStream fis = new FileInputStream(mediaFile); - mPlayer.setDataSource(fis.getFD()); - mPlayer.prepare(); - return mPlayer; - } - - /** - * Transfer buffered data to the MediaPlayer. - * NOTE: Interacting with a MediaPlayer on a non-main UI thread can cause thread-lock and crashes so - * this method should always be called using a Handler. - */ - private void transferBufferToMediaPlayer() { - try { - // First determine if we need to restart the player after transferring data...e.g. perhaps the user pressed pause - boolean wasPlaying = mediaPlayer.isPlaying(); - int curPosition = mediaPlayer.getCurrentPosition(); - - // Copy the currently downloaded content to a new buffered File. Store the old File for deleting later. - File oldBufferedFile = new File(context.getCacheDir(),"playingMedia" + counter + ".dat"); - File bufferedFile = new File(context.getCacheDir(),"playingMedia" + (counter++) + ".dat"); - - // This may be the last buffered File so ask that it be delete on exit. If it's already deleted, then this won't mean anything. If you want to - // keep and track fully downloaded files for later use, write caching code and please send me a copy. - bufferedFile.deleteOnExit(); - moveFile(downloadingMediaFile,bufferedFile); - - // Pause the current player now as we are about to create and start a new one. So far (Android v1.5), - // this always happens so quickly that the user never realized we've stopped the player and started a new one - mediaPlayer.pause(); - - // Create a new MediaPlayer rather than try to re-prepare the prior one. - mediaPlayer = createMediaPlayer(bufferedFile); - mediaPlayer.seekTo(curPosition); - - // Restart if at end of prior buffered content or mediaPlayer was previously playing. - // NOTE: We test for < 1second of data because the media player can stop when there is still - // a few milliseconds of data left to play - boolean atEndOfFile = mediaPlayer.getDuration() - mediaPlayer.getCurrentPosition() <= 1000; - if (wasPlaying || atEndOfFile){ - mediaPlayer.start(); - } - - // Lastly delete the previously playing buffered File as it's no longer needed. - oldBufferedFile.delete(); - - }catch (Exception e) { - Log.e(getClass().getName(), "Error updating to newly loaded content.", e); - } - } - - private void fireDataLoadUpdate() { - Runnable updater = new Runnable() { - public void run() { - textStreamed.setText((totalKbRead + " Kb read")); - float loadProgress = ((float)totalKbRead/(float)mediaLengthInKb); - progressBar.setSecondaryProgress((int)(loadProgress*100)); - } - }; - handler.post(updater); - } - - private void fireDataFullyLoaded() { - Runnable updater = new Runnable() { - public void run() { - transferBufferToMediaPlayer(); - - // Delete the downloaded File as it's now been transferred to the currently playing buffer file. - downloadingMediaFile.delete(); - textStreamed.setText(("Audio full loaded: " + totalKbRead + " Kb read")); - } - }; - handler.post(updater); - } - - public MediaPlayer getMediaPlayer() { - return mediaPlayer; - } - - public void startPlayProgressUpdater() { - float progress = (((float)mediaPlayer.getCurrentPosition()/1000)/mediaLengthInSeconds); - progressBar.setProgress((int)(progress*100)); - - if (mediaPlayer.isPlaying()) { - Runnable notification = new Runnable() { - public void run() { - startPlayProgressUpdater(); - } - }; - handler.postDelayed(notification,1000); - } - } - - public void interrupt() { - playButton.setEnabled(false); - isInterrupted = true; - validateNotInterrupted(); - } - - /** - * Move the file in oldLocation to newLocation. - */ - public void moveFile(File oldLocation, File newLocation) - throws IOException { - - if ( oldLocation.exists( )) { - BufferedInputStream reader = new BufferedInputStream( new FileInputStream(oldLocation) ); - BufferedOutputStream writer = new BufferedOutputStream( new FileOutputStream(newLocation, false)); - try { - byte[] buff = new byte[8192]; - int numChars; - while ( (numChars = reader.read( buff, 0, buff.length ) ) != -1) { - writer.write( buff, 0, numChars ); - } - } catch( IOException ex ) { - throw new IOException("IOException when transferring " + oldLocation.getPath() + " to " + newLocation.getPath()); - } finally { - try { - if ( reader != null ){ - writer.close(); - reader.close(); - } - } catch( IOException ex ){ - Log.e(getClass().getName(),"Error closing files when transferring " + oldLocation.getPath() + " to " + newLocation.getPath() ); - } - } - } else { - throw new IOException("Old location does not exist when transferring " + oldLocation.getPath() + " to " + newLocation.getPath() ); - } - } -} Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -167,4 +167,23 @@ post.Post(xml); } + public static void PostStreamFile(String Filename, String MediaTyp) { + + Filename = Entity.AddEntity(Filename); + + Log.d("MediaPortal", "PostStreamFile : " + Filename); + + PostWebserver post = new PostWebserver(AppSettings.getServer(), AppSettings.getPort()); + String xml = ""; + + xml += "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"; + xml += "<message>\r\n"; + xml += "<command>StreamFile</command>\r\n"; + xml += "<filename>" + Filename + "</filename>\r\n"; + xml += "<mediatyp>" + MediaTyp + "</mediatyp>\r\n"; + xml += "</message>\r\n"; + + post.Post(xml); + } + } Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -30,6 +30,7 @@ import mediaportal.remote.R; import mediaportal.remote.communication.SendCommand; import mediaportal.remote.control.Remote_01; +import mediaportal.remote.multimedia.Webradio; import mediaportal.remote.music.MusicTab; import mediaportal.remote.nowPlaying.NowPlaying; import mediaportal.remote.nowPlaying.NowPlayingXmlHandler; @@ -52,6 +53,7 @@ import android.os.Handler; import android.os.Vibrator; import android.util.Log; +import android.view.KeyEvent; import android.view.View; import android.widget.*; @@ -146,13 +148,13 @@ public void onClick(View view) { Vibration.vibrateShort(); - Toast.makeText(view.getContext(), - "not implemented yet. Sorry !", Toast.LENGTH_LONG) - .show(); + //Toast.makeText(view.getContext(), + // "not implemented yet. Sorry !", Toast.LENGTH_LONG) + // .show(); - //Intent myIntent = new Intent(view.getContext(), - //MediaPlayerControl.class); - //startActivity(myIntent); + Intent myIntent = new Intent(view.getContext(), + MediaPlayerControl.class); + startActivity(myIntent); } }); @@ -179,7 +181,7 @@ btnSettings.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Vibration.vibrateShort(); - Intent myIntent = new Intent(view.getContext(), Setup.class); + Intent myIntent = new Intent(view.getContext(), Webradio.class); startActivity(myIntent); } }); @@ -281,7 +283,7 @@ super.onStart(); Log.d("MediaPortal", "start Main"); - + AppSettings.setSettings(getSharedPreferences(PREFS_PRIVATE, MODE_PRIVATE)); @@ -292,11 +294,6 @@ } @Override - public void onResume() { - super.onResume(); - } - - @Override public void onPause() { super.onPause(); @@ -304,6 +301,21 @@ mHandler.removeCallbacks(mUpdateTimeTask); } + // hardware keys + @Override + public boolean onKeyDown(int keyCode, KeyEvent event) { + + switch (keyCode) { + case KeyEvent.KEYCODE_MENU: { + Intent myIntent = new Intent(this, Setup.class); + startActivityForResult(myIntent, 0); + return true; + } + } + + return super.onKeyDown(keyCode, event); + } + private Runnable mUpdateTimeTask = new Runnable() { public void run() { new update().execute(); @@ -333,8 +345,8 @@ if ((playerState != null) && (!playerState.equals("no player active"))) { display = values.get("Artist") + " - " - + values.get("Title") + " (" + values.get("ActualTime") - + ")"; + + values.get("Title") + " (" + + values.get("ActualTime") + ")"; state = playerState; } else { display = "nothing playing"; Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/AudioPlayer.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -0,0 +1,47 @@ +package mediaportal.remote.multimedia; + +import java.io.IOException; + +import mediaportal.remote.utils.AppSettings; +import android.media.MediaPlayer; + +public class AudioPlayer { + + private MediaPlayer mp; + + public AudioPlayer() { + mp = new MediaPlayer(); + } + + public void StartPlaying() { + try { + mp.setDataSource("http://" + AppSettings.getServer() + ":8081/"); + } catch (IllegalArgumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalStateException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + try { + mp.prepare(); + } catch (IllegalStateException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + mp.start(); + mp.setScreenOnWhilePlaying(true); + } + + public void StopPlaying() { + if (mp != null) + if (mp.isPlaying()) + mp.stop(); + } +} Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/multimedia/Webradio.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -0,0 +1,84 @@ +package mediaportal.remote.multimedia; + +import mediaportal.remote.R; +import mediaportal.remote.communication.SendCommand; +import mediaportal.remote.utils.KeyLock; +import mediaportal.remote.utils.Vibration; +import android.app.Activity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class Webradio extends Activity{ + + private AudioPlayer player; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.webradio); + + player = new AudioPlayer(); + + Button radio01 = (Button) findViewById(R.id.radio01); + radio01.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + Vibration.vibrateShort(); + + SendCommand.PostStreamFile("webradio_1","audio"); + player.StartPlaying(); + } + }); + Button radio02 = (Button) findViewById(R.id.radio02); + radio02.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + Vibration.vibrateShort(); + + SendCommand.PostStreamFile("webradio_2","audio"); + player.StartPlaying(); + } + }); + Button radio03 = (Button) findViewById(R.id.radio03); + radio03.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + Vibration.vibrateShort(); + + SendCommand.PostStreamFile("webradio_3","audio"); + player.StartPlaying(); + } + }); + Button radio04 = (Button) findViewById(R.id.radio04); + radio04.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + Vibration.vibrateShort(); + + SendCommand.PostStreamFile("webradio_4","audio"); + player.StartPlaying(); + } + }); + + Button radioStop = (Button) findViewById(R.id.radioStop); + radioStop.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + Vibration.vibrateShort(); + player.StopPlaying(); + } + }); + + } + + @Override + public void onResume() { + super.onResume(); + + KeyLock.disableKeylock(); + } + + @Override + public void onPause() { + super.onPause(); + + KeyLock.enbleKeylock(); + + } +} Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -69,6 +69,8 @@ public static boolean SlideshowPaused = false; private static long SlideInterval = 5000; + private Bitmap picture; + /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { @@ -105,7 +107,7 @@ Log.d("MediaPortal", "pictures fullscreen load " + file); - item.Picture = http.DownloadImage(file); + picture = http.DownloadImage(file); } return null; @@ -119,7 +121,7 @@ if (item.isFolder != true) { ImageView imagev = (ImageView) findViewById(R.id.ImageView01); - imagev.setImageBitmap(item.Picture); + imagev.setImageBitmap(picture); TextView txt = (TextView) findViewById(R.id.full_text); @@ -174,10 +176,10 @@ HttpHandler handler = new HttpHandler(); - Bitmap pic = handler.DownloadImage(req); + picture = handler.DownloadImage(req); ImageView imagev = (ImageView) findViewById(R.id.ImageView01); - imagev.setImageBitmap(pic); + imagev.setImageBitmap(picture); TextView txt = (TextView) findViewById(R.id.full_text); txt.setText("Random slide show"); @@ -220,7 +222,7 @@ private void SavetoSDCard() { try { DirItems item = Pictures.pictureList.get(Pictures.selectedPicture); - Bitmap bMap = item.Picture; + Bitmap bMap = picture; File fPath = Environment.getExternalStorageDirectory(); OutputStream outStream = null; try { @@ -249,7 +251,7 @@ Picturesfullscreen.this, fPath + "/" + item.File.toString(), "image/jpeg"); - Toast.makeText(Picturesfullscreen.this, "File saved.", + Toast.makeText(Picturesfullscreen.this, "File has been saved.", Toast.LENGTH_SHORT).show(); } catch (IOException e) { e.printStackTrace(); @@ -267,7 +269,7 @@ private void SavetoCache() { try { DirItems item = Pictures.pictureList.get(Pictures.selectedPicture); - Bitmap bMap = item.Picture; + Bitmap bMap = picture; File fPath = Environment.getExternalStorageDirectory(); OutputStream outStream = null; try { @@ -291,8 +293,8 @@ try { outStream.close(); - Toast.makeText(Picturesfullscreen.this, "File saved.", - Toast.LENGTH_SHORT).show(); + //Toast.makeText(Picturesfullscreen.this, "File saved.", + // Toast.LENGTH_SHORT).show(); } catch (IOException e) { e.printStackTrace(); Log.e("Debug", "SavetoSDCard " + e.getMessage().toString() Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java 2011-01-13 21:02:08 UTC (rev 4070) @@ -60,6 +60,11 @@ return "http://" + AppSettings.getServer() + ":" + AppSettings.getPort(); } + public static String getLastFile() + { + return settings.getString("LastFile", "c:\\test.mp4"); + } + public static void setServer(String Server) { prefEditor.putString("Server", Server); @@ -86,4 +91,10 @@ prefEditor.commit(); } + public static void setLastFile(String File) + { + prefEditor.putString("LastFile", File); + prefEditor.commit(); + } + } Modified: trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 =================================================================== --- trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Release/AndroidRemote.xmp2 2011-01-13 21:02:08 UTC (rev 4070) @@ -17,6 +17,13 @@ <ZipFileName>Installer{CopyFile}\{e035a37f-6b89-423d-b478-a1d7bbd1cce6}-AndroidRemote.dll</ZipFileName> <DestinationFilename>%Plugins%\process\AndroidRemote.dll</DestinationFilename> </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>OverwriteIfOlder</UpdateOption> + <LocalFileName>..\Server\AndroidRemote\bin\Release\VideoLan.Interop.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{b71d0b6b-5613-449f-98a4-50dee3c65c8c}-VideoLan.Interop.dll</ZipFileName> + <DestinationFilename>%Plugins%\process\VideoLan.Interop.dll</DestinationFilename> + </FileItem> </Items> </Files> </GroupItem> @@ -193,6 +200,13 @@ <ZipFileName>Installer{CopyFile}\{e035a37f-6b89-423d-b478-a1d7bbd1cce6}-AndroidRemote.dll</ZipFileName> <DestinationFilename>%Plugins%\process\AndroidRemote.dll</DestinationFilename> </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>OverwriteIfOlder</UpdateOption> + <LocalFileName>..\Server\AndroidRemote\bin\Release\VideoLan.Interop.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{b71d0b6b-5613-449f-98a4-50dee3c65c8c}-VideoLan.Interop.dll</ZipFileName> + <DestinationFilename>%Plugins%\process\VideoLan.Interop.dll</DestinationFilename> + </FileItem> </Items> </UniqueFileList> <ProjectSettings> Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj 2011-01-13 21:02:08 UTC (rev 4070) @@ -52,10 +52,18 @@ <HintPath>..\..\..\..\Program Files\Team MediaPortal\MediaPortal\Utils.dll</HintPath> <Private>False</Private> </Reference> + <Reference Include="VideoLan.Interop, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <Private>False</Private> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="AndroidServer.cs" /> - <Compile Include="ExecuteCommand.cs" /> + <Compile Include="Content\MusicHandler.cs" /> + <Compile Include="Content\NowPlayingHandler.cs" /> + <Compile Include="Content\PictureHandler.cs" /> + <Compile Include="SocketHandler.cs" /> + <Compile Include="Content\SomeUtils.cs" /> + <Compile Include="Content\ExecuteCommand.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Request.cs" /> <Compile Include="Setup.cs"> Modified: trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs =================================================================== --- trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-10 20:32:55 UTC (rev 4069) +++ trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs 2011-01-13 21:02:08 UTC (rev 4070) @@ -34,6 +34,8 @@ using System.Net; using System.Net.Sockets; +using VideoLan; + namespace AndroidRemote { [PluginIcons("AndroidRemote.icon.png", "AndroidRemote.icon_off.png")] @@ -43,10 +45,13 @@ private TcpListener myListener; public static string Server = string.Empty; public static string Port = string.Empty; + public static string VlcFile = string.Empty; private Thread listen; private Thread grabPictures; + public static VideoLan.VlcControl vlc; + #region IPlugin public void Start() { @@... [truncated message content] |
From: <kro...@us...> - 2011-01-10 20:33:03
|
Revision: 4069 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4069&view=rev Author: kroko_koenig Date: 2011-01-10 20:32:55 +0000 (Mon, 10 Jan 2011) Log Message: ----------- add wol and powerswitch, remote layout change Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_01.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_03.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Release/AndroidRemote.mpe1 trunk/plugins/AndroidRemote/Server/AndroidRemote/ExecuteCommand.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_aspectRatio.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_fullscreen.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showOSD.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showSubtitle.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_play.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_back.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_forw.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/select2.png Removed Paths: ------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_play.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_back.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_forw.xml Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_aspectRatio.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_aspectRatio.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_aspectRatio.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<message> + <command>ACTION_ASPECT_RATIO</command> +</message> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_fullscreen.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_fullscreen.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_fullscreen.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<message> + <command>ACTION_SHOW_FULLSCREEN</command> +</message> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showOSD.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showOSD.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showOSD.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<message> + <command>ACTION_SHOW_OSD</command> +</message> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showSubtitle.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showSubtitle.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/assets/cmd_showSubtitle.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<message> + <command>ACTION_SHOW_SUBTITLES</command> +</message> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-10 20:32:55 UTC (rev 4069) @@ -46,83 +46,71 @@ public static final int main_music=0x7f02001d; public static final int main_now_playing=0x7f02001e; public static final int main_pictures=0x7f02001f; - public static final int main_play=0x7f020020; - public static final int main_remote=0x7f020021; - public static final int main_settings=0x7f020022; - public static final int main_skp_back=0x7f020023; - public static final int main_skp_forw=0x7f020024; - public static final int main_video=0x7f020025; - public static final int menu=0x7f020026; - public static final int music=0x7f020027; - public static final int mute=0x7f020028; - public static final int now_playing=0x7f020029; - public static final int pause=0x7f02002a; - public static final int picture=0x7f02002b; - public static final int pictures=0x7f02002c; - public static final int play=0x7f02002d; - public static final int power_off=0x7f02002e; - public static final int remote=0x7f02002f; - public static final int restart=0x7f020030; - public static final int rewind=0x7f020031; - public static final int right=0x7f020032; + public static final int main_remote=0x7f020020; + public static final int main_settings=0x7f020021; + public static final int main_video=0x7f020022; + public static final int menu=0x7f020023; + public static final int music=0x7f020024; + public static final int mute=0x7f020025; + public static final int now_playing=0x7f020026; + public static final int pause=0x7f020027; + public static final int picture=0x7f020028; + public static final int pictures=0x7f020029; + public static final int play=0x7f02002a; + public static final int power_off=0x7f02002b; + public static final int remote=0x7f02002c; + public static final int restart=0x7f02002d; + public static final int rewind=0x7f02002e; + public static final int right=0x7f02002f; + public static final int sel_play=0x7f020030; + public static final int sel_skp_back=0x7f020031; + public static final int sel_skp_forw=0x7f020032; public static final int select=0x7f020033; - public static final int settings=0x7f020034; - public static final int skip_back=0x7f020035; - public static final int skip_forward=0x7f020036; - public static final int song=0x7f020037; - public static final int song_off=0x7f020038; - public static final int splash=0x7f020039; - public static final int splash02=0x7f02003a; - public static final int stop=0x7f02003b; - public static final int suspend=0x7f02003c; - public static final int up=0x7f02003d; - public static final int video=0x7f02003e; - public static final int volume_m=0x7f02003f; - public static final int volume_p=0x7f020040; - public static final int wake_on_lan=0x7f020041; + public static final int select2=0x7f020034; + public static final int settings=0x7f020035; + public static final int skip_back=0x7f020036; + public static final int skip_forward=0x7f020037; + public static final int song=0x7f020038; + public static final int song_off=0x7f020039; + public static final int splash=0x7f02003a; + public static final int splash02=0x7f02003b; + public static final int stop=0x7f02003c; + public static final int suspend=0x7f02003d; + public static final int up=0x7f02003e; + public static final int video=0x7f02003f; + public static final int volume_m=0x7f020040; + public static final int volume_p=0x7f020041; + public static final int wake_on_lan=0x7f020042; } public static final class id { public static final int GridView01=0x7f070017; public static final int ImageView01=0x7f070019; - public static final int LinearLayout00=0x7f07004e; + public static final int LinearLayout00=0x7f070056; public static final int LinearLayout01=0x7f07001e; - public static final int LinearLayout02=0x7f070059; - public static final int LinearLayout03=0x7f070063; - public static final int LinearLayout04=0x7f07006d; - public static final int LinearLayout05=0x7f070073; + public static final int LinearLayout02=0x7f070061; + public static final int LinearLayout03=0x7f07006b; + public static final int LinearLayout04=0x7f070075; + public static final int LinearLayout05=0x7f07007b; public static final int ListView01=0x7f07002c; - public static final int Spinner01=0x7f070081; + public static final int Spinner01=0x7f070089; public static final int TableLayout01=0x7f070005; + public static final int TableLayout02=0x7f07003b; public static final int TableRow01=0x7f070006; + public static final int TableRow02=0x7f070040; + public static final int TableRow03=0x7f070045; public static final int TextView01=0x7f070003; public static final int TextView02=0x7f070004; - public static final int btnBack=0x7f070042; - public static final int btnChannelDown=0x7f070047; - public static final int btnChannelUp=0x7f070044; - public static final int btnDown=0x7f070041; - public static final int btnExit=0x7f070048; - public static final int btnFBack=0x7f07002f; - public static final int btnFForw=0x7f070031; - public static final int btnHibernate=0x7f07004a; - public static final int btnHome=0x7f070038; - public static final int btnInfo=0x7f07003a; - public static final int btnLeft=0x7f07003c; - public static final int btnMenu=0x7f070040; - public static final int btnOk=0x7f07003d; - public static final int btnPause=0x7f070035; - public static final int btnPlay=0x7f070030; - public static final int btnRestart=0x7f07004b; - public static final int btnRight=0x7f07003e; - public static final int btnShutOff=0x7f07004c; - public static final int btnSkipBack=0x7f070033; - public static final int btnSkipForw=0x7f070036; - public static final int btnStop=0x7f070034; - public static final int btnSuspend=0x7f070049; - public static final int btnUp=0x7f070039; - public static final int btnVolumeDown=0x7f070046; - public static final int btnVolumeMute=0x7f070045; - public static final int btnVolumeUp=0x7f070043; - public static final int btnWakeOnLan=0x7f07004d; + public static final int btnChannelDown=0x7f07004f; + public static final int btnChannelUp=0x7f07004c; + public static final int btnExit=0x7f070050; + public static final int btnHibernate=0x7f070052; + public static final int btnRestart=0x7f070053; + public static final int btnShutOff=0x7f070054; + public static final int btnSuspend=0x7f070051; + public static final int btnVolumeDown=0x7f07004e; + public static final int btnVolumeMute=0x7f07004d; + public static final int btnVolumeUp=0x7f07004b; + public static final int btnWakeOnLan=0x7f070055; public static final int btn_main_music=0x7f070008; public static final int btn_main_now_playing=0x7f07000b; public static final int btn_main_pictures=0x7f070007; @@ -132,52 +120,75 @@ public static final int btn_main_skp_back=0x7f07000e; public static final int btn_main_skp_forw=0x7f070010; public static final int btn_main_video=0x7f070009; - public static final int btnkey01=0x7f07004f; - public static final int btnkey02=0x7f070050; - public static final int btnkey03=0x7f070051; - public static final int btnkey04=0x7f070052; - public static final int btnkey05=0x7f070053; - public static final int btnkey06=0x7f070054; - public static final int btnkey07=0x7f070055; - public static final int btnkey08=0x7f070056; - public static final int btnkey09=0x7f070057; - public static final int btnkey10=0x7f070058; - public static final int btnkey11=0x7f07005a; - public static final int btnkey12=0x7f07005b; - public static final int btnkey13=0x7f07005c; - public static final int btnkey14=0x7f07005d; - public static final int btnkey15=0x7f07005e; - public static final int btnkey16=0x7f07005f; - public static final int btnkey17=0x7f070060; - public static final int btnkey18=0x7f070061; - public static final int btnkey19=0x7f070062; - public static final int btnkey20=0x7f070064; - public static final int btnkey21=0x7f070065; - public static final int btnkey22=0x7f070066; - public static final int btnkey23=0x7f070067; - public static final int btnkey24=0x7f070068; - public static final int btnkey25=0x7f070069; - public static final int btnkey26=0x7f07006a; - public static final int btnkey27=0x7f07006b; - public static final int btnkey28=0x7f07006c; - public static final int btnkey29=0x7f07006e; - public static final int btnkey30=0x7f07006f; - public static final int btnkey31=0x7f070070; - public static final int btnkey32=0x7f070071; - public static final int btnkey33=0x7f070072; - public static final int btnkey41=0x7f070074; - public static final int btnkey42=0x7f070075; - public static final int btnkey43=0x7f070076; - public static final int btnkey44=0x7f070077; - public static final int btnkey45=0x7f070078; - public static final int btnkey46=0x7f070079; - public static final int btnkey47=0x7f07007a; - public static final int btnkey48=0x7f07007b; - public static final int btnkey49=0x7f07007c; - public static final int btnkey50=0x7f07007d; + public static final int btnkey01=0x7f070057; + public static final int btnkey02=0x7f070058; + public static final int btnkey03=0x7f070059; + public static final int btnkey04=0x7f07005a; + public static final int btnkey05=0x7f07005b; + public static final int btnkey06=0x7f07005c; + public static final int btnkey07=0x7f07005d; + public static final int btnkey08=0x7f07005e; + public static final int btnkey09=0x7f07005f; + public static final int btnkey10=0x7f070060; + public static final int btnkey11=0x7f070062; + public static final int btnkey12=0x7f070063; + public static final int btnkey13=0x7f070064; + public static final int btnkey14=0x7f070065; + public static final int btnkey15=0x7f070066; + public static final int btnkey16=0x7f070067; + public static final int btnkey17=0x7f070068; + public static final int btnkey18=0x7f070069; + public static final int btnkey19=0x7f07006a; + public static final int btnkey20=0x7f07006c; + public static final int btnkey21=0x7f07006d; + public static final int btnkey22=0x7f07006e; + public static final int btnkey23=0x7f07006f; + public static final int btnkey24=0x7f070070; + public static final int btnkey25=0x7f070071; + public static final int btnkey26=0x7f070072; + public static final int btnkey27=0x7f070073; + public static final int btnkey28=0x7f070074; + public static final int btnkey29=0x7f070076; + public static final int btnkey30=0x7f070077; + public static final int btnkey31=0x7f070078; + public static final int btnkey32=0x7f070079; + public static final int btnkey33=0x7f07007a; + public static final int btnkey41=0x7f07007c; + public static final int btnkey42=0x7f07007d; + public static final int btnkey43=0x7f07007e; + public static final int btnkey44=0x7f07007f; + public static final int btnkey45=0x7f070080; + public static final int btnkey46=0x7f070081; + public static final int btnkey47=0x7f070082; + public static final int btnkey48=0x7f070083; + public static final int btnkey49=0x7f070084; + public static final int btnkey50=0x7f070085; public static final int button_play=0x7f07001d; public static final int button_stream=0x7f07001b; - public static final int clearplaylist=0x7f070085; + public static final int clearplaylist=0x7f07008d; + public static final int crtl_back=0x7f070038; + public static final int crtl_ch_m=0x7f070044; + public static final int crtl_ch_p=0x7f07003f; + public static final int crtl_down=0x7f070037; + public static final int crtl_full=0x7f070041; + public static final int crtl_info=0x7f070049; + public static final int crtl_left=0x7f070032; + public static final int crtl_menu=0x7f070043; + public static final int crtl_mp=0x7f07002e; + public static final int crtl_osd=0x7f070048; + public static final int crtl_parent=0x7f070036; + public static final int crtl_play=0x7f070042; + public static final int crtl_power=0x7f070030; + public static final int crtl_ratio=0x7f070047; + public static final int crtl_right=0x7f070034; + public static final int crtl_select=0x7f070033; + public static final int crtl_skip_back=0x7f07003c; + public static final int crtl_skip_forw=0x7f07003e; + public static final int crtl_stop=0x7f07003d; + public static final int crtl_sub=0x7f070046; + public static final int crtl_up=0x7f07002f; + public static final int crtl_vol_m=0x7f07003a; + public static final int crtl_vol_p=0x7f070039; public static final int full_text=0x7f070018; public static final int icon_image=0x7f070001; public static final int icon_text=0x7f070002; @@ -187,7 +198,7 @@ public static final int list_song=0x7f070016; public static final int main_now_playing=0x7f07000d; public static final int music_grid=0x7f070012; - public static final int naviRemote_text=0x7f07002d; + public static final int naviRemote_text=0x7f07004a; public static final int now_album=0x7f070020; public static final int now_artist=0x7f070026; public static final int now_cd=0x7f070021; @@ -201,26 +212,24 @@ public static final int now_progress=0x7f070022; public static final int now_stop=0x7f070028; public static final int now_title=0x7f070025; - public static final int open=0x7f070088; - public static final int playlist=0x7f070084; + public static final int open=0x7f070090; + public static final int playlist=0x7f07008c; public static final int progress_bar=0x7f07001c; - public static final int rslide=0x7f07008b; - public static final int save=0x7f070087; - public static final int sdcard=0x7f070086; - public static final int send=0x7f070089; - public static final int server_ip=0x7f07007e; - public static final int server_macid=0x7f070080; - public static final int server_port=0x7f07007f; - public static final int slide=0x7f07008a; + public static final int rslide=0x7f070093; + public static final int save=0x7f07008f; + public static final int sdcard=0x7f07008e; + public static final int send=0x7f070091; + public static final int server_ip=0x7f070086; + public static final int server_macid=0x7f070088; + public static final int server_port=0x7f070087; + public static final int slide=0x7f070092; public static final int text_kb_streamed=0x7f07001a; - public static final int title=0x7f070083; - public static final int vibration=0x7f070082; + public static final int title=0x7f07008b; + public static final int vibration=0x7f07008a; public static final int widget0=0x7f070011; - public static final int widget00=0x7f07002e; - public static final int widget01=0x7f070032; - public static final int widget02=0x7f070037; - public static final int widget03=0x7f07003b; - public static final int widget04=0x7f07003f; + public static final int widget00=0x7f07002d; + public static final int widget01=0x7f070031; + public static final int widget02=0x7f070035; public static final int widget44=0x7f070000; } public static final class layout { Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_play.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_play.xml 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_play.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - <selector xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:state_pressed="true" - android:drawable="@drawable/right" /> <!-- pressed --> - <item android:state_focused="true" - android:drawable="@drawable/right" /> <!-- focused --> - <item android:drawable="@drawable/right" /> <!-- default --> - </selector> \ No newline at end of file Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_back.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_back.xml 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_back.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - <selector xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:state_pressed="true" - android:drawable="@drawable/skip_back" /> <!-- pressed --> - <item android:state_focused="true" - android:drawable="@drawable/skip_back" /> <!-- focused --> - <item android:drawable="@drawable/skip_back" /> <!-- default --> - </selector> \ No newline at end of file Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_forw.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_forw.xml 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/main_skp_forw.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - <selector xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:state_pressed="true" - android:drawable="@drawable/skip_forward" /> <!-- pressed --> - <item android:state_focused="true" - android:drawable="@drawable/skip_forward" /> <!-- focused --> - <item android:drawable="@drawable/skip_forward" /> <!-- default --> - </selector> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_play.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_play.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_play.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> + <selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/right" /> <!-- pressed --> + <item android:state_focused="true" + android:drawable="@drawable/right" /> <!-- focused --> + <item android:drawable="@drawable/right" /> <!-- default --> + </selector> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_back.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_back.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_back.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> + <selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/skip_back" /> <!-- pressed --> + <item android:state_focused="true" + android:drawable="@drawable/skip_back" /> <!-- focused --> + <item android:drawable="@drawable/skip_back" /> <!-- default --> + </selector> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_forw.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_forw.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/sel_skp_forw.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> + <selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/skip_forward" /> <!-- pressed --> + <item android:state_focused="true" + android:drawable="@drawable/skip_forward" /> <!-- focused --> + <item android:drawable="@drawable/skip_forward" /> <!-- default --> + </selector> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/select2.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/drawable/select2.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/main.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -63,14 +63,14 @@ android:orientation="horizontal" android:background="#0FF0FFFF" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_height="wrap_content" android:padding="5dip"> - <Button android:background="@drawable/main_skp_back" android:scaleType="fitXY" + <Button android:scaleType="fitXY" android:layout_height="60dip" android:layout_width="60dip" - android:id="@+id/btn_main_skp_back" android:padding="2dip" android:layout_marginRight="5dip"></Button> + android:id="@+id/btn_main_skp_back" android:padding="2dip" android:layout_marginRight="5dip" android:background="@drawable/sel_skp_back"></Button> <ImageButton android:scaleType="fitXY" android:layout_height="60dip" android:layout_width="60dip" - android:id="@+id/btn_main_play" android:background="@drawable/main_play" android:padding="2dip" android:layout_marginRight="5dip"></ImageButton> + android:id="@+id/btn_main_play" android:padding="2dip" android:layout_marginRight="5dip" android:background="@drawable/sel_play"></ImageButton> <Button android:scaleType="fitXY" android:layout_height="60dip" android:layout_width="60dip" - android:id="@+id/btn_main_skp_forw" android:background="@drawable/main_skp_forw" android:padding="2dip"></Button> + android:id="@+id/btn_main_skp_forw" android:padding="2dip" android:background="@drawable/sel_skp_forw"></Button> </LinearLayout> </LinearLayout> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote01.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -1,136 +1,143 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout - android:id="@+id/widget0" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:orientation="vertical" - android:background="@drawable/brush" - xmlns:android="http://schemas.android.com/apk/res/android"> - - <TextView android:id="@+id/naviRemote_text" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="Remote 01" - android:gravity="center_horizontal" android:background="#FFA9A9A9" - android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:padding="5dip"> - </TextView> - - <LinearLayout - android:id="@+id/widget00" - android:layout_width="fill_parent" - android:layout_height="wrap_content" android:layout_marginTop="5dip"> - - <Button android:id="@+id/btnFBack" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/rewind"> - </Button> - - <Button android:id="@+id/btnPlay" - android:layout_width="160dip" - android:layout_height="60dip" - android:background="@drawable/play"> - </Button> - - <Button android:id="@+id/btnFForw" - android:layout_width="80dip" - android:layout_height="60dip" android:background="@drawable/forward"> - </Button> - - </LinearLayout> - - <LinearLayout - android:id="@+id/widget01" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - > - <Button android:id="@+id/btnSkipBack" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/skip_back"> - </Button> - - <Button android:id="@+id/btnStop" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/stop"> - </Button> - - <Button android:id="@+id/btnPause" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/pause"> - </Button> - - <Button android:id="@+id/btnSkipForw" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/skip_forward"> - </Button> - - </LinearLayout> - - <LinearLayout - android:id="@+id/widget02" - android:layout_width="fill_parent" - android:layout_height="wrap_content" android:paddingTop="20dip"> - - <Button android:id="@+id/btnHome" - android:layout_width="80dip" - android:background="@drawable/home" android:layout_height="60dip"> - </Button> - - <Button android:id="@+id/btnUp" - android:layout_width="160dip" android:background="@drawable/up" android:layout_height="60dip"> - </Button> - - <Button android:id="@+id/btnInfo" - android:layout_width="80dip" - android:background="@drawable/info" android:layout_height="60dip"> - </Button> - - </LinearLayout> +<LinearLayout android:id="@+id/widget0" + android:layout_width="fill_parent" android:layout_height="fill_parent" + android:orientation="vertical" android:background="@drawable/brush" + xmlns:android="http://schemas.android.com/apk/res/android"> - <LinearLayout - android:id="@+id/widget03" - android:layout_width="fill_parent" - android:layout_height="wrap_content"> - - <Button android:id="@+id/btnLeft" - android:layout_width="80dip" - android:layout_height="120dip" android:background="@drawable/left"> - </Button> - - <Button android:id="@+id/btnOk" - android:layout_width="160dip" android:background="@drawable/select" android:layout_height="120dip"> - </Button> - - <Button android:id="@+id/btnRight" - android:layout_width="80dip" - android:layout_height="120dip" android:background="@drawable/right"> - </Button> - </LinearLayout> - - <LinearLayout - android:id="@+id/widget04" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - > - - <Button android:id="@+id/btnMenu" - android:layout_width="80dip" - android:background="@drawable/menu" android:layout_height="60dip"> - </Button> - - <Button android:id="@+id/btnDown" - android:layout_width="160dip" - android:background="@drawable/down" android:layout_height="60dip"> - </Button> - - <Button android:id="@+id/btnBack" - android:layout_width="80dip" - android:background="@drawable/back" android:layout_height="60dip"> - </Button> - - </LinearLayout> - + <LinearLayout android:id="@+id/widget00" + android:layout_height="wrap_content" android:layout_gravity="center_horizontal" + android:layout_width="wrap_content"> + + <ImageButton android:id="@+id/crtl_mp" + android:layout_height="60dip" android:layout_width="100dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_up" + android:layout_width="100dip" android:layout_height="60dip" + android:background="@drawable/up"> + </ImageButton> + <ImageButton android:id="@+id/crtl_power" + android:layout_height="60dip" android:layout_width="100dip" + android:background="@drawable/power_off"> + </ImageButton> + </LinearLayout> + + <LinearLayout android:id="@+id/widget01" + android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_gravity="center_horizontal"> + + <ImageButton android:layout_height="60dip" + android:layout_width="100dip" android:background="@drawable/left" + android:id="@+id/crtl_left"> + </ImageButton> + <ImageButton android:layout_width="100dip" + android:layout_height="60dip" android:background="@drawable/select2" + android:id="@+id/crtl_select"> + </ImageButton> + <ImageButton android:layout_width="100dip" + android:layout_height="60dip" android:background="@drawable/right" + android:id="@+id/crtl_right"> + </ImageButton> + </LinearLayout> + + <LinearLayout android:id="@+id/widget02" + android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_gravity="center_vertical"> + + <ImageButton android:id="@+id/crtl_parent" + android:layout_height="60dip" android:layout_width="100dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_down" + android:layout_height="60dip" android:layout_width="100dip" + android:background="@drawable/down"> + </ImageButton> + <ImageButton android:id="@+id/crtl_back" + android:layout_height="60dip" android:layout_width="100dip" + android:background="@drawable/back"> + </ImageButton> + </LinearLayout> + + <LinearLayout android:id="@+id/LinearLayout01" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:orientation="horizontal" android:layout_gravity="center_horizontal"> + + <LinearLayout android:id="@+id/LinearLayout01" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageButton android:id="@+id/crtl_vol_p" + android:layout_height="90dip" android:background="@drawable/volume_p" + android:layout_width="60dip"> + </ImageButton> + + <ImageButton android:id="@+id/crtl_vol_m" + android:layout_height="90dip" android:background="@drawable/volume_m" + android:layout_width="60dip"> + </ImageButton> + + </LinearLayout> + + <TableLayout android:id="@+id/TableLayout02" + android:layout_width="wrap_content" android:layout_height="wrap_content"> + + <TableRow android:id="@+id/TableRow01" android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageButton android:id="@+id/crtl_skip_back" + android:layout_height="60dip" android:background="@drawable/skip_back" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_stop" + android:layout_height="60dip" android:background="@drawable/stop" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_skip_forw" + android:layout_height="60dip" android:background="@drawable/skip_forward" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_ch_p" + android:layout_height="60dip" android:background="@drawable/channel_p" + android:layout_width="60dip"> + </ImageButton> + + </TableRow> + <TableRow android:id="@+id/TableRow02" android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageButton android:id="@+id/crtl_full" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_play" + android:layout_height="60dip" android:background="@drawable/right" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_menu" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_ch_m" + android:layout_height="60dip" android:background="@drawable/channel_m" + android:layout_width="60dip"> + </ImageButton> + + </TableRow> + <TableRow android:id="@+id/TableRow03" android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageButton android:id="@+id/crtl_sub" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_ratio" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_osd" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_info" + android:layout_height="60dip" android:background="@drawable/info" + android:layout_width="60dip"> + </ImageButton> + + </TableRow> + </TableLayout> + + </LinearLayout> </LinearLayout> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/main.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -63,14 +63,14 @@ android:orientation="horizontal" android:background="#0FF0FFFF" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_height="wrap_content" android:padding="5dip"> - <Button android:background="@drawable/main_skp_back" android:scaleType="fitXY" + <Button android:scaleType="fitXY" android:layout_height="60dip" android:layout_width="60dip" - android:id="@+id/btn_main_skp_back" android:padding="2dip" android:layout_marginRight="5dip"></Button> + android:id="@+id/btn_main_skp_back" android:background="@drawable/sel_skp_back"></Button> <ImageButton android:scaleType="fitXY" android:layout_height="60dip" android:layout_width="60dip" - android:id="@+id/btn_main_play" android:background="@drawable/main_play" android:padding="2dip" android:layout_marginRight="5dip"></ImageButton> + android:id="@+id/btn_main_play" android:background="@drawable/sel_play" android:layout_marginRight="0dip"></ImageButton> <Button android:scaleType="fitXY" android:layout_height="60dip" android:layout_width="60dip" - android:id="@+id/btn_main_skp_forw" android:background="@drawable/main_skp_forw" android:padding="2dip"></Button> + android:id="@+id/btn_main_skp_forw" android:background="@drawable/sel_skp_forw"></Button> </LinearLayout> </LinearLayout> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout-small/remote01.xml 2011-01-10 20:32:55 UTC (rev 4069) @@ -1,136 +1,143 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout - android:id="@+id/widget0" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:orientation="vertical" - android:background="@drawable/brush" - xmlns:android="http://schemas.android.com/apk/res/android"> - - <TextView android:id="@+id/naviRemote_text" android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="Remote 01" - android:gravity="center_horizontal" android:background="#FFA9A9A9" - android:textSize="15dip" - android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:padding="5dip"> - </TextView> - - <LinearLayout - android:id="@+id/widget00" - android:layout_width="fill_parent" - android:layout_height="wrap_content" android:layout_marginTop="5dip"> - - <Button android:id="@+id/btnFBack" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/rewind"> - </Button> - - <Button android:id="@+id/btnPlay" - android:layout_width="160dip" - android:layout_height="60dip" - android:background="@drawable/play"> - </Button> - - <Button android:id="@+id/btnFForw" - android:layout_width="80dip" - android:layout_height="60dip" android:background="@drawable/forward"> - </Button> - - </LinearLayout> - - <LinearLayout - android:id="@+id/widget01" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - > - <Button android:id="@+id/btnSkipBack" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/skip_back"> - </Button> - - <Button android:id="@+id/btnStop" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/stop"> - </Button> - - <Button android:id="@+id/btnPause" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/pause"> - </Button> - - <Button android:id="@+id/btnSkipForw" - android:layout_width="80dip" - android:layout_height="60dip" - android:background="@drawable/skip_forward"> - </Button> - - </LinearLayout> - - <LinearLayout - android:id="@+id/widget02" - android:layout_width="fill_parent" - android:layout_height="wrap_content" android:paddingTop="10dip"> - - <Button android:id="@+id/btnHome" - android:layout_width="80dip" - android:background="@drawable/home" android:layout_height="50dip"> - </Button> - - <Button android:id="@+id/btnUp" - android:layout_width="160dip" android:background="@drawable/up" android:layout_height="50dip"> - </Button> - - <Button android:id="@+id/btnInfo" - android:layout_width="80dip" - android:background="@drawable/info" android:layout_height="50dip"> - </Button> - - </LinearLayout> +<LinearLayout android:id="@+id/widget0" + android:layout_width="fill_parent" android:layout_height="fill_parent" + android:orientation="vertical" android:background="@drawable/brush" + xmlns:android="http://schemas.android.com/apk/res/android"> - <LinearLayout - android:id="@+id/widget03" - android:layout_width="fill_parent" - android:layout_height="wrap_content"> - - <Button android:id="@+id/btnLeft" - android:layout_width="80dip" - android:background="@drawable/left" android:layout_height="100dip"> - </Button> - - <Button android:id="@+id/btnOk" - android:layout_width="160dip" android:background="@drawable/select" android:layout_height="100dip"> - </Button> - - <Button android:id="@+id/btnRight" - android:layout_width="80dip" - android:background="@drawable/right" android:layout_height="100dip"> - </Button> - </LinearLayout> - - <LinearLayout - android:id="@+id/widget04" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - > - - <Button android:id="@+id/btnMenu" - android:layout_width="80dip" - android:background="@drawable/menu" android:layout_height="50dip"> - </Button> - - <Button android:id="@+id/btnDown" - android:layout_width="160dip" - android:background="@drawable/down" android:layout_height="50dip"> - </Button> - - <Button android:id="@+id/btnBack" - android:layout_width="80dip" - android:background="@drawable/back" android:layout_height="50dip"> - </Button> - - </LinearLayout> - + <LinearLayout android:id="@+id/widget00" + android:layout_height="wrap_content" android:layout_gravity="center_horizontal" + android:layout_width="wrap_content"> + + <ImageButton android:id="@+id/crtl_mp" + android:layout_height="60dip" android:layout_width="100dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_up" + android:layout_width="100dip" android:layout_height="60dip" + android:background="@drawable/up"> + </ImageButton> + <ImageButton android:id="@+id/crtl_power" + android:layout_height="60dip" android:layout_width="100dip" + android:background="@drawable/power_off"> + </ImageButton> + </LinearLayout> + + <LinearLayout android:id="@+id/widget01" + android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_gravity="center_horizontal"> + + <ImageButton android:layout_height="60dip" + android:layout_width="100dip" android:background="@drawable/left" + android:id="@+id/crtl_left"> + </ImageButton> + <ImageButton android:layout_width="100dip" + android:layout_height="60dip" android:background="@drawable/select2" + android:id="@+id/crtl_select"> + </ImageButton> + <ImageButton android:layout_width="100dip" + android:layout_height="60dip" android:background="@drawable/right" + android:id="@+id/crtl_right"> + </ImageButton> + </LinearLayout> + + <LinearLayout android:id="@+id/widget02" + android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_gravity="center_vertical"> + + <ImageButton android:id="@+id/crtl_parent" + android:layout_height="60dip" android:layout_width="100dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_down" + android:layout_height="60dip" android:layout_width="100dip" + android:background="@drawable/down"> + </ImageButton> + <ImageButton android:id="@+id/crtl_back" + android:layout_height="60dip" android:layout_width="100dip" + android:background="@drawable/back"> + </ImageButton> + </LinearLayout> + + <LinearLayout android:id="@+id/LinearLayout01" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:orientation="horizontal" android:layout_gravity="center_horizontal"> + + <LinearLayout android:id="@+id/LinearLayout01" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageButton android:id="@+id/crtl_vol_p" + android:layout_height="90dip" android:background="@drawable/volume_p" + android:layout_width="60dip"> + </ImageButton> + + <ImageButton android:id="@+id/crtl_vol_m" + android:layout_height="90dip" android:background="@drawable/volume_m" + android:layout_width="60dip"> + </ImageButton> + + </LinearLayout> + + <TableLayout android:id="@+id/TableLayout02" + android:layout_width="wrap_content" android:layout_height="wrap_content"> + + <TableRow android:id="@+id/TableRow01" android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageButton android:id="@+id/crtl_skip_back" + android:layout_height="60dip" android:background="@drawable/skip_back" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_stop" + android:layout_height="60dip" android:background="@drawable/stop" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_skip_forw" + android:layout_height="60dip" android:background="@drawable/skip_forward" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_ch_p" + android:layout_height="60dip" android:background="@drawable/channel_p" + android:layout_width="60dip"> + </ImageButton> + + </TableRow> + <TableRow android:id="@+id/TableRow02" android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageButton android:id="@+id/crtl_full" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_play" + android:layout_height="60dip" android:background="@drawable/right" + android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_menu" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_ch_m" + android:layout_height="60dip" android:background="@drawable/channel_m" + android:layout_width="60dip"> + </ImageButton> + + </TableRow> + <TableRow android:id="@+id/TableRow03" android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageButton android:id="@+id/crtl_sub" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_ratio" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_osd" + android:layout_height="60dip" android:layout_width="60dip"> + </ImageButton> + <ImageButton android:id="@+id/crtl_info" + android:layout_height="60dip" android:background="@drawable/info" + android:layout_width="60dip"> + </ImageButton> + + </TableRow> + </TableLayout> + + </LinearLayout> </LinearLayout> \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_01.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_01.java 2011-01-08 19:41:22 UTC (rev 4068) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_01.java 2011-01-10 20:32:55 UTC (rev 4069) @@ -23,25 +23,25 @@ import mediaportal.remote.R; import mediaportal.remote.communication.SendCommand; +import mediaportal.remote.utils.AppSettings; +import mediaportal.remote.utils.KeyLock; +import mediaportal.remote.utils.Wol; import android.app.Activity; +import android.app.AlertDialog; +import android.content.DialogInterface; import android.content.Intent; +import android.content.res.Resources; import android.os.Bundle; import android.util.Log; -import android.view.GestureDetector; import android.view.KeyEvent; -import android.view.MotionEvent; import android.view.View; -import android.view.GestureDetector.OnGestureListener; -import android.widget.Button; +import android.widget.ImageButton; import android.widget.Toast; -public class Remote_01 extends Activity implements OnGestureListener { +public class Remote_01 extends Activity { - private GestureDetector gestureScanner; - private static final int SWIPE_MIN_DISTANCE = 120; - private static final int SWIPE_MAX_OFF_PATH = 250; - private static final int SWIPE_THRESHOLD_VELOCITY = 200; - + private static String action; + /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { @@ -49,137 +49,256 @@ setContentView(R.layout.remote01); Log.d("MediaPortal", "start remote 1"); - - gestureScanner = new GestureDetector(this); // buttons - Button can = (Button) findViewById(R.id.btnBack); - can.setOnClickListener(new View.OnClickListener() { + // first row + + ImageButton up = (ImageButton) findViewById(R.id.crtl_up); + up.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("previousMenu"); + SendCommand.PostCommandButton("moveUp"); } }); - - Button menu = (Button) findViewById(R.id.btnMenu); - menu.setOnClickListener(new View.OnClickListener() { + + ImageButton power = (ImageButton) findViewById(R.id.crtl_power); + + power.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("contextMenu"); + + Wol w = new Wol(); + w.sendMagicPacket(AppSettings.getMacId(), 9); + + Toast.makeText(Remote_01.this, "power on", Toast.LENGTH_SHORT).show(); } }); + power.setOnLongClickListener(new View.OnLongClickListener() { + public boolean onLongClick(View view) { + + int x = AppSettings.getPowerMode(); + + Resources res = getResources(); + String[] actions = res.getStringArray(R.array.shutdown); + + action = actions[x]; + + AlertDialog.Builder builder = new AlertDialog.Builder(Remote_01.this); + builder.setMessage("Do you really want to " + action + " ?") + .setTitle("Please confirm") + .setPositiveButton("Yes", + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, + int item) { + + switch (AppSettings.getPowerMode()) + { + case 0: + // Exit + SendCommand.PostCommandButton("exit"); + break; + case 1: + // Suspend + SendCommand.PostCommandButton("suspend"); + break; + case 2: + // Hibernate + SendCommand.PostCommandButton("hibernate"); + break; + case 3: + // Restart + SendCommand.PostCommandButton("restart"); + break; + case 4: + // Shut Off + SendCommand.PostCommandButton("shutoff"); + break; + } + + Toast.makeText(Remote_01.this, "Please wait , " + action, Toast.LENGTH_SHORT).show(); + + } + }) + .setNegativeButton("No", + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, + int item) { + // nothing + } + }).show(); - Button home = (Button) findViewById(R.id.btnHome); - home.setOnClickListener(new View.OnClickListener() { - public void onClick(View view) { - SendCommand.PostCommandButton("parentDir"); + return true; } }); - - Button info = (Button) findViewById(R.id.btnInfo); - info.setOnClickListener(new View.OnClickListener() { + + + // second row + + ImageButton left = (ImageButton) findViewById(R.id.crtl_left); + left.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("showInfo"); + SendCommand.PostCommandButton("moveLeft"); } }); - - Button left = (Button) findViewById(R.id.btnLeft); - left.setOnClickListener(new View.OnClickListener() { + + ImageButton ok = (ImageButton) findViewById(R.id.crtl_select); + ok.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("moveLeft"); + SendCommand.PostCommandButton("selectItem"); } }); - Button right = (Button) findViewById(R.id.btnRight); + ImageButton right = (ImageButton) findViewById(R.id.crtl_right); right.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { SendCommand.PostCommandButton("moveRight"); } }); - - Button up = (Button) findViewById(R.id.btnUp); - up.setOnClickListener(new View.OnClickListener() { + + // third row + + ImageButton home = (ImageButton) findViewById(R.id.crtl_parent); + home.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("moveUp"); + SendCommand.PostCommandButton("parentDir"); } }); - - Button down = (Button) findViewById(R.id.btnDown); + + ImageButton down = (ImageButton) findViewById(R.id.crtl_down); down.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { SendCommand.PostCommandButton("moveDown"); } }); - Button ok = (Button) findViewById(R.id.btnOk); - ok.setOnClickListener(new View.OnClickListener() { + ImageButton can = (ImageButton) findViewById(R.id.crtl_back); + can.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("selectItem"); + SendCommand.PostCommandButton("previousMenu"); } }); - Button play = (Button) findViewById(R.id.btnPlay); - play.setOnClickListener(new View.OnClickListener() { + + // volume + + ImageButton btnVolumeUp = (ImageButton) findViewById(R.id.crtl_vol_p); + btnVolumeUp.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("play"); + SendCommand.PostCommandButton("volumeUp"); } }); - - Button pause = (Button) findViewById(R.id.btnPause); - pause.setOnClickListener(new View.OnClickListener() { + ImageButton btnVolumeDown = (ImageButton) findViewById(R.id.crtl_vol_m); + btnVolumeDown.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("pause"); + SendCommand.PostCommandButton("volumeDown"); } }); - - Button stop = (Button) findViewById(R.id.btnStop); + + // fourth row + + ImageButton skipBack = (ImageButton) findViewById(R.id.crtl_skip_back); + skipBack.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + SendCommand.PostCommandButton("prevItem"); + } + }); + + ImageButton stop = (ImageButton) findViewById(R.id.crtl_stop); stop.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { SendCommand.PostCommandButton("stop"); } }); - - Button skipForw = (Button) findViewById(R.id.btnSkipForw); + + ImageButton skipForw = (ImageButton) findViewById(R.id.crtl_skip_forw); skipForw.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { SendCommand.PostCommandButton("nextItem"); } }); - Button skipBack = (Button) findViewById(R.id.btnSkipBack); - skipBack.setOnClickListener(new View.OnClickListener() { + ImageButton btnChannelUp = (ImageButton) findViewById(R.id.crtl_ch_p); + btnChannelUp.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { - SendCommand.PostCommandButton("prevItem"); + SendCommand.PostCommandButton("nextChannel"); } }); + + // fifth row + + ImageButton full = (ImageButton) findViewById(R.id.crtl_full); + full.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + SendCommand.PostCommandButton("fullscreen"); + } + }); + + ImageButton play = (ImageButton) findViewById(R.id.crtl_play); + play.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + SendCommand.PostCommandButton("play"); + } + }); + + ImageButton menu = (ImageButton) findViewById(R.id.crtl_menu); + menu.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + SendCommand.PostCommandButton("contextMenu"); + } + }); - Button fForw = (Button) findViewById(R.id.btnFForw); - fForw.setOnClickListener(new View.OnClickListener() { + ImageButton btnChannelDown = (ImageButton) findViewById(R.id.crtl_ch_m); + btnChannelDown.setOnClickListener(new View.OnClic... [truncated message content] |
From: <kro...@us...> - 2011-01-08 19:41:31
|
Revision: 4068 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4068&view=rev Author: kroko_koenig Date: 2011-01-08 19:41:22 +0000 (Sat, 08 Jan 2011) Log Message: ----------- more code clean up and stability Modified Paths: -------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/picturesfullscreen.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/main.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/setup.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/splash.java trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidRemote.csproj trunk/plugins/AndroidRemote/Server/AndroidRemote/AndroidServer.cs trunk/plugins/AndroidRemote/Server/AndroidRemote/Request.cs trunk/plugins/AndroidRemote/Server/AndroidRemote.suo Added Paths: ----------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/StreamingMediaPlayer.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/HttpHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/PostWebserver.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/communication/SendCommand.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_01.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_02.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/control/Remote_03.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/directory/ReceiveDirectoryXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicAlbum.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicArtist.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicDir.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicResults.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicSong.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/MusicTab.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ReceiveDbHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/music/ReceiveDbXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowPlaying/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowPlaying/NowPlaying.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowPlaying/NowPlayingList.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowPlaying/NowPlayingListXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowPlaying/NowPlayingXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Pictures.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures/Picturesfullscreen.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/AppSettings.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/Entity.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/KeyLock.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/MediaScannerNotifier.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/SAX_Parser.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/TopExceptionHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/Vibration.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/utils/Wol.java trunk/plugins/AndroidRemote/Server/AndroidRemote/ExecuteCommand.cs Removed Paths: ------------- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Entity.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaScannerNotifier.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MusicDir.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/PostWebserver.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/ReceiveDbHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/ReceiveDbXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/ReceiveDirHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/ReceiveDirectoryXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/ReceiveHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Remote_01.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Remote_02.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Remote_03.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Settings.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/TopExceptionHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Wol.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/httpHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/musicAlbum.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/musicArtist.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/musicResults.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/musicSong.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/musicTab.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowplaying.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowplayingXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowplayinghandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowplaylist.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowplaylistXmlHandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/nowplaylisthandler.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/pictures.java trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/picturesfullscreen.java Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/AndroidManifest.xml 2011-01-08 19:41:22 UTC (rev 4068) @@ -3,32 +3,29 @@ package="mediaportal.remote" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:theme="@android:style/Theme.NoTitleBar" android:debuggable="true"> - <activity android:name=".splash" android:label="@string/app_name" android:launchMode="singleInstance"> - <intent-filter> + <activity android:label="@string/app_name" + android:launchMode="singleInstance" android:name=".Main"> + <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> - </intent-filter> - </activity> - <activity android:label="@string/app_name" android:name=".main" android:launchMode="singleInstance"> - <intent-filter> - <action android:name="android.intent.action.DEFAULT" /> - <category android:name="android.intent.category.VIEW" /> </intent-filter> </activity> - <activity android:launchMode="singleInstance" android:name=".Remote_01"></activity> - <activity android:launchMode="singleInstance" android:name=".Remote_02"></activity> - <activity android:launchMode="singleInstance" android:name=".Remote_03"></activity> - <activity android:name=".pictures" android:launchMode="singleInstance"></activity> - <activity android:name=".picturesfullscreen" android:launchMode="singleInstance"></activity> - <activity android:launchMode="singleInstance" android:name=".musicDir"></activity> - <activity android:name=".setup" android:launchMode="singleInstance"></activity> - <activity android:name=".nowplaying" android:launchMode="singleInstance"></activity> - <activity android:name=".nowplaylist" android:launchMode="singleInstance"></activity> - <activity android:name=".musicArtist" android:launchMode="singleInstance"></activity> - <activity android:name=".musicAlbum" android:launchMode="singleInstance"></activity> - <activity android:name=".musicSong" android:launchMode="singleInstance"></activity> - <activity android:name=".musicTab" android:launchMode="singleInstance"></activity> - <activity android:name=".musicResults" android:launchMode="singleInstance"></activity> + <activity android:launchMode="singleInstance" android:name=".Splash"></activity> + <activity android:launchMode="singleInstance" android:name=".control.Remote_01"></activity> + <activity android:launchMode="singleInstance" android:name=".control.Remote_02"></activity> + <activity android:launchMode="singleInstance" android:name=".control.Remote_03"></activity> + <activity android:launchMode="singleInstance" android:name=".pictures.Pictures"></activity> + <activity android:launchMode="singleInstance" android:name=".pictures.Picturesfullscreen"></activity> + <activity android:launchMode="singleInstance" android:name=".music.MusicDir"></activity> + <activity android:launchMode="singleInstance" android:name="Setup"></activity> + <activity android:launchMode="singleInstance" android:name=".nowPlaying.NowPlaying"></activity> + <activity android:launchMode="singleInstance" android:name=".nowPlaying.NowPlayingList"></activity> + <activity android:launchMode="singleInstance" android:name=".music.MusicArtist"></activity> + <activity android:launchMode="singleInstance" android:name=".music.MusicAlbum"></activity> + <activity android:launchMode="singleInstance" android:name=".music.MusicSong"></activity> + <activity android:launchMode="singleInstance" android:name=".music.MusicTab"></activity> + <activity android:launchMode="singleInstance" android:name=".music.MusicResults"></activity> + <activity android:name=".MediaPlayerControl" android:launchMode="singleInstance"></activity> </application> <uses-sdk android:minSdkVersion="3" /> Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/gen/mediaportal/remote/R.java 2011-01-08 19:41:22 UTC (rev 4068) @@ -84,45 +84,45 @@ public static final class id { public static final int GridView01=0x7f070017; public static final int ImageView01=0x7f070019; - public static final int LinearLayout00=0x7f07004a; - public static final int LinearLayout01=0x7f07001a; - public static final int LinearLayout02=0x7f070055; - public static final int LinearLayout03=0x7f07005f; - public static final int LinearLayout04=0x7f070069; - public static final int LinearLayout05=0x7f07006f; - public static final int ListView01=0x7f070028; - public static final int Spinner01=0x7f07007d; + public static final int LinearLayout00=0x7f07004e; + public static final int LinearLayout01=0x7f07001e; + public static final int LinearLayout02=0x7f070059; + public static final int LinearLayout03=0x7f070063; + public static final int LinearLayout04=0x7f07006d; + public static final int LinearLayout05=0x7f070073; + public static final int ListView01=0x7f07002c; + public static final int Spinner01=0x7f070081; public static final int TableLayout01=0x7f070005; public static final int TableRow01=0x7f070006; public static final int TextView01=0x7f070003; public static final int TextView02=0x7f070004; - public static final int btnBack=0x7f07003e; - public static final int btnChannelDown=0x7f070043; - public static final int btnChannelUp=0x7f070040; - public static final int btnDown=0x7f07003d; - public static final int btnExit=0x7f070044; - public static final int btnFBack=0x7f07002b; - public static final int btnFForw=0x7f07002d; - public static final int btnHibernate=0x7f070046; - public static final int btnHome=0x7f070034; - public static final int btnInfo=0x7f070036; - public static final int btnLeft=0x7f070038; - public static final int btnMenu=0x7f07003c; - public static final int btnOk=0x7f070039; - public static final int btnPause=0x7f070031; - public static final int btnPlay=0x7f07002c; - public static final int btnRestart=0x7f070047; - public static final int btnRight=0x7f07003a; - public static final int btnShutOff=0x7f070048; - public static final int btnSkipBack=0x7f07002f; - public static final int btnSkipForw=0x7f070032; - public static final int btnStop=0x7f070030; - public static final int btnSuspend=0x7f070045; - public static final int btnUp=0x7f070035; - public static final int btnVolumeDown=0x7f070042; - public static final int btnVolumeMute=0x7f070041; - public static final int btnVolumeUp=0x7f07003f; - public static final int btnWakeOnLan=0x7f070049; + public static final int btnBack=0x7f070042; + public static final int btnChannelDown=0x7f070047; + public static final int btnChannelUp=0x7f070044; + public static final int btnDown=0x7f070041; + public static final int btnExit=0x7f070048; + public static final int btnFBack=0x7f07002f; + public static final int btnFForw=0x7f070031; + public static final int btnHibernate=0x7f07004a; + public static final int btnHome=0x7f070038; + public static final int btnInfo=0x7f07003a; + public static final int btnLeft=0x7f07003c; + public static final int btnMenu=0x7f070040; + public static final int btnOk=0x7f07003d; + public static final int btnPause=0x7f070035; + public static final int btnPlay=0x7f070030; + public static final int btnRestart=0x7f07004b; + public static final int btnRight=0x7f07003e; + public static final int btnShutOff=0x7f07004c; + public static final int btnSkipBack=0x7f070033; + public static final int btnSkipForw=0x7f070036; + public static final int btnStop=0x7f070034; + public static final int btnSuspend=0x7f070049; + public static final int btnUp=0x7f070039; + public static final int btnVolumeDown=0x7f070046; + public static final int btnVolumeMute=0x7f070045; + public static final int btnVolumeUp=0x7f070043; + public static final int btnWakeOnLan=0x7f07004d; public static final int btn_main_music=0x7f070008; public static final int btn_main_now_playing=0x7f07000b; public static final int btn_main_pictures=0x7f070007; @@ -132,50 +132,52 @@ public static final int btn_main_skp_back=0x7f07000e; public static final int btn_main_skp_forw=0x7f070010; public static final int btn_main_video=0x7f070009; - public static final int btnkey01=0x7f07004b; - public static final int btnkey02=0x7f07004c; - public static final int btnkey03=0x7f07004d; - public static final int btnkey04=0x7f07004e; - public static final int btnkey05=0x7f07004f; - public static final int btnkey06=0x7f070050; - public static final int btnkey07=0x7f070051; - public static final int btnkey08=0x7f070052; - public static final int btnkey09=0x7f070053; - public static final int btnkey10=0x7f070054; - public static final int btnkey11=0x7f070056; - public static final int btnkey12=0x7f070057; - public static final int btnkey13=0x7f070058; - public static final int btnkey14=0x7f070059; - public static final int btnkey15=0x7f07005a; - public static final int btnkey16=0x7f07005b; - public static final int btnkey17=0x7f07005c; - public static final int btnkey18=0x7f07005d; - public static final int btnkey19=0x7f07005e; - public static final int btnkey20=0x7f070060; - public static final int btnkey21=0x7f070061; - public static final int btnkey22=0x7f070062; - public static final int btnkey23=0x7f070063; - public static final int btnkey24=0x7f070064; - public static final int btnkey25=0x7f070065; - public static final int btnkey26=0x7f070066; - public static final int btnkey27=0x7f070067; - public static final int btnkey28=0x7f070068; - public static final int btnkey29=0x7f07006a; - public static final int btnkey30=0x7f07006b; - public static final int btnkey31=0x7f07006c; - public static final int btnkey32=0x7f07006d; - public static final int btnkey33=0x7f07006e; - public static final int btnkey41=0x7f070070; - public static final int btnkey42=0x7f070071; - public static final int btnkey43=0x7f070072; - public static final int btnkey44=0x7f070073; - public static final int btnkey45=0x7f070074; - public static final int btnkey46=0x7f070075; - public static final int btnkey47=0x7f070076; - public static final int btnkey48=0x7f070077; - public static final int btnkey49=0x7f070078; - public static final int btnkey50=0x7f070079; - public static final int clearplaylist=0x7f070081; + public static final int btnkey01=0x7f07004f; + public static final int btnkey02=0x7f070050; + public static final int btnkey03=0x7f070051; + public static final int btnkey04=0x7f070052; + public static final int btnkey05=0x7f070053; + public static final int btnkey06=0x7f070054; + public static final int btnkey07=0x7f070055; + public static final int btnkey08=0x7f070056; + public static final int btnkey09=0x7f070057; + public static final int btnkey10=0x7f070058; + public static final int btnkey11=0x7f07005a; + public static final int btnkey12=0x7f07005b; + public static final int btnkey13=0x7f07005c; + public static final int btnkey14=0x7f07005d; + public static final int btnkey15=0x7f07005e; + public static final int btnkey16=0x7f07005f; + public static final int btnkey17=0x7f070060; + public static final int btnkey18=0x7f070061; + public static final int btnkey19=0x7f070062; + public static final int btnkey20=0x7f070064; + public static final int btnkey21=0x7f070065; + public static final int btnkey22=0x7f070066; + public static final int btnkey23=0x7f070067; + public static final int btnkey24=0x7f070068; + public static final int btnkey25=0x7f070069; + public static final int btnkey26=0x7f07006a; + public static final int btnkey27=0x7f07006b; + public static final int btnkey28=0x7f07006c; + public static final int btnkey29=0x7f07006e; + public static final int btnkey30=0x7f07006f; + public static final int btnkey31=0x7f070070; + public static final int btnkey32=0x7f070071; + public static final int btnkey33=0x7f070072; + public static final int btnkey41=0x7f070074; + public static final int btnkey42=0x7f070075; + public static final int btnkey43=0x7f070076; + public static final int btnkey44=0x7f070077; + public static final int btnkey45=0x7f070078; + public static final int btnkey46=0x7f070079; + public static final int btnkey47=0x7f07007a; + public static final int btnkey48=0x7f07007b; + public static final int btnkey49=0x7f07007c; + public static final int btnkey50=0x7f07007d; + public static final int button_play=0x7f07001d; + public static final int button_stream=0x7f07001b; + public static final int clearplaylist=0x7f070085; public static final int full_text=0x7f070018; public static final int icon_image=0x7f070001; public static final int icon_text=0x7f070002; @@ -185,38 +187,40 @@ public static final int list_song=0x7f070016; public static final int main_now_playing=0x7f07000d; public static final int music_grid=0x7f070012; - public static final int naviRemote_text=0x7f070029; - public static final int now_album=0x7f07001c; - public static final int now_artist=0x7f070022; - public static final int now_cd=0x7f07001d; - public static final int now_list=0x7f070027; - public static final int now_next=0x7f070026; - public static final int now_play=0x7f070025; - public static final int now_playing=0x7f07001b; - public static final int now_playing_right=0x7f070020; - public static final int now_playing_t_left=0x7f07001f; - public static final int now_prev=0x7f070023; - public static final int now_progress=0x7f07001e; - public static final int now_stop=0x7f070024; - public static final int now_title=0x7f070021; - public static final int open=0x7f070084; - public static final int playlist=0x7f070080; - public static final int rslide=0x7f070087; - public static final int save=0x7f070083; - public static final int sdcard=0x7f070082; - public static final int send=0x7f070085; - public static final int server_ip=0x7f07007a; - public static final int server_macid=0x7f07007c; - public static final int server_port=0x7f07007b; - public static final int slide=0x7f070086; - public static final int title=0x7f07007f; - public static final int vibration=0x7f07007e; + public static final int naviRemote_text=0x7f07002d; + public static final int now_album=0x7f070020; + public static final int now_artist=0x7f070026; + public static final int now_cd=0x7f070021; + public static final int now_list=0x7f07002b; + public static final int now_next=0x7f07002a; + public static final int now_play=0x7f070029; + public static final int now_playing=0x7f07001f; + public static final int now_playing_right=0x7f070024; + public static final int now_playing_t_left=0x7f070023; + public static final int now_prev=0x7f070027; + public static final int now_progress=0x7f070022; + public static final int now_stop=0x7f070028; + public static final int now_title=0x7f070025; + public static final int open=0x7f070088; + public static final int playlist=0x7f070084; + public static final int progress_bar=0x7f07001c; + public static final int rslide=0x7f07008b; + public static final int save=0x7f070087; + public static final int sdcard=0x7f070086; + public static final int send=0x7f070089; + public static final int server_ip=0x7f07007e; + public static final int server_macid=0x7f070080; + public static final int server_port=0x7f07007f; + public static final int slide=0x7f07008a; + public static final int text_kb_streamed=0x7f07001a; + public static final int title=0x7f070083; + public static final int vibration=0x7f070082; public static final int widget0=0x7f070011; - public static final int widget00=0x7f07002a; - public static final int widget01=0x7f07002e; - public static final int widget02=0x7f070033; - public static final int widget03=0x7f070037; - public static final int widget04=0x7f07003b; + public static final int widget00=0x7f07002e; + public static final int widget01=0x7f070032; + public static final int widget02=0x7f070037; + public static final int widget03=0x7f07003b; + public static final int widget04=0x7f07003f; public static final int widget44=0x7f070000; } public static final class layout { @@ -231,14 +235,16 @@ public static final int musictab=0x7f030008; public static final int pictures=0x7f030009; public static final int picturesfullscreen=0x7f03000a; - public static final int playingnow=0x7f03000b; - public static final int playnowlist=0x7f03000c; - public static final int remote01=0x7f03000d; - public static final int remote02=0x7f03000e; - public static final int remote03=0x7f03000f; - public static final int setup=0x7f030010; - public static final int splash=0x7f030011; - public static final int title=0x7f030012; + public static final int player=0x7f03000b; + public static final int playingnow=0x7f03000c; + public static final int playnowlist=0x7f03000d; + public static final int remote01=0x7f03000e; + public static final int remote02=0x7f03000f; + public static final int remote03=0x7f030010; + public static final int remote03b=0x7f030011; + public static final int setup=0x7f030012; + public static final int splash=0x7f030013; + public static final int title=0x7f030014; } public static final class menu { public static final int music_menu=0x7f060000; Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/readme 2011-01-08 19:41:22 UTC (rev 4068) @@ -16,12 +16,12 @@ browse MP database for artist,albums,songs add title to playlist view playlist -delete item from playlist +remove items from playlist clear playlist -save files from db to phone +save files from MP to phone +fast scroll bars +add whole folder (music dir) to playlist -fast scroll - Video section ------------- nothing yet @@ -45,5 +45,5 @@ save files from Android to MP if the MP has no focus the remote doesnt work (normal) progress task for downloads - - +multiply control of more then one MP +NowPlaying list show actual / count of items on top bar \ No newline at end of file Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/picturesfullscreen.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/picturesfullscreen.xml 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/picturesfullscreen.xml 2011-01-08 19:41:22 UTC (rev 4068) @@ -9,5 +9,5 @@ </TextView> <ImageView android:id="@+id/ImageView01" - android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView> + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal"></ImageView> </LinearLayout> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/player.xml 2011-01-08 19:41:22 UTC (rev 4068) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="fill_parent" + android:layout_height="fill_parent" android:padding="10px"> + + <TextView android:id="@+id/text_kb_streamed" + android:layout_width="fill_parent" android:layout_height="wrap_content" + android:textStyle="bold" android:text="Streaming .mp3 Audio Tutorial" /> + + <Button android:id="@+id/button_stream" android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_marginTop="10px" + style="?android:attr/buttonStyleSmall" android:text="Start Streaming" /> + + + <ProgressBar android:id="@+id/progress_bar" + android:layout_width="200px" android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + style="?android:attr/progressBarStyleHorizontal" /> + + <ImageButton android:id="@+id/button_play" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="5px" style="?android:attr/buttonStyleSmall" + android:src="@drawable/pause" /> + +</LinearLayout> \ No newline at end of file Added: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml (rev 0) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/res/layout/remote03b.xml 2011-01-08 19:41:22 UTC (rev 4068) @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="utf-8"?> + <LinearLayout android:id="@+id/LinearLayout00" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="wrap_content" android:background="@drawable/brush"> + + <TextView android:id="@+id/naviRemote_text" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:text="Remote 03" + android:gravity="center_horizontal" android:background="#FFA9A9A9" + android:textSize="15dip" + android:textColor="#FF000000" android:textColorHighlight="#FFFFFFFF" android:padding="5dip"> + </TextView> + + <LinearLayout android:id="@+id/LinearLayout01" + android:layout_height="wrap_content" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" android:paddingBottom="5dip" android:paddingTop="5dip"> + + <Button android:id="@+id/btnkey01" android:padding="0dip" + android:text="q" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey02" android:padding="0dip" + android:text="w" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey03" android:padding="0dip" + android:text="e" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey04" android:padding="0dip" + android:text="r" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey05" android:padding="0dip" + android:text="t" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey06" android:padding="0dip" + android:text="y" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey07" android:padding="0dip" + android:text="u" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey08" android:padding="0dip" + android:text="i" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey09" android:padding="0dip" + android:text="o" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey10" android:padding="0dip" + android:text="p" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + </LinearLayout> + + <LinearLayout android:id="@+id/LinearLayout02" + android:layout_height="wrap_content" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:paddingBottom="5dip"> + + <Button android:id="@+id/btnkey11" android:padding="0dip" + android:text="a" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey12" android:padding="0dip" + android:text="s" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey13" android:padding="0dip" + android:text="d" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey14" android:padding="0dip" + android:text="f" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey15" android:padding="0dip" + android:text="g" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey16" android:padding="0dip" + android:text="h" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey17" android:padding="0dip" + android:text="j" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey18" android:padding="0dip" + android:text="k" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey19" android:padding="0dip" + android:text="l" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + </LinearLayout> + + <LinearLayout android:id="@+id/LinearLayout03" + android:layout_height="wrap_content" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:paddingBottom="5dip"> + + <Button android:id="@+id/btnkey20" android:padding="0dip" + android:text="Shift" android:layout_width="48dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey21" android:padding="0dip" + android:text="z" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey22" android:padding="0dip" + android:text="x" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey23" android:padding="0dip" + android:text="c" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey24" android:padding="0dip" + android:text="v" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey25" android:padding="0dip" + android:text="b" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey26" android:padding="0dip" + android:text="n" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey27" android:padding="0dip" + android:text="m" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey28" android:padding="0dip" + android:text="DEL" android:layout_width="48dip" android:layout_height="48dip"> + </Button> + </LinearLayout> + + <LinearLayout android:layout_height="wrap_content" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:paddingBottom="5dip" android:id="@+id/LinearLayout04"> + + <Button android:id="@+id/btnkey29" android:padding="0dip" + android:layout_width="64dip" android:layout_height="48dip" android:text="ENTER"> + </Button> + <Button android:id="@+id/btnkey30" android:padding="0dip" + android:layout_height="48dip" android:layout_width="32dip" android:text="/"> + </Button> + <Button android:id="@+id/btnkey31" android:padding="0dip" + android:text="Space" android:layout_height="48dip" android:layout_width="64dip"> + </Button> + <Button android:id="@+id/btnkey32" android:padding="0dip" + android:text="." android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey33" android:padding="0dip" + android:text="www" android:layout_width="64dip" android:layout_height="48dip"> + </Button> + + </LinearLayout> + + <LinearLayout android:layout_height="wrap_content" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" android:paddingBottom="5dip" android:paddingTop="5dip" android:layout_marginTop="20dip" android:id="@+id/LinearLayout05"> + + <Button android:id="@+id/btnkey41" android:padding="0dip" + android:text="1" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey42" android:padding="0dip" + android:text="2" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey43" android:padding="0dip" + android:text="3" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey44" android:padding="0dip" + android:text="4" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey45" android:padding="0dip" + android:text="5" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey46" android:padding="0dip" + android:text="6" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey47" android:padding="0dip" + android:text="7" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey48" android:padding="0dip" + android:text="8" android:layout_height="48dip" android:layout_width="32dip"> + </Button> + <Button android:id="@+id/btnkey49" android:padding="0dip" + android:text="9" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + <Button android:id="@+id/btnkey50" android:padding="0dip" + android:text="0" android:layout_width="32dip" android:layout_height="48dip"> + </Button> + </LinearLayout> + +</LinearLayout> Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Entity.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Entity.java 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/Entity.java 2011-01-08 19:41:22 UTC (rev 4068) @@ -1,32 +0,0 @@ -package mediaportal.remote; - -public class Entity { - - public static String AddEntity(String raw) { - if (raw == null) - return null; - char[] chars = raw.toCharArray(); - StringBuffer encoded = new StringBuffer(); - for (int i = 0; i < chars.length; i++) { - char c = chars[i]; - if (c == '&') - encoded.append("&"); - else if (c == '<') - encoded.append("<"); - else if (c == '>') - encoded.append(">"); - else if (c == '\'') - encoded.append("'"); - else if (c == '"') - encoded.append("""); - else if (c < 128) - encoded.append(c); - else { - encoded.append("&#"); - encoded.append((int) c); - encoded.append(";"); - } - } - return encoded.toString(); - } -} Modified: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaPlayerControl.java 2011-01-08 19:41:22 UTC (rev 4068) @@ -2,34 +2,81 @@ import java.io.IOException; +import mediaportal.remote.utils.AppSettings; +import android.app.Activity; import android.media.MediaPlayer; +import android.os.Bundle; +import android.provider.Contacts.Settings; +import android.util.Log; +import android.view.View; +import android.widget.Button; +import android.widget.ImageButton; +import android.widget.ProgressBar; +import android.widget.TextView; -public class MediaPlayerControl { +public class MediaPlayerControl extends Activity { - private static MediaPlayerControl instance; - private static MediaPlayer mp; + private Button streamButton; + private ImageButton playButton; + private TextView textStreamed; - public static MediaPlayerControl getinstance() { - if (mp == null) - mp = new MediaPlayer(); - if (instance == null) - instance = new MediaPlayerControl(); - return instance; - } + private MediaPlayer mp; + + private boolean isPlaying; + + private StreamingMediaPlayer audioStreamer; + + @Override + public void onCreate(Bundle icicle) { + + super.onCreate(icicle); - public void Stop() - { - mp.stop(); - } - public void Play(String Path) - { - - try { -// mp.stop(); - - mp.setDataSource(Path); + setContentView(R.layout.player); + initControls(); + + mp = new MediaPlayer(); + } + + private void initControls() { + textStreamed = (TextView) findViewById(R.id.text_kb_streamed); + streamButton = (Button) findViewById(R.id.button_stream); + streamButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + startStreamingAudio(); + }}); + + playButton = (ImageButton) findViewById(R.id.button_play); + playButton.setEnabled(false); + playButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + if (audioStreamer.getMediaPlayer().isPlaying()) { + audioStreamer.getMediaPlayer().pause(); + playButton.setImageResource(R.drawable.play); + } else { + audioStreamer.getMediaPlayer().start(); + audioStreamer.startPlayProgressUpdater(); + playButton.setImageResource(R.drawable.pause); + } + isPlaying = !isPlaying; + }}); + } + + private void startStreamingAudio() { + + try { + mp.setDataSource("rtsp://" + AppSettings.getServer() +"/stream.sdp"); + } catch (IllegalArgumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalStateException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + try { mp.prepare(); - mp.start(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); @@ -37,8 +84,7 @@ // TODO Auto-generated catch block e.printStackTrace(); } - - - } - + mp.start(); + + } } Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaScannerNotifier.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaScannerNotifier.java 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MediaScannerNotifier.java 2011-01-08 19:41:22 UTC (rev 4068) @@ -1,52 +0,0 @@ -package mediaportal.remote; - -import android.content.Context; -import android.content.Intent; -import android.media.MediaScannerConnection; -import android.media.MediaScannerConnection.MediaScannerConnectionClient; -import android.net.Uri; -import android.util.Log; - -public class MediaScannerNotifier implements MediaScannerConnectionClient { - private Context mContext; - private MediaScannerConnection mConnection; - private String mPath; - private String mMimeType; - - public MediaScannerNotifier(Context context, String path, String mimeType) { - - Log.d("MediaPortal", "MediaScanner " + path + " | " + mimeType); - - mContext = context; - mPath = path; - mMimeType = mimeType; - mConnection = new MediaScannerConnection(context, this); - mConnection.connect(); - } - - public void onMediaScannerConnected() { - - Log.d("MediaPortal", "MediaScanner connected"); - - mConnection.scanFile(mPath, mMimeType); - Log.d("MediaScanner", "scanner connected"); - } - - public void onScanCompleted(String path, Uri uri) { - - Log.d("MediaPortal", "MediaScanner completed"); - - // OPTIONAL: scan is complete, this will cause the viewer to render it - try { - if (uri != null) { - //Intent intent = new Intent(Intent.ACTION_VIEW); - //intent.setData(uri); - //mContext.startActivity(intent); - } - } finally { - mConnection.disconnect(); - mContext = null; - } - } - -} Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MusicDir.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MusicDir.java 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/MusicDir.java 2011-01-08 19:41:22 UTC (rev 4068) @@ -1,357 +0,0 @@ -/* - * Copyright (C) 2005-2010 Team MediaPortal - * http://www.team-mediaportal.com - * - * This Program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This Program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Make; see the file COPYING. If not, write to - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. - * http://www.gnu.org/copyleft/gpl.html - * - */ - -package mediaportal.remote; - -import java.util.ArrayList; -import mediaportal.remote.R; -import mediaportal.remote.ReceiveDirectoryXmlHandler.DirItems; -import android.app.Activity; -import android.app.AlertDialog; -import android.app.ProgressDialog; -import android.content.Context; -import android.content.DialogInterface; -import android.os.AsyncTask; -import android.os.Bundle; -import android.os.Environment; -import android.os.Handler; -import android.os.Vibrator; -import android.util.Log; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.AdapterView; -import android.widget.BaseAdapter; -import android.widget.GridView; -import android.widget.ImageView; -import android.widget.TextView; -import android.widget.AdapterView.OnItemClickListener; -import android.widget.Toast; - -public class musicDir extends Activity { - - private Context myParent; - - private Handler mHandler = new Handler(); - private static Vibrator vibrate; - - private String actualDir = ""; - private String downloadFile = ""; - - private static ArrayList<ReceiveDirectoryXmlHandler.DirItems> musicList; - private static ReceiveDirectoryXmlHandler.DirItems selectedItem; - - final CharSequence[] items = { "Add to playlist", "Clear playlist", - "Save to SD card", "Cancel" }; - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.music); - - myParent = this.getApplicationContext(); - - mHandler.removeCallbacks(mUpdateTimeTask); - mHandler.postDelayed(mUpdateTimeTask, 100); - - vibrate = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); - - GridView gridview = (GridView) findViewById(R.id.music_grid); - - gridview.setOnItemClickListener(new OnItemClickListener() { - public void onItemClick(AdapterView<?> parent, View v, - int position, long id) { - - ImageView iv = (ImageView) v.findViewById(R.id.icon_image); - musicItem music = (musicItem) iv.getTag(); - - DoVibrate(); - - if (music.typ == "item") { - selectedItem = musicList.get(position-1); - - AlertDialog.Builder builder = new AlertDialog.Builder( - parent.getContext()); - - builder.setTitle(selectedItem.File); - builder.setItems(items, - new DialogInterface.OnClickListener() { - public void onClick(DialogInterface dialog, - int item) { - switch (item) { - case 0: - PostAddFile(actualDir - + selectedItem.File.replaceAll( - " ", "%20")); - Toast.makeText( - musicDir.this, - selectedItem.File - + " has been added", - Toast.LENGTH_SHORT).show(); - break; - case 1: - PostClear(); - Toast.makeText(musicDir.this, - "Playlist has been cleared", - Toast.LENGTH_SHORT).show(); - break; - case 2: - SavetoSDCard(selectedItem.File); - break; - } - } - }); - AlertDialog alert = builder.create(); - alert.show(); - } - - if (music.typ == "folder") { - actualDir += music.title.replaceAll(" ", "%20") + "/"; - - mHandler.removeCallbacks(mUpdateTimeTask); - mHandler.postDelayed(mUpdateTimeTask, 0); - } - - if (music.typ == "oneup") { - if (actualDir.endsWith("/")) - actualDir = actualDir.substring(0, - actualDir.length() - 1); - - int x = actualDir.lastIndexOf("/"); - if (x >= 0) { - actualDir = actualDir.substring(0, x + 1); - } else - actualDir = ""; - - mHandler.removeCallbacks(mUpdateTimeTask); - mHandler.postDelayed(mUpdateTimeTask, 0); - } - } - }); - } - - public void PostClear() { - - PostWebserver post = new PostWebserver(Settings.Server, Settings.Port); - - String xml = ""; - - xml += "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; - xml += "<message>"; - xml += "<command>CLEAR_PLAYLIST</command>"; - xml += "</message>"; - - post.Post(xml); - } - - public void PostAddFile(String Filename) { - - PostWebserver post = new PostWebserver(Settings.Server, Settings.Port); - - String xml = ""; - - xml += "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; - xml += "<message>"; - xml += "<command>ADD_MUSIC_FILE</command>"; - xml += "<filename>" + Filename + "</filename>"; - xml += "<artist></artist>"; - xml += "<title>" + Filename + "</title>"; - xml += "<duration>0</duration>"; - xml += "</message>"; - - post.Post(xml); - } - - private void SavetoSDCard(String File) { - - downloadFile = File; - new download().execute(); - } - - private Runnable mUpdateTimeTask = new Runnable() { - public void run() { - new update().execute(); - } - }; - - private class update extends AsyncTask<String, Void, Void> { - private final ProgressDialog dialog = new ProgressDialog(musicDir.this); - - // can use UI thread here - protected void onPreExecute() { - this.dialog.setMessage("Loading..."); - this.dialog.show(); - } - - // automatically done on worker thread (separate from UI thread) - protected Void doInBackground(final String... args) { - Log.d("update music dir", "do update folder : " + actualDir); - - ReceiveDirHandler h = ReceiveDirHandler.getinstance(); - musicList = h.getMusicDir(actualDir); - - return null; - } - - // can use UI thread here - protected void onPostExecute(final Void unused) { - if (this.dialog.isShowing()) { - this.dialog.dismiss(); - } - - if (musicList == null) { - Toast.makeText(musicDir.this, "TIME OUT SERVER", - Toast.LENGTH_SHORT).show(); - } else { - GridView gridview = (GridView) findViewById(R.id.music_grid); - gridview.setAdapter(new ImageAdapter2(musicDir.this)); - } - } - } - private class download extends AsyncTask<String, Void, Void> { - private final ProgressDialog dialog = new ProgressDialog(musicDir.this); - - // can use UI thread here - protected void onPreExecute() { - this.dialog.setMessage("save to sd card..."); - this.dialog.show(); - } - - // automatically done on worker thread (separate from UI thread) - protected Void doInBackground(final String... args) { - Log.d("MediaPortal", "download starts"); - - httpHandler h = new httpHandler(); - h.DownloadFile(downloadFile , actualDir); - - return null; - } - - // can use UI thread here - protected void onPostExecute(final Void unused) { - if (this.dialog.isShowing()) { - this.dialog.dismiss(); - } - - Toast.makeText(musicDir.this, - selectedItem.File + " has been saved.", Toast.LENGTH_SHORT).show(); - - Log.d("MediaPortal", "download ends"); - - String sd = Environment.getExternalStorageDirectory().toString(); - @SuppressWarnings("unused") - MediaScannerNotifier not = new MediaScannerNotifier(myParent, sd + "/" + downloadFile, "audio/mpeg"); - } - } - - private static void DoVibrate() { - if (Settings.Vibrate) { - vibrate.vibrate(100); - } - } - - public class ImageAdapter2 extends BaseAdapter { - private Context mContext; - public static final int ACTIVITY_CREATE = 10; - - public ImageAdapter2(Context c) { - mContext = c; - } - - public int getCount() { - if (musicList != null) - return musicList.size() + 1; - else - return 0; - } - - public Object getItem(int position) { - return null; - } - - public long getItemId(int position) { - return 0; - } - - // @Override - // create a new ImageView for each item referenced by the Adapter - public View getView(int position, View convertView, ViewGroup parent) { - View v; - if (convertView == null) { // if it's not recycled, initialize some - // attributes - - LayoutInflater li = LayoutInflater.from(mContext); - v = li.inflate(R.layout.icon, null); - } else { - v = convertView; - } - - if (position > 0) { - position = position - 1; - - DirItems item1 = musicList.get(position); - - String txtName = item1.File; - Boolean isFolder = item1.isFolder; - - TextView tv = (TextView) v.findViewById(R.id.icon_text); - tv.setText(txtName); - - ImageView iv = (ImageView) v.findViewById(R.id.icon_image); - - if (isFolder) { - iv.setImageResource(R.drawable.folder); - musicItem item = new musicItem(); - item.title = txtName; - item.typ = "folder"; - iv.setTag(item); - } else { - iv.setImageResource(R.drawable.audio); - musicItem item = new musicItem(); - item.title = txtName; - item.typ = "item"; - iv.setTag(item); - } - } else { - LayoutInflater li = LayoutInflater.from(mContext); - v = li.inflate(R.layout.icon, null); - - TextView tv = (TextView) v.findViewById(R.id.icon_text); - tv.setText(".."); - - ImageView iv = (ImageView) v.findViewById(R.id.icon_image); - iv.setImageResource(R.drawable.folderback); - musicItem item = new musicItem(); - item.title = ".."; - item.typ = "oneup"; - iv.setTag(item); - } - - return v; - } - } - - public class musicItem { - public String title; - public String typ; - } - -} Deleted: trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/PostWebserver.java =================================================================== --- trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/PostWebserver.java 2011-01-08 19:27:09 UTC (rev 4067) +++ trunk/plugins/AndroidRemote/Android/MediaPortalRemote/src/mediaportal/remote/PostWebserver.java 2011-01-08 19:41:22 UTC (rev 4068) @@ -1,137 +0,0 @@ -/* - * Copyright (C) 2005-2010 Team MediaPortal - * http://www.team-mediaportal.com - * - * This Program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This Program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Make; see the file COPYING. If not, write to - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. - * http://www.gnu.org/copyleft/gpl.html - * - */ - -package mediaportal.remote; - -import java.io.BufferedReader; -import java.io.BufferedWriter; -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.OutputStreamWriter; -import java.net.InetAddress; -import java.net.Socket; - -import org.apache.http.HttpResponse; -import org.apache.http.client.ClientProtocolException; -import org.apache.http.client.methods.HttpPost; -import org.apache.http.entity.StringEntity; -import org.apache.http.impl.client.DefaultHttpClient; -import org.apache.http.params.BasicHttpParams; -import org.apache.http.params.HttpConnectionParams; -import org.apache.http.params.HttpParams; -import org.apache.http.params.HttpProtocolParams; -import org.apache.http.protocol.HTTP; - -import android.util.Log; - -public class PostWebserver { - - public String httpServer = ""; - public String httpPort = ""; - - public PostWebserver(String Server, String Port) { - httpServer = Server; - httpPort = Port; - } - - public boolean Post(String data) { - - boolean result = false; - - try { - InetAddress addr = InetAddress.getByName(Settings.Server); - Socket socket = new Socket(addr, 8200); - - // Send header String - String path = "/"; - BufferedWriter wr = new BufferedWriter(new OutputStreamWriter( - socket.getOutputStream(), "UTF8")); - wr.write("POST " + path + " HTTP/1.0\r\n"); - wr.write("Content-Length: " + data.length() + "\r\n"); - wr.write("Content-Type: application/xml; charset=utf-8\r\n"); - wr.write("\r\n"); - - // Send data - wr.write(data); - wr.flush(); - - // Get response - BufferedReader rd = new BufferedReader(new InputStreamReader( - socket.getInputStream())); - - String line; - while ((line = rd.readLine()) != null) { - Log.d("MediaPortal", "Response POST : " + line); - // Process line... - } - - wr.close(); - rd.close(); - - result = true; - - } catch (Exception e) { - } - - return result; - - } - - public boolean oldPost(String Dat... [truncated message content] |
From: <che...@us...> - 2011-01-08 19:27:15
|
Revision: 4067 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4067&view=rev Author: chemelli_sf Date: 2011-01-08 19:27:09 +0000 (Sat, 08 Jan 2011) Log Message: ----------- Compatibility fix with latest MP trunk Modified Paths: -------------- trunk/plugins/IR Server Suite/MediaPortal Plugins/MediaPortal Plugins/MP Control Plugin/InputMapper/InputMappingForm.cs Modified: trunk/plugins/IR Server Suite/MediaPortal Plugins/MediaPortal Plugins/MP Control Plugin/InputMapper/InputMappingForm.cs =================================================================== --- trunk/plugins/IR Server Suite/MediaPortal Plugins/MediaPortal Plugins/MP Control Plugin/InputMapper/InputMappingForm.cs 2011-01-08 19:26:27 UTC (rev 4066) +++ trunk/plugins/IR Server Suite/MediaPortal Plugins/MediaPortal Plugins/MP Control Plugin/InputMapper/InputMappingForm.cs 2011-01-08 19:27:09 UTC (rev 4067) @@ -123,13 +123,11 @@ case (int) GUIWindow.Window.WINDOW_INVALID: case (int) GUIWindow.Window.WINDOW_MINI_GUIDE: case (int) GUIWindow.Window.WINDOW_TV_CROP_SETTINGS: - case (int) GUIWindow.Window.WINDOW_MSNOSD: case (int) GUIWindow.Window.WINDOW_MUSIC: case (int) GUIWindow.Window.WINDOW_MUSIC_COVERART_GRABBER_RESULTS: case (int) GUIWindow.Window.WINDOW_MUSIC_INFO: case (int) GUIWindow.Window.WINDOW_OSD: case (int) GUIWindow.Window.WINDOW_TOPBAR: - case (int) GUIWindow.Window.WINDOW_TVMSNOSD: case (int) GUIWindow.Window.WINDOW_TVOSD: case (int) GUIWindow.Window.WINDOW_TVZAPOSD: case (int) GUIWindow.Window.WINDOW_VIDEO_ARTIST_INFO: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2011-01-08 19:26:33
|
Revision: 4066 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4066&view=rev Author: chemelli_sf Date: 2011-01-08 19:26:27 +0000 (Sat, 08 Jan 2011) Log Message: ----------- Fixed Serial Hex Implementation (http://forum.team-mediaportal.com/ir-server-suite-irss-165/bug-irss-serial-hex-implementation-91305/) + some minor code formatting Modified Paths: -------------- trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/Common.cs trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/IrssMacro.cs Modified: trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/Common.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/Common.cs 2011-01-04 16:30:13 UTC (rev 4065) +++ trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/Common.cs 2011-01-08 19:26:27 UTC (rev 4066) @@ -21,6 +21,7 @@ #endregion using System; +using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; @@ -120,7 +121,7 @@ public const string CmdPrefixClearVars = "Clear Variables"; public const string CmdPrefixCloseProgram = "Close Program: "; public const string CmdPrefixCommand = "Command: "; -// public const string CmdPrefixWindowState = "Toggle Window State"; + // public const string CmdPrefixWindowState = "Toggle Window State"; public const string CmdPrefixDisplayMode = "Display Mode: "; public const string CmdPrefixDisplayPower = "Display Power: "; @@ -519,7 +520,7 @@ process.StartInfo.FileName = commands[0]; process.StartInfo.WorkingDirectory = commands[1]; process.StartInfo.Arguments = commands[2]; - process.StartInfo.WindowStyle = (ProcessWindowStyle) Enum.Parse(typeof (ProcessWindowStyle), commands[3], true); + process.StartInfo.WindowStyle = (ProcessWindowStyle)Enum.Parse(typeof(ProcessWindowStyle), commands[3], true); process.StartInfo.CreateNoWindow = bool.Parse(commands[4]); process.StartInfo.UseShellExecute = bool.Parse(commands[5]); //process.PriorityClass = ProcessPriorityClass. @@ -552,13 +553,13 @@ if (commands == null) throw new ArgumentNullException("commands"); - string command = ReplaceSpecial(commands[0]); - + Byte[] command = ReplaceSpecial(commands[0]); + string comPort = commands[1]; int baudRate = int.Parse(commands[2]); - Parity parity = (Parity) Enum.Parse(typeof (Parity), commands[3], true); + Parity parity = (Parity)Enum.Parse(typeof(Parity), commands[3], true); int dataBits = int.Parse(commands[4]); - StopBits stopBits = (StopBits) Enum.Parse(typeof (StopBits), commands[5], true); + StopBits stopBits = (StopBits)Enum.Parse(typeof(StopBits), commands[5], true); bool waitForResponse = bool.Parse(commands[6]); SerialPort serialPort = new SerialPort(comPort, baudRate, parity, dataBits, stopBits); @@ -566,7 +567,7 @@ try { - serialPort.Write(command); + serialPort.Write(command, 0, command.Length); if (waitForResponse) { @@ -575,8 +576,9 @@ serialPort.ReadTimeout = 5000; serialPort.ReadByte(); } - catch + catch (Exception ex) { + IrssLog.Debug("ProcessSerialCommand: {0}", ex.Message); } } } @@ -681,7 +683,7 @@ { using (StreamWriter streamWriter = new StreamWriter(networkStream)) { - string toWrite = ReplaceSpecial(commands[2]); + Byte[] toWrite = ReplaceSpecial(commands[2]); streamWriter.Write(toWrite); streamWriter.Flush(); @@ -813,7 +815,7 @@ if (commands == null) throw new ArgumentNullException("commands"); - Uri uri = new Uri(ReplaceSpecial(commands[0])); + Uri uri = new Uri(ReplaceSpecial(commands[0]).ToString()); WebRequest request = WebRequest.Create(uri); request.Timeout = int.Parse(commands[1]); @@ -1022,10 +1024,12 @@ /// </summary> /// <param name="input">The input to process.</param> /// <returns>Processed input string.</returns> - public static string ReplaceSpecial(string input) + public static Byte[] ReplaceSpecial(string input) { if (String.IsNullOrEmpty(input)) - return input; + { + return null; + } // Process Special Codes ... if (input.Contains("%")) @@ -1104,7 +1108,7 @@ bool inEscapeCode = false; bool inHexCode = false; StringBuilder hexCode = new StringBuilder(); - StringBuilder output = new StringBuilder(); + List<Byte> output = new List<Byte>(); foreach (char currentChar in input) { @@ -1113,37 +1117,36 @@ switch (currentChar) { case 'a': - output.Append((char) 7); + output.Add((byte)7); break; case 'b': - output.Append((char) Keys.Back); + output.Add((byte)Keys.Back); break; case 'f': - output.Append((char) 12); + output.Add((byte)12); break; case 'n': - output.Append((char) Keys.LineFeed); + output.Add((byte)Keys.LineFeed); break; case 'r': - output.Append((char) Keys.Return); + output.Add((byte)Keys.Return); break; case 't': - output.Append((char) Keys.Tab); + output.Add((byte)Keys.Tab); break; case 'v': - output.Append((char) 11); + output.Add((byte)11); break; case 'x': hexCode = new StringBuilder(); inHexCode = true; - inEscapeCode = false; break; case '0': // I've got a bad feeling about this - output.Append((char) 0); + output.Add((byte)0); break; default: // If it doesn't know it as an escape code, just use the char - output.Append(currentChar); + output.Add((byte)currentChar); break; } @@ -1156,10 +1159,13 @@ case 'h': // 'h' terminates the hex code byte hexParsed; if (byte.TryParse(hexCode.ToString(), NumberStyles.HexNumber, null, out hexParsed)) - output.Append((char) hexParsed); + { + output.Add(hexParsed); + } else + { throw new ArgumentException(String.Format("Bad Hex Code \"{0}\"", hexCode), "input"); - + } inHexCode = false; break; @@ -1174,11 +1180,11 @@ } else { - output.Append(currentChar); + output.Add((byte)currentChar); } } - return output.ToString(); + return output.ToArray(); } /// <summary> @@ -1315,28 +1321,28 @@ return null; } -/* - private static Process GetProcessByFileName(string fileName) - { - foreach (Process process in Process.GetProcesses()) - { - string procFileName; - try + /* + private static Process GetProcessByFileName(string fileName) { - procFileName = process.MainModule.ModuleName; - } - catch - { - continue; - } + foreach (Process process in Process.GetProcesses()) + { + string procFileName; + try + { + procFileName = process.MainModule.ModuleName; + } + catch + { + continue; + } - if (procFileName.Equals(fileName, StringComparison.OrdinalIgnoreCase)) - return process; - } + if (procFileName.Equals(fileName, StringComparison.OrdinalIgnoreCase)) + return process; + } - return null; - } -*/ + return null; + } + */ private static void EndProcess(Process process, int timeout) { Modified: trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/IrssMacro.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/IrssMacro.cs 2011-01-04 16:30:13 UTC (rev 4065) +++ trunk/plugins/IR Server Suite/IR Server Suite/Common/IrssUtils/IrssMacro.cs 2011-01-08 19:26:27 UTC (rev 4066) @@ -177,11 +177,11 @@ if (commands[0].StartsWith(Common.VariablePrefix, StringComparison.OrdinalIgnoreCase)) commands[0] = variables.GetVariable(commands[0].Substring(Common.VariablePrefix.Length)); - commands[0] = Common.ReplaceSpecial(commands[0]); + commands[0] = Common.ReplaceSpecial(commands[0]).ToString(); if (commands[2].StartsWith(Common.VariablePrefix, StringComparison.OrdinalIgnoreCase)) commands[2] = variables.GetVariable(commands[2].Substring(Common.VariablePrefix.Length)); - commands[2] = Common.ReplaceSpecial(commands[2]); + commands[2] = Common.ReplaceSpecial(commands[2]).ToString(); if (EvaluateIfCommand(commands)) position = GetLabelPosition(commandList, commands[3]); @@ -202,7 +202,7 @@ string[] commands = Common.SplitSetVarCommand(command.Substring(Common.CmdPrefixSetVar.Length)); string variable = commands[0].Substring(Common.VariablePrefix.Length); - string value = Common.ReplaceSpecial(commands[1]); + string value = Common.ReplaceSpecial(commands[1]).ToString(); variables.SetVariable(variable, value); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2011-01-04 16:30:19
|
Revision: 4065 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4065&view=rev Author: chemelli_sf Date: 2011-01-04 16:30:13 +0000 (Tue, 04 Jan 2011) Log Message: ----------- Another try to exclude resx changes (last one) Property Changed: ---------------- trunk/plugins/WorldMap/MAPS/ Property changes on: trunk/plugins/WorldMap/MAPS ___________________________________________________________________ Modified: svn:ignore - bin obj resx + bin obj *.resx This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2011-01-04 16:27:45
|
Revision: 4064 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4064&view=rev Author: chemelli_sf Date: 2011-01-04 16:27:39 +0000 (Tue, 04 Jan 2011) Log Message: ----------- Another try to exclude resx changes Property Changed: ---------------- trunk/plugins/WorldMap/MAPS/ Property changes on: trunk/plugins/WorldMap/MAPS ___________________________________________________________________ Modified: svn:ignore - bin obj BingAPIKey* + bin obj resx This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2011-01-04 16:27:39
|
Revision: 4063 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4063&view=rev Author: chemelli_sf Date: 2011-01-04 16:27:31 +0000 (Tue, 04 Jan 2011) Log Message: ----------- Updates package to v1.0.0.5 Modified Paths: -------------- trunk/plugins/ItalyLogos/package/ItalyLogos.xmp2 trunk/plugins/ItalyLogos/update.xml Added Paths: ----------- trunk/plugins/ItalyLogos/ItalyLogos v.1.0.0.5.mpe1 Removed Paths: ------------- trunk/plugins/ItalyLogos/ItalyLogos v.1.0.0.4.mpe1 Deleted: trunk/plugins/ItalyLogos/ItalyLogos v.1.0.0.4.mpe1 =================================================================== (Binary files differ) Added: trunk/plugins/ItalyLogos/ItalyLogos v.1.0.0.5.mpe1 =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/ItalyLogos v.1.0.0.5.mpe1 ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/ItalyLogos/package/ItalyLogos.xmp2 =================================================================== --- trunk/plugins/ItalyLogos/package/ItalyLogos.xmp2 2011-01-03 22:19:57 UTC (rev 4062) +++ trunk/plugins/ItalyLogos/package/ItalyLogos.xmp2 2011-01-04 16:27:31 UTC (rev 4063) @@ -13,6281 +13,6281 @@ <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\ canal+ sport.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{05781abc-a08e-4bc5-883d-7b15e632df35}- canal+ sport.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{9da0dc69-fbf7-4dba-9e49-1741043cf659}- canal+ sport.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\ canal+ sport.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\ canal+.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{80882f70-b387-4567-980f-6c463b26e170}- canal+.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{39cceef2-9624-4e68-b656-42f22892cb44}- canal+.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\ canal+.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\-frisbee-.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{398e8c9c-0c41-4741-86ef-610de1aa2b6a}--frisbee-.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\-frisbee-.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\4fun.tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{3c13c07c-8e01-4056-9002-e6ef7d56a509}-4fun.tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{bcb352cc-93d0-49cb-a9a0-35cae9839a1d}-4fun.tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\4fun.tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\50 canale.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{ed03d198-6783-4797-9748-ee6d297caf7d}-50 canale.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{9f2cb312-de6a-40aa-b1c6-d48d07838eda}-50 canale.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\50 canale.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\7 gold 1.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{56f1ef94-703e-48b3-aed0-91e270e7e910}-7 gold 1.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{9ee5751d-36bc-4338-917f-06436145b916}-7 gold 1.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\7 gold 1.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\7 gold.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d2f840db-8840-410f-93fc-7ed7378c3a6e}-7 gold.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\7 gold.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\ab channel.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{949dd971-a503-499c-ad9f-59779e390dc1}-ab channel.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{a1a8d3f9-af88-47bc-a02b-9a99e1f4cc2e}-ab channel.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\ab channel.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\ab moteurs.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{a7c806f8-2769-4619-b181-d2c5a0ad3f5f}-ab moteurs.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{fc2d9ec4-8131-4ae2-9201-a088253b34fd}-ab moteurs.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\ab moteurs.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\ab1.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{c629efc4-593e-4db5-91c5-88187a7a478d}-ab1.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{2e292243-a62f-4fc9-8d17-7889168241f5}-ab1.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\ab1.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\acm channel.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{838d2f36-bba3-497d-a3cc-7a1fdafdf734}-acm channel.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{39237fad-3220-4e37-be5d-fce20a883d31}-acm channel.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\acm channel.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\afn atlantic.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{cf3a4293-093a-4987-ad97-9ac7d06db4d6}-afn atlantic.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{38d59b57-7e0c-4cad-b592-2fbf161c5ecc}-afn atlantic.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\afn atlantic.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\afn freedom radio.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{98713dd4-f2de-4bab-ae4b-c3eba041b1a6}-afn freedom radio.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{912eca64-7428-4976-b084-a9cbc940d7c4}-afn freedom radio.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\afn freedom radio.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\afn pacific.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{9ec8d727-79d3-4dd2-a5b1-9369cacf6244}-afn pacific.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{2e1080b3-67d1-4efa-9489-584c7fe72323}-afn pacific.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\afn pacific.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\afn spectrum.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{7ee37d1b-f0bd-41ad-add2-104145e447d7}-afn spectrum.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{689a449c-a933-4297-bddb-6643682dfe7c}-afn spectrum.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\afn spectrum.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\afn sports.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{a5de2253-d28f-485d-a7d9-4a3588788eb6}-afn sports.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{c9360670-8646-4da4-accc-71c0edd374ca}-afn sports.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\afn sports.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\al fayhaa.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{55f48fb7-499c-4d76-9e04-23f4cad31423}-al fayhaa.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{08296302-a3f0-4e2b-a31c-3b1c47879029}-al fayhaa.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\al fayhaa.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\al forat.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{345e18b3-da48-4eb4-aafd-78605d914fb9}-al forat.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{72a1af0b-aff0-4bb8-b358-37ae83e63538}-al forat.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\al forat.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\al hiwar.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5590f7af-934d-48bc-9d07-e4136e5f7ce2}-al hiwar.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\al hiwar.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\al jazeera children.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{11cb5333-718c-44e4-952e-880980b65398}-al jazeera children.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{ae7b5828-7e52-4f63-a448-7f363d8aaa44}-al jazeera children.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\al jazeera children.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\al jazeera.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{e8ff6f05-e898-4541-a2d4-f701c80ad4c6}-al jazeera.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{9ba4b45f-254b-40f3-b9dd-f3ce4fd0a0fd}-al jazeera.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\al jazeera.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\al rasheed tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{cfdaef69-2c8c-44c0-b913-c6501e15803b}-al rasheed tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{fb68adff-3265-46b6-82b0-30bca2ccf727}-al rasheed tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\al rasheed tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\alice.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{88a9a192-1171-4ded-a321-9a910ff3f224}-alice.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{ee19b553-33e9-4aaf-9459-0baed88033f4}-alice.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\alice.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\aljazeera documentary.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{43b54fcd-58ad-4ddf-8520-ab8e2ae71c2c}-aljazeera documentary.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{062882bf-8661-41a2-a31a-d08462750f4a}-aljazeera documentary.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\aljazeera documentary.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\alkawthar.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{a46888d5-a601-4096-9e38-cb0a11f6e7b8}-alkawthar.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{3c738adb-d75b-4dcf-a4fc-1fe4c3734d62}-alkawthar.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\alkawthar.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\all tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{60aad317-0d5a-4a5d-a989-db5f639fb412}-all tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{b61606b6-a4d3-4dd2-9f75-b59b6201f5a8}-all tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\all tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\alpha tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{2c6d392d-ec45-4a32-bd38-1de254837cb5}-alpha tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{1861019a-3b1f-49c0-8697-4eb13875b646}-alpha tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\alpha tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\anb.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{c6c68602-0244-44f1-9246-9ac5b4dcbae0}-anb.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{7180263a-4435-4ff6-85f0-1d767ecb264f}-anb.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\anb.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\animal planet.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{e75d3be6-adcb-47d5-9d57-e59306577f4e}-animal planet.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{e71afe01-f1b8-4fa7-8770-bf413e7423f4}-animal planet.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\animal planet.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\animaux.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{8c6a2ca5-6d7a-47a0-9b8b-a0005ea60247}-animaux.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{ffef20bb-3301-45c5-a73b-823125abdb42}-animaux.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\animaux.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\antenna 3 nord est.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{eb23a42f-da33-4cef-b7b4-e2c3faca6c9a}-antenna 3 nord est.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\antenna 3 nord est.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\antenna 3 nord est.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{2da21e2b-c787-4954-ba39-d395b415baea}-antenna 3 nord est.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\antenna 3 nord est.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\antenna 3 nord est.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{89ab2182-b686-4f2b-9f63-dd7c18b036c7}-antenna 3 nord est.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\antenna 3 nord est.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\antenna 3 nord est.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a9f46d23-e65d-4e69-bf14-42d6f700f4c3}-antenna 3 nord est.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\antenna 3 nord est.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\antenna 3 nord est.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{bdbbfa2f-109d-491c-94b4-00a7f878c137}-antenna 3 nord est.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{53a9d8e9-2b22-42f1-ae3a-63d4c4b9283c}-antenna 3 nord est.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\antenna 3 nord est.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\art cinema - arabesque.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{9e31cfde-41bb-4a73-a73c-6fd1796f05b3}-art cinema - arabesque.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{3e9eb3bf-93e6-470e-995d-1cf5b70ec553}-art cinema - arabesque.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\art cinema - arabesque.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\art hekayat - arabesque.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{09d55326-09b3-45aa-be59-931541b99634}-art hekayat - arabesque.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{2210ae63-3021-4815-9cb9-d8c3b306bc9c}-art hekayat - arabesque.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\art hekayat - arabesque.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\art hekayat kaman - arabesque.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{ba02e55e-5315-4486-a726-fbf4446be52f}-art hekayat kaman - arabesque.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{6d4809c2-92fd-4806-85ae-4613b4cb6970}-art hekayat kaman - arabesque.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\art hekayat kaman - arabesque.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\art prime sport - arabesque.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{fd5107d7-d008-422c-90c1-0d37aab8385a}-art prime sport - arabesque.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{bc424c5f-ea2d-4b15-84ec-f8285a727627}-art prime sport - arabesque.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\art prime sport - arabesque.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\arte (1).png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{f1d60c9f-f046-4a57-8818-3b575c139d12}-arte (1).png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{c159e426-b89b-4be8-9dbf-42b679b597cd}-arte (1).png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\arte (1).png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\arte.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{212c6810-508a-4be5-be1c-0b9ee79acd64}-arte.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{ed2d3a3a-bdf8-4a93-9b08-651e5b52d92c}-arte.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\arte.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\asianet.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{f4695a78-3022-4fa9-8d9d-a52030f55584}-asianet.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{380437b1-7ec0-4c9e-b5c7-02072ba892aa}-asianet.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\asianet.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\aso sat.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{41c21657-6858-461b-b1cd-78d7e0bed93e}-aso sat.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\aso sat.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\axn +1.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{2cd09f07-09f7-4c15-8c5f-7f5c6e410255}-axn +1.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\axn +1.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\axn crime.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{5c89be17-496b-4fc5-abcb-9b76eb88211a}-axn crime.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{16870422-0493-49e7-8502-c67f91e93787}-axn crime.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\axn crime.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\axn hd.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{83aba53a-4e1f-4833-911c-f270d995f83b}-axn hd.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\axn hd.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\axn scifi.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{0d3d3df6-3728-4567-b4cf-54f922acbef0}-axn scifi.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\axn scifi.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\axn.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{cb177f1a-52c7-4ca1-b3a2-3fd62b1629bb}-axn.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{067e281d-7919-4b7e-81d2-139b74e5d358}-axn.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\axn.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\baby tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{27479aa8-35d4-4782-bc36-f5f9e3e2b709}-baby tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{242a9c3b-ef45-4195-ba82-b2a7569732a4}-baby tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\baby tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\baraem.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{0196e832-92dd-402b-8bea-1e42220bc52f}-baraem.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{113b44a1-0bec-4244-8e0d-d192c0dbd995}-baraem.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\baraem.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bbc arabic (1).png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{761f40f1-ab4f-43b8-b789-a93e9a4aecd1}-bbc arabic (1).png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{ffbf4b74-5990-477a-819a-45df14dd2452}-bbc arabic (1).png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bbc arabic (1).png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bbc entertainment.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{9162947f-aaf8-41ef-82fc-0f74a6f8fe8a}-bbc entertainment.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{6755c650-e05f-43da-ae04-7c284ca89e52}-bbc entertainment.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bbc entertainment.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bbc persian.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{4a7b4c40-e3d8-4715-8c09-bddb3bf666b8}-bbc persian.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{21761fec-b8e8-4cd8-b67a-9ecd7669b568}-bbc persian.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bbc persian.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bbc world news.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{a19f958b-cc29-41dc-a12a-c2b3fd33b3e3}-bbc world news.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{b07ed401-8f1d-4c30-af52-5ce2d429877c}-bbc world news.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bbc world news.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bbc world.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{7998cb44-3bb0-4ef3-a5df-188732d7c32a}-bbc world.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{bc427adc-2e65-4a43-a647-b699a526d595}-bbc world.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bbc world.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\betting channel.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{9b283347-83fd-4ea4-bf83-ea92e1d784bb}-betting channel.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{1f148429-a652-48ec-a6ac-0e22fa3b82db}-betting channel.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\betting channel.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\beur tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{6e3d7eda-ac4e-43a8-b275-f8a87fdad6c5}-beur tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{b54c5d62-b2b8-4f8a-a49d-b1d230ba486a}-beur tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\beur tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bfm tv (1).png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{ad36733c-1c8a-4fac-af91-71b564abf7ca}-bfm tv (1).png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{15b4603b-6c65-4421-a8d5-93940380864a}-bfm tv (1).png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bfm tv (1).png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bfm tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{1c3884ad-e231-4d35-9923-ed9d56c0b738}-bfm tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{6fe0fbab-2cd3-4266-ad01-574abc203c44}-bfm tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bfm tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\blue hustler.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{2337406e-9e51-4600-88db-e28ced5b95ac}-blue hustler.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{7970def7-dbec-4dbc-afce-aae31675f962}-blue hustler.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\blue hustler.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\boing.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{82f2b379-10cb-4a23-ac34-2f1905d6f861}-boing.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{8b8b1972-ad92-4d79-a645-82bb47976610}-boing.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\boing.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\boomerang +1.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{69f8e35a-9c12-4d97-8444-2f0085fb9a75}-boomerang +1.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{51bb2b5f-44cc-4ffd-97be-60d1a86bfe65}-boomerang +1.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\boomerang +1.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\boomerang.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{c6342ca5-7a33-4129-92bd-e2ff3ec79281}-boomerang.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{e06eb2a5-462d-4448-906f-6fb86c4ba6ac}-boomerang.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\boomerang.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\bvn.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{3b879009-b1d4-40d3-938c-1369211ea43b}-bvn.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{58e44165-17de-4399-afd4-2a52021aa309}-bvn.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\bvn.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\caccia e pesca +.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d0b8b403-7302-44cd-876d-e1b72dd42140}-caccia e pesca +.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\caccia e pesca +.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\caccia e pesca.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{0803540f-7977-46ac-8d80-5b4eec883e3b}-caccia e pesca.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{c14f3219-ed65-4080-9ed3-62afb4c0a87e}-caccia e pesca.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\caccia e pesca.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\calabria channel.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{5f793974-a264-4e1e-8713-80f723a9a6fd}-calabria channel.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{40161635-1958-4318-8308-72ff6e8af35a}-calabria channel.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\calabria channel.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\camera deputati.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{41d65988-7a89-4050-b253-8f56fb27e5a4}-camera deputati.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{c8bdef61-d04a-4ed2-8173-64042a771d39}-camera deputati.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\camera deputati.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canal +.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{04f26a7f-7b26-4e98-a1dc-606af5795ce2}-canal +.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canal +.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\canal+ sport.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{106fec1a-0ab8-4b17-b8ef-2b7c53259731}-canal+ sport.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{c44cc0e2-359d-467e-a03c-49133b452129}-canal+ sport.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\canal+ sport.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\canal+.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{5733aea9-cd0e-4479-893b-0a3ac6176336}-canal+.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{76c8815a-9549-4dbf-990d-0496ec5b1370}-canal+.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\canal+.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\canale 5.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{ecc9d7dc-bc61-4c76-8394-584c4aae6bb9}-canale 5.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{094652e1-07d8-4e84-ba65-651ba9524adc}-canale 5.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\canale 5.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\canale 55.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{c65c4538-94d3-41cc-a360-e79aed5b9992}-canale 55.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{0868caf9-b3b4-4182-9d06-79608913e6f9}-canale 55.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\canale 55.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale italia (1).png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5f8d3216-3e55-438b-bb20-c62132560195}-canale italia (1).png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale italia (1).png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale italia due (1).png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{4f6d6515-85d3-42e3-8d62-e1de9d40cccf}-canale italia due (1).png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale italia due (1).png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale italia due.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c697da79-4f53-46e3-a392-cd565da7df11}-canale italia due.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale italia due.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale italia uno (1).png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{ed0b3fea-e502-4c3e-95b5-e97acd52ee2a}-canale italia uno (1).png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale italia uno (1).png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale italia uno.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{7ca6c137-5037-4d09-a873-1ccbcf3e0c57}-canale italia uno.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale italia uno.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\canale italia.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{3a576b7b-d161-4287-8672-7d264f51f1fc}-canale italia.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{613cabd3-5151-4290-8afb-8a58607a56ef}-canale italia.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\canale italia.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale5 +1.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{906a19f9-ba89-4b1c-9823-1ad691cdd153}-canale5 +1.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale5 +1.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale5 HD.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{59a72ff0-0baa-498b-a1fe-f4163b7d7603}-canale5 HD.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale5 HD.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\canale5.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{fcc7ada1-d5e2-4f68-9328-a0c6545dcd85}-canale5.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\canale5.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\carisma_tv.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{669ad0a9-3830-4a06-ad75-e0362d250f74}-carisma_tv.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{b2bd9c32-4298-4da0-9354-fb980202e0ca}-carisma_tv.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\carisma_tv.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\carpe diem.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{4cc87f46-2b72-4008-b36a-d29146caa11a}-carpe diem.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\carpe diem.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cartomanzia lotto.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{1275bde2-1fde-4102-b9fe-8ae7b6c83df7}-cartomanzia lotto.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cartomanzia lotto.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cartoon +1.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{1b8ac20b-9f25-49da-be36-0748631c71a2}-cartoon +1.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{3f81be84-72fb-4963-87e8-aa7cc7e8eafb}-cartoon +1.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cartoon +1.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cartoon network - premium.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{03470aee-6615-4d66-99c5-4dada05df6d2}-cartoon network - premium.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{4f5ec61b-428b-49b3-a514-540234b3a547}-cartoon network - premium.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cartoon network - premium.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cartoon network.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{2d0e9e34-68af-42bb-938b-6792f284a219}-cartoon network.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{2335ca7d-22c7-4615-87b8-eff4ebbdf1ad}-cartoon network.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cartoon network.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\casa italia.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{c454a975-4979-4303-af7e-3c16c1e55a85}-casa italia.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{9cebf13b-db05-41f9-80b7-4d1f1fa7fb76}-casa italia.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\casa italia.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\casting channel.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{f928b385-dfa9-42db-a3b3-007170b034fe}-casting channel.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{627aca14-ae5b-4701-b049-954b06c90e0d}-casting channel.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\casting channel.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\church channel.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{499cd951-dee1-4141-a850-548abb6ac1e1}-church channel.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{d9c316df-35df-4c71-9301-01dc31c19c6d}-church channel.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\church channel.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cielo.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{2ccf166b-fce3-4c30-8a26-227e72b4d8fe}-cielo.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{14b111d6-a088-459e-beba-d8217edf9d85}-cielo.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cielo.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema +1 hd.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{ff152159-06d3-47f7-be55-feabe7fbaf53}-cinema +1 hd.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema +1 hd.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema +1.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{924294f5-51cb-48a8-bd6b-ef37e2380921}-cinema +1.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema +1.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema +24 hd.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{02b0559b-ec38-4546-b516-089a711778eb}-cinema +24 hd.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema +24 hd.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema +24.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{cfee7658-2570-43c6-a6bb-57742202cccd}-cinema +24.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema +24.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema 1 hd.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{10f3a8af-78e4-4d36-804e-6143c0ae9717}-cinema 1 hd.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema 1 hd.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema 1.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{3588eea1-3ab1-42b7-a3be-8f5a7bb79f2e}-cinema 1.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema 1.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cinema classics.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{e4383e8a-daed-4f88-b926-2279c74bf68f}-cinema classics.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{eb6fea22-2bdd-409d-b412-5bdf4884eb13}-cinema classics.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cinema classics.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cinema family.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{e775aac1-54f0-47a7-8ebd-47e6bcec2001}-cinema family.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{848eba40-683e-46a6-9daf-27863829100d}-cinema family.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cinema family.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cinema hits hd.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{4697981d-9af1-4b11-9751-381ddffe3254}-cinema hits hd.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{ca81e3f8-6f7f-4d1f-876d-1a904690a90c}-cinema hits hd.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cinema hits hd.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema hits.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{aa090d58-5fcd-4542-955e-d6cee0d10c2d}-cinema hits.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema hits.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema italia hd.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{2a262d81-2b99-447d-9131-073939648c84}-cinema italia hd.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\cinema italia hd.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\logos\TV\logos\cinema italia.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{ebf86a5b-ae50-40a9-9c13-6a4d137f2757}-cinema italia.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{a134ec90-1e68-44ec-aad3-80cd6a240820}-cinema italia.png</ZipFileName> <DestinationFilename>%Thumbs%\TV\logos\cinema italia.png</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="false"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\logos\TV\logos\cinema itv.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c7933ee8-66b4-4979-89fc-7d1a938db7dd}-cinema itv.png</ZipFileName> + <DestinationFilename>%Thumbs%\TV\logos\... [truncated message content] |
From: <che...@us...> - 2011-01-03 22:20:03
|
Revision: 4062 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4062&view=rev Author: chemelli_sf Date: 2011-01-03 22:19:57 +0000 (Mon, 03 Jan 2011) Log Message: ----------- Updates and additions Modified Paths: -------------- trunk/plugins/ItalyLogos/logos/TV/logos/canale5 HD.png trunk/plugins/ItalyLogos/logos/TV/logos/italia1 HD.png Added Paths: ----------- trunk/plugins/ItalyLogos/logos/TV/logos/-frisbee-.png trunk/plugins/ItalyLogos/logos/TV/logos/axn +1.png trunk/plugins/ItalyLogos/logos/TV/logos/axn hd.png trunk/plugins/ItalyLogos/logos/TV/logos/caccia e pesca +.png trunk/plugins/ItalyLogos/logos/TV/logos/cinema +1 hd.png trunk/plugins/ItalyLogos/logos/TV/logos/cinema italia hd.png trunk/plugins/ItalyLogos/logos/TV/logos/cinema itv.png trunk/plugins/ItalyLogos/logos/TV/logos/cinemafamilyhd.png trunk/plugins/ItalyLogos/logos/TV/logos/cinemamaniahd.png trunk/plugins/ItalyLogos/logos/TV/logos/classics hd.png trunk/plugins/ItalyLogos/logos/TV/logos/deasuper.png trunk/plugins/ItalyLogos/logos/TV/logos/dovetv.png trunk/plugins/ItalyLogos/logos/TV/logos/playhouse +.png trunk/plugins/ItalyLogos/logos/TV/logos/premium cinema hd.png trunk/plugins/ItalyLogos/logos/TV/logos/rai sport 2.png Added: trunk/plugins/ItalyLogos/logos/TV/logos/-frisbee-.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/-frisbee-.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/axn +1.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/axn +1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/axn hd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/axn hd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/caccia e pesca +.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/caccia e pesca +.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/ItalyLogos/logos/TV/logos/canale5 HD.png =================================================================== (Binary files differ) Added: trunk/plugins/ItalyLogos/logos/TV/logos/cinema +1 hd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/cinema +1 hd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/cinema italia hd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/cinema italia hd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/cinema itv.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/cinema itv.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/cinemafamilyhd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/cinemafamilyhd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/cinemamaniahd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/cinemamaniahd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/classics hd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/classics hd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/deasuper.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/deasuper.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/dovetv.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/dovetv.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/ItalyLogos/logos/TV/logos/italia1 HD.png =================================================================== (Binary files differ) Added: trunk/plugins/ItalyLogos/logos/TV/logos/playhouse +.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/playhouse +.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/premium cinema hd.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/premium cinema hd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/ItalyLogos/logos/TV/logos/rai sport 2.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/ItalyLogos/logos/TV/logos/rai sport 2.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mca...@us...> - 2010-12-31 13:17:43
|
Revision: 4061 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4061&view=rev Author: mcarter2006 Date: 2010-12-31 13:17:37 +0000 (Fri, 31 Dec 2010) Log Message: ----------- Update UK_Logos.mpe1 to 3.0.0.1 Modified Paths: -------------- trunk/plugins/UKTVThumb/Normal/package/UK_Logos.mpe1 trunk/plugins/UKTVThumb/Normal/update.xml Added Paths: ----------- trunk/plugins/UKTVThumb/Normal/logos/tv/Discovery History+1.png trunk/plugins/UKTVThumb/Normal/logos/tv/Discovery History.png Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Discovery History+1.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Discovery History+1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Discovery History.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Discovery History.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/plugins/UKTVThumb/Normal/package/UK_Logos.mpe1 =================================================================== (Binary files differ) Modified: trunk/plugins/UKTVThumb/Normal/update.xml =================================================================== --- trunk/plugins/UKTVThumb/Normal/update.xml 2010-12-31 12:42:02 UTC (rev 4060) +++ trunk/plugins/UKTVThumb/Normal/update.xml 2010-12-31 13:17:37 UTC (rev 4061) @@ -171,5 +171,90 @@ <FolderGroups /> </ProjectSettings> </PackageClass> + <PackageClass> + <Version>2.0</Version> + <Groups> + <Items> + <GroupItem Name="Default"> + <DisplayName>Default</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Default</Description> + <Files> + <Items /> + </Files> + </GroupItem> + </Items> + </Groups> + <Sections> + <Items /> + </Sections> + <Dependencies> + <Items /> + </Dependencies> + <GeneralInfo> + <Name>UK TV & Radio Logos</Name> + <Id>d58b5b32-5611-486f-8e4e-168e5e68229d</Id> + <Author>mcarter2006</Author> + <HomePage /> + <ForumPage>http://forum.team-mediaportal.com/skins-50/uk-tv-radio-logos-87737</ForumPage> + <UpdateUrl>https://mp-plugins.svn.sourceforge.net/svnroot/mp-plugins/trunk/plugins/UKTVThumb/Normal/update.xml</UpdateUrl> + <Version> + <Major>3</Major> + <Minor>0</Minor> + <Build>0</Build> + <Revision>1</Revision> + </Version> + <ExtensionDescription>This pack was originally created and maintained by TritonT. + +In this pack you find a large selection of UK TV and Radio channel logos. If the logo you require isn't in this pack, let me know or create your own. Please if you do make your own logos for a channel remember to share them with the rest of the community on this thread. + +Duplicate logos are included due to different default names on Freeview and FreeToAir. All regional naming variations for BBC and ITV should be included, if I've missed yours let me know. + +Big thanks go to cheetah05 for the template and the core of the Freeview TV logos. Thanks also go to Mew, TritonT and jsimo01 and others.</ExtensionDescription> + <VersionDescription>TV and Radio logos for UK Freeview, Freesat, Sky and Virgin Media.</VersionDescription> + <DevelopmentStatus>Stable</DevelopmentStatus> + <OnlineLocation>https://mp-plugins.svn.sourceforge.net/svnroot/mp-plugins/trunk/plugins/UKTVThumb/Normal/package/UK_Logos.mpe1</OnlineLocation> + <ReleaseDate>2010-12-31T21:46:40</ReleaseDate> + <Tags>logos, thumbs, tv, radio</Tags> + <Location>C:\Users\Matthew\Documents\TV Logos\Logos\mp-plugins\UKTVThumb\Normal\package\UK_Logos.mpe1</Location> + <Params> + <Items> + <SectionParam Name="Icon"> + <Value /> + <ValueType>File</ValueType> + <Description>The icon file of the package (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Online Icon"> + <Value /> + <ValueType>String</ValueType> + <Description>The icon file of the package stored online (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Configuration file"> + <Value /> + <ValueType>Template</ValueType> + <Description>The file used to configure the extension. + If have .exe extension the will be executed + If have .dll extension used like MP plugin configuration</Description> + </SectionParam> + <SectionParam Name="Online Screenshots"> + <Value /> + <ValueType>String</ValueType> + <Description>Online stored screenshot urls separated by ; </Description> + </SectionParam> + <SectionParam Name="Force to uninstall on update"> + <Value>yes</Value> + <ValueType>Bool</ValueType> + <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description> + </SectionParam> + </Items> + </Params> + </GeneralInfo> + <UniqueFileList> + <Items /> + </UniqueFileList> + <ProjectSettings> + <FolderGroups /> + </ProjectSettings> + </PackageClass> </Items> </ExtensionCollection> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mca...@us...> - 2010-12-31 12:42:08
|
Revision: 4060 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4060&view=rev Author: mcarter2006 Date: 2010-12-31 12:42:02 +0000 (Fri, 31 Dec 2010) Log Message: ----------- Added Paths: ----------- trunk/plugins/UKTVThumb/Normal/logos/tv/Alibi+1.png trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtralX.png trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtrlX+1.png trunk/plugins/UKTVThumb/Normal/logos/tv/Sky 3+1.png trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Atlantic HD.png trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Atlantic.png trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Sports HD 4.png trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Sports HD4.png trunk/plugins/UKTVThumb/Normal/logos/tv/Sky3+1.png Removed Paths: ------------- trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtralX - Copy.png trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtrl+1.png Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Alibi+1.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Alibi+1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Deleted: trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtralX - Copy.png =================================================================== (Binary files differ) Added: trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtralX.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtralX.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Deleted: trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtrl+1.png =================================================================== (Binary files differ) Added: trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtrlX+1.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/ComedyCtrlX+1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky 3+1.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky 3+1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Atlantic HD.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Atlantic HD.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Atlantic.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Atlantic.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Sports HD 4.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Sports HD 4.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Sports HD4.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky Sports HD4.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky3+1.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/UKTVThumb/Normal/logos/tv/Sky3+1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mca...@us...> - 2010-12-31 11:43:08
|
Revision: 4059 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4059&view=rev Author: mcarter2006 Date: 2010-12-31 11:43:02 +0000 (Fri, 31 Dec 2010) Log Message: ----------- Release UK_Logos.mpe1 3.0.0.0 Modified Paths: -------------- trunk/plugins/UKTVThumb/Normal/package/UK_Logos.mpe1 trunk/plugins/UKTVThumb/Normal/update.xml Modified: trunk/plugins/UKTVThumb/Normal/package/UK_Logos.mpe1 =================================================================== (Binary files differ) Modified: trunk/plugins/UKTVThumb/Normal/update.xml =================================================================== --- trunk/plugins/UKTVThumb/Normal/update.xml 2010-12-31 11:20:57 UTC (rev 4058) +++ trunk/plugins/UKTVThumb/Normal/update.xml 2010-12-31 11:43:02 UTC (rev 4059) @@ -86,5 +86,90 @@ <FolderGroups /> </ProjectSettings> </PackageClass> + <PackageClass> + <Version>2.0</Version> + <Groups> + <Items> + <GroupItem Name="Default"> + <DisplayName>Default</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Default</Description> + <Files> + <Items /> + </Files> + </GroupItem> + </Items> + </Groups> + <Sections> + <Items /> + </Sections> + <Dependencies> + <Items /> + </Dependencies> + <GeneralInfo> + <Name>UK TV & Radio Logos</Name> + <Id>d58b5b32-5611-486f-8e4e-168e5e68229d</Id> + <Author>mcarter2006</Author> + <HomePage /> + <ForumPage>http://forum.team-mediaportal.com/skins-50/uk-tv-radio-logos-87737</ForumPage> + <UpdateUrl>https://mp-plugins.svn.sourceforge.net/svnroot/mp-plugins/trunk/plugins/UKTVThumb/Normal/update.xml</UpdateUrl> + <Version> + <Major>3</Major> + <Minor>0</Minor> + <Build>0</Build> + <Revision>0</Revision> + </Version> + <ExtensionDescription>This pack was originally created and maintained by TritonT. + +In this pack you find a large selection of UK TV and Radio channel logos. If the logo you require isn't in this pack, let me know or create your own. Please if you do make your own logos for a channel remember to share them with the rest of the community on this thread. + +Duplicate logos are included due to different default names on Freeview and FreeToAir. All regional naming variations for BBC and ITV should be included, if I've missed yours let me know. + +Big thanks go to cheetah05 for the template and the core of the Freeview TV logos. Thanks also go to Mew, TritonT and jsimo01 and others.</ExtensionDescription> + <VersionDescription>TV and Radio logos for UK Freeview, Freesat, Sky and Virgin Media.</VersionDescription> + <DevelopmentStatus>Stable</DevelopmentStatus> + <OnlineLocation>https://mp-plugins.svn.sourceforge.net/svnroot/mp-plugins/trunk/plugins/UKTVThumb/Normal/package/UK_Logos.mpe1</OnlineLocation> + <ReleaseDate>2010-12-31T21:46:40</ReleaseDate> + <Tags>logos, thumbs, tv, radio</Tags> + <Location>C:\Users\Matthew\Documents\TV Logos\Logos\mp-plugins\UKTVThumb\Normal\package\UK_Logos.mpe1</Location> + <Params> + <Items> + <SectionParam Name="Icon"> + <Value /> + <ValueType>File</ValueType> + <Description>The icon file of the package (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Online Icon"> + <Value /> + <ValueType>String</ValueType> + <Description>The icon file of the package stored online (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Configuration file"> + <Value /> + <ValueType>Template</ValueType> + <Description>The file used to configure the extension. + If have .exe extension the will be executed + If have .dll extension used like MP plugin configuration</Description> + </SectionParam> + <SectionParam Name="Online Screenshots"> + <Value /> + <ValueType>String</ValueType> + <Description>Online stored screenshot urls separated by ; </Description> + </SectionParam> + <SectionParam Name="Force to uninstall on update"> + <Value>yes</Value> + <ValueType>Bool</ValueType> + <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description> + </SectionParam> + </Items> + </Params> + </GeneralInfo> + <UniqueFileList> + <Items /> + </UniqueFileList> + <ProjectSettings> + <FolderGroups /> + </ProjectSettings> + </PackageClass> </Items> </ExtensionCollection> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mca...@us...> - 2010-12-31 11:21:04
|
Revision: 4058 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4058&view=rev Author: mcarter2006 Date: 2010-12-31 11:20:57 +0000 (Fri, 31 Dec 2010) Log Message: ----------- Update Men and Movies.png/Men&Movies.png Modified Paths: -------------- trunk/plugins/UKTVThumb/Normal/logos/tv/Men and Movies.png Modified: trunk/plugins/UKTVThumb/Normal/logos/tv/Men and Movies.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |