Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
NoTagPlayer
===========

BB10 Audio playes not using MP3 tags, rather directory tree
BB10 Audio playes not using MP3 tags, rather directory tree

joe test git push.
82 changes: 79 additions & 3 deletions assets/Player.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,35 @@ Page {
title: prettyName
}
*/
keyListeners: [
KeyListener {
onKeyEvent: {
//Perform an action when the signal is emitted
}

onKeyPressed: {
//Perform an action when the signal is emitted
}

onKeyReleased: {
//Perform an action when the signal is emitted
var codeKey = String.fromCharCode(event.key);
console.log("main page KeyListener " + event.key + "(" + codeKey + ")");
switch(codeKey)
{
// Latest
case 'l':
case 'L':
break;
} // switch

// Global - quick quit
if(codeKey == 'x' || codeKey == 'X')
Application.requestExit();
} // onKeyReleased
}
]

id: player
signal deletePlaylistTab(int playlist_id);
signal playbackStatusChanged(bool is_playing);
Expand Down Expand Up @@ -222,6 +251,14 @@ Page {
}
imageSource: "asset:///images/ic_back.png"
ActionBar.placement: ActionBarPlacement.OnBar
shortcuts: [
SystemShortcut {
type: SystemShortcuts.PreviousSection
onTriggered: {
console.log("SystemShortcuts.NextSection --- next page")
}
}
]
},
ActionItem {
id: actPlay
Expand All @@ -233,14 +270,30 @@ Page {
play(audioPlayer.isPlaying);
}
ActionBar.placement: ActionBarPlacement.OnBar
},
shortcuts: [
Shortcut {
key: "Space"
onTriggered: {

}
}
]
},
ActionItem {
title: qsTr("Forward")
onTriggered: {
forward(true);
}
imageSource: "asset:///images/ic_next.png"
ActionBar.placement: ActionBarPlacement.OnBar
shortcuts: [
SystemShortcut {
type: SystemShortcuts.NextSection
onTriggered: {
console.log("SystemShortcuts.NextSection --- next page")
}
}
]
},
ActionItem {
title: qsTr("Shuffle")
Expand Down Expand Up @@ -411,8 +464,31 @@ Page {
SystemToast {
id: moveTrackToast
body: qsTr("Tap on track to move after.")
}

},
MediaKeyWatcher {
id: keyWatcherUp
key: MediaKey.VolumeUp
onLongPress: {
console.log("UP onLongPress");
forward(true);
}
},
MediaKeyWatcher {
id: keyWatcherDown
key: MediaKey.VolumeDown
onLongPress: {
console.log("DOWN onLongPress");
backward();
}
},
MediaKeyWatcher {
id: keyWatcherPlayPause
key: MediaKey.PlayPause
onShortPress: {
console.log("PLAY/PAUSE onShortPress");
play(audioPlayer.isPlaying);
}
}
]

function appendToPlayList(file_infos)
Expand Down
2 changes: 1 addition & 1 deletion bar-descriptor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
An updated version of application must have a versionNumber value higher than the previous version. Required. -->
<versionNumber>1.0.12</versionNumber>
<versionNumber>1.0.14</versionNumber>

<!-- Fourth digit segment of the package version. First three segments are taken from the
<versionNumber> element. Must be an integer from 0 to 2^16-1 -->
Expand Down
2 changes: 2 additions & 0 deletions src/applicationui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <bb/device/DisplayInfo>
#include <bbndk.h>

#include <bb/multimedia/MediaState>

#include <QStringBuilder>
#include <QMetaType>
#include <QTimer>
Expand Down
56 changes: 28 additions & 28 deletions translations/notagplayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,92 +155,92 @@
<context>
<name>Player</name>
<message>
<location filename="../assets/Player.qml" line="228"/>
<source>Pause</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="228"/>
<source>Play</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="148"/>
<location filename="../assets/Player.qml" line="177"/>
<source>Playlist actions</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="150"/>
<location filename="../assets/Player.qml" line="179"/>
<source>Edit track</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="178"/>
<location filename="../assets/Player.qml" line="207"/>
<source>Move track</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="188"/>
<location filename="../assets/Player.qml" line="217"/>
<source>Shift track after current</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="196"/>
<location filename="../assets/Player.qml" line="225"/>
<source>Scroll to the played track</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="205"/>
<location filename="../assets/Player.qml" line="234"/>
<source>Remove track</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="219"/>
<location filename="../assets/Player.qml" line="248"/>
<source>Backward</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="238"/>
<location filename="../assets/Player.qml" line="265"/>
<source>Pause</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="265"/>
<source>Play</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="283"/>
<source>Forward</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="246"/>
<location filename="../assets/Player.qml" line="299"/>
<source>Shuffle</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="254"/>
<location filename="../assets/Player.qml" line="307"/>
<source>Add files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="263"/>
<location filename="../assets/Player.qml" line="316"/>
<source>Add URI</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="285"/>
<location filename="../assets/Player.qml" line="338"/>
<source>Edit playlist properties</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="307"/>
<location filename="../assets/Player.qml" line="360"/>
<source>Delete playlist tab</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="319"/>
<source>Clear play list</source>
<location filename="../assets/Player.qml" line="363"/>
<source>Realy delete current playlist tab?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="310"/>
<source>Realy delete current playlist tab?</source>
<location filename="../assets/Player.qml" line="372"/>
<source>Clear play list</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/Player.qml" line="413"/>
<location filename="../assets/Player.qml" line="466"/>
<source>Tap on track to move after.</source>
<translation type="unfinished"></translation>
</message>
Expand Down