http://wiki.webos-internals.org/index.php?title=Patch_MediaPlayer_Bookmarking&feed=atom&action=historyPatch MediaPlayer Bookmarking - Revision history2024-03-29T06:20:30ZRevision history for this page on the wikiMediaWiki 1.35.1http://wiki.webos-internals.org/index.php?title=Patch_MediaPlayer_Bookmarking&diff=3495&oldid=prevHopspitfire at 23:14, 2 August 20092009-08-02T23:14:50Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:14, 2 August 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{template:patch}}</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:Bookmark-mediaplayer.jpg|right]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:Bookmark-mediaplayer.jpg|right]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Motivation=</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Motivation=</div></td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_MediaPlayer_Bookmarking&diff=3357&oldid=prevHopspitfire: Bookmarking MediaPlayer moved to Patch MediaPlayer Bookmarking: app specific patch2009-08-01T06:20:53Z<p><a href="/wiki/Bookmarking_MediaPlayer" class="mw-redirect" title="Bookmarking MediaPlayer">Bookmarking MediaPlayer</a> moved to <a href="/wiki/Patch_MediaPlayer_Bookmarking" title="Patch MediaPlayer Bookmarking">Patch MediaPlayer Bookmarking</a>: app specific patch</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 06:20, 1 August 2009</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_MediaPlayer_Bookmarking&diff=1828&oldid=prevTemplarian: fixed link2009-07-23T13:47:04Z<p>fixed link</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:47, 23 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l38" >Line 38:</td>
<td colspan="2" class="diff-lineno">Line 38:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Installation=</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Installation=</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>This mod, and hopefully many more in the future can be installed using the instructions found on [[Applying <del class="diffchange diffchange-inline">patches</del>]]. Please follow the instructions there and choose the '''/opt/src/modifications/musicplayer/bookmark.patch'''</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>This mod, and hopefully many more in the future can be installed using the instructions found on [[Applying <ins class="diffchange diffchange-inline">Patches</ins>]]. Please follow the instructions there and choose the '''/opt/src/modifications/musicplayer/bookmark.patch'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>verified to work as written by optik678</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>verified to work as written by optik678</div></td></tr>
</table>Templarianhttp://wiki.webos-internals.org/index.php?title=Patch_MediaPlayer_Bookmarking&diff=978&oldid=prevHopspitfire at 18:11, 20 July 20092009-07-20T18:11:32Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:11, 20 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[<del class="diffchange diffchange-inline">http</del>:<del class="diffchange diffchange-inline">//i39.tinypic.com/29z97jn</del>.jpg <del class="diffchange diffchange-inline">Preview Image</del>]]</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[<ins class="diffchange diffchange-inline">Image</ins>:<ins class="diffchange diffchange-inline">Bookmark-mediaplayer</ins>.jpg<ins class="diffchange diffchange-inline">|right</ins>]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Motivation=</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Motivation=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_MediaPlayer_Bookmarking&diff=919&oldid=prevHopspitfire at 17:37, 20 July 20092009-07-20T17:37:36Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:37, 20 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l41" >Line 41:</td>
<td colspan="2" class="diff-lineno">Line 41:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>verified to work as written by optik678</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>verified to work as written by optik678</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">''Ported by hopspitfire''</del></div></td><td colspan="2"> </td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_MediaPlayer_Bookmarking&diff=888&oldid=prevHopspitfire: New page: http://i39.tinypic.com/29z97jn.jpg Preview Image =Motivation= There are fields in the '''/var/luna/data/mediadb.db3''' file that seem to indicate that Palm intends to have the current...2009-07-20T16:37:17Z<p>New page: <a href="/index.php?title=Http://i39.tinypic.com/29z97jn.jpg_Preview_Image&action=edit&redlink=1" class="new" title="Http://i39.tinypic.com/29z97jn.jpg Preview Image (page does not exist)">http://i39.tinypic.com/29z97jn.jpg Preview Image</a> =Motivation= There are fields in the '''/var/luna/data/mediadb.db3''' file that seem to indicate that Palm intends to have the current...</p>
<p><b>New page</b></p><div>[[http://i39.tinypic.com/29z97jn.jpg Preview Image]]<br />
=Motivation=<br />
<br />
There are fields in the '''/var/luna/data/mediadb.db3''' file that seem to indicate that Palm intends to have the current song in a playlist, as well as the current position within a song bookmarked. However, that is not implemented yet (ARGH). This is torture for podcast listeners. After reading the chapter on cookies in the rough cuts book, I thought it would be relatively straightforward to add some cookie code into the MediaPlayer to support bookmarks.<br />
<br />
The source for the musicplayer is in '''/usr/palm/applications/com.palm.app.musicplayer/'''. You should follow the steps in [[stock-application-mods]] to ensure you have a copy of the original MusicPlayer. Go ahead and make changes to the original once you have a backup. If you make changes to a copied application, the dashboard won't call the proper application without further changes (that I didn't feel like tracking down).<br />
<br />
= Changed behaviour=<br />
A bookmark is now created when you do any of the following functions outside the first 15 seconds of a song:<br />
* pause<br />
* hit "next" ''1''<br />
* hit "previous" ''2''<br />
* shutdown the player<br />
* jump/swipe/browse to another song<br />
* '''NOTE:''' Playback does NOT automatically resume at the bookmark. You must hit "next" to skip ahead to the bookmark. I didn't want to change the default functionality of the player that much, so this was the best I could come up with.<br />
<br />
''1''Hitting "next" when you are before a bookmark will take you to that bookmark.<br />
''2''Hitting "prev" when in the first 4 seconds of a song takes you to the previous song. Outside that range will take you to the beginning of the song. This is stock behavior. The modification is to record a bookmark before taking you to the beginning of the song.<br />
<br />
Only one bookmark will be retained per song, and they will never be removed. There is no ability to clear a bookmark. When you finish a song, a cookie is created at the end of the song. This is relatively useless, but at least this will make the "next" button basically take you to the next song. Bookmarks are stored as cookies. To see all the cookies generated, run <br />
<br />
<pre><nowiki><br />
sqlite3 /var/palm/data/cookies.db "select name, value from Cookies where name like '%musicplayer.bookmark.song%'"<br />
</nowiki></pre><br />
<br />
To remove all bookmark cookies, run<br />
<br />
<pre><nowiki><br />
sqlite3 /var/palm/data/cookies.db "delete from Cookies where name like '%musicplayer.bookmark.song%'"<br />
</nowiki></pre><br />
<br />
= Screenshot details=<br />
<br />
* PalmCast is finished<br />
* ITC is currently playing and has a bookmark in it<br />
* Java Posse has a bookmark, but is not currently playing<br />
* TWiT is finished<br />
<br />
= Installation=<br />
This mod, and hopefully many more in the future can be installed using the instructions found on [[Applying patches]]. Please follow the instructions there and choose the '''/opt/src/modifications/musicplayer/bookmark.patch'''<br />
<br />
verified to work as written by optik678<br />
<br />
''Ported by hopspitfire''</div>Hopspitfire