Marco Castelluccio
2605d35a5a
Show the getUserMedia camera stream when a MIDlet opens a capture://image media element
2014-11-25 17:01:59 +01:00
Marco Castelluccio
328cba1190
Fix recently landed AudioRecorder
2014-11-24 12:44:49 +01:00
Marco Castelluccio
ce14a6bf0b
Merge branch 'master' of https://github.com/andreasgal/j2me.js into pipe_postMessage
2014-11-24 12:40:11 +01:00
Myk Melez
01399432a6
make close and flush synchronous
2014-11-24 01:49:56 -08:00
Pin Zhang
c04486a44e
Fix the timing issue when media permission prompt is not disabled.
...
Also add audio-capture to permissions of manifest.webapp.
2014-11-24 14:02:38 +08:00
Pin Zhang
137be70042
Implement audio capture api
2014-11-24 13:54:02 +08:00
Marco Castelluccio
7513b53479
Cleanup in this.socket.ondata
2014-11-24 02:29:37 +01:00
Marco Castelluccio
a875b3ac0f
Use postMessage to communicate from parent to child. Fixes #532
2014-11-24 02:19:26 +01:00
Myk Melez
3ceeead645
implement fs memory cache; make FCOutputStream.closeImpl/syncImpl synchronous
2014-11-23 16:59:08 -08:00
Myk Melez
85511ade61
set com.nokia.mid.imei to the empty string
2014-11-22 16:45:06 -08:00
Marco Castelluccio
815ac7e0f7
Improve warning message when a media format isn't supported
2014-11-22 18:02:59 +01:00
Marco Castelluccio
1bdd228c59
Use correct encoding
2014-11-21 21:28:29 +01:00
Marco Castelluccio
c92f65afad
Log that numberOfSegments0 is just a stub
2014-11-21 20:35:26 +01:00
Marco Castelluccio
04084da03e
Merge branch 'master' of https://github.com/andreasgal/j2me.js into support_sending_sms_messages
2014-11-20 23:29:37 +01:00
Marco Castelluccio
dbee842cec
Prompt for received SMS messages in receive0 instead of open0
2014-11-20 22:52:16 +01:00
Marco Castelluccio
77b33ba22a
Support sending SMS messages via a WebActivity. Fixes #628
2014-11-20 22:49:52 +01:00
Marco Castelluccio
868897c802
getNext contact if contact is not null and is numberless
2014-11-20 02:07:20 +01:00
Marco Castelluccio
daf72f9fae
Add missing parenthesis
2014-11-20 02:01:05 +01:00
Marco Castelluccio
6a6306355f
Send 'entry not found' only when the contact list ends
2014-11-20 01:56:55 +01:00
Marco Castelluccio
7fb39cba43
Don't send numberless contacts (nokia.contacts localmsg server)
2014-11-20 01:49:01 +01:00
Marco Castelluccio
6f8b9b6c4c
Don't encode telephone numbers if a contact doesn't have any number
2014-11-20 01:12:47 +01:00
Myk Melez
71914dbc0e
Merge pull request #621 from marco-c/remove_file_classes_from_custom
...
Move FileSystemListener from custom/ to midp/
2014-11-19 15:28:42 -08:00
Myk Melez
f3d734f2bd
Merge pull request #617 from marco-c/support_adding_contacts
...
Support adding contacts
2014-11-19 15:25:08 -08:00
Marco Castelluccio
4028c7a113
Implement FileSystemRegistry::getRootsImpl native
2014-11-19 15:45:21 +01:00
Myk Melez
915f028465
Merge pull request #616 from marco-c/add_accept_property
...
Filter files in nokia.file-ui
2014-11-18 15:48:54 -08:00
Marco Castelluccio
acd46e9e6b
CldcPlatformRequest::dispatchPlatformRequest should return false (because the MIDlet doesn't need to exit)
2014-11-18 23:54:36 +01:00
Marco Castelluccio
d9682e8506
Use WebActivity to handle adding contacts. Fixes #564 .
2014-11-18 23:53:23 +01:00
Marco Castelluccio
5767ad7995
Set file input accept property according to the requested media type
2014-11-18 23:01:41 +01:00
Marco Castelluccio
db84d28dcf
Merge branch 'master' of https://github.com/andreasgal/j2me.js into media_imageplayer
...
Conflicts:
tests/automation.js
2014-11-18 09:48:05 +01:00
Tim Abraldes
9671f42d61
Merge branch 'master' of https://github.com/andreasgal/j2me.js into keyboardimpl
...
Conflicts:
tests/automation.js
2014-11-17 16:44:24 -08:00
Brendan Dahl
9e1924cb81
Resolve merge conflicts.
2014-11-17 15:58:56 -08:00
Marco Castelluccio
da55bf603e
Fix typo
2014-11-18 00:24:43 +01:00
Marco Castelluccio
f5227bee42
Add image/jpeg and image/png to the list of supported content types
2014-11-17 13:05:16 +01:00
Marco Castelluccio
4278b460a3
Fix isVolumeControlSupported variable name
2014-11-17 12:58:55 +01:00
Marco Castelluccio
116d59a7eb
Make Java handle the download of the resource if the URL is null
2014-11-17 12:58:17 +01:00
Marco Castelluccio
9b0f763077
Infer media format from content type
2014-11-17 12:57:22 +01:00
Marco Castelluccio
729e3654ed
Don't fail if the player is closed before the image is added to the DOM
2014-11-17 01:50:38 +01:00
Marco Castelluccio
b810be4771
Move isVolumeControlSupported and isVideoControlSupported in the *Player classes
2014-11-17 00:58:44 +01:00
Marco Castelluccio
c3cb989db2
Support PNG images too
2014-11-17 00:55:32 +01:00
Marco Castelluccio
fb82de6d9e
Close player only if a player has been created
2014-11-17 00:53:38 +01:00
Marco Castelluccio
76ee29d971
Rename Player to PlayerContainer
2014-11-17 00:52:18 +01:00
Marco Castelluccio
57740b8ab4
Store all the global objects in a Media object to avoid polluting the namespace
2014-11-17 00:48:47 +01:00
Marco Castelluccio
9467d9fb4e
Implement getWidth,getHeight,setLocation,setVisible natives. Fixes #361 .
2014-11-17 00:41:48 +01:00
Marco Castelluccio
285dfc0dd5
Implement ImagePlayer for showing images
2014-11-17 00:40:31 +01:00
Marco Castelluccio
21e5973901
Don't try to infer the media format from the content only if contentSize is 0
2014-11-17 00:38:07 +01:00
Marco Castelluccio
4a7fa31dc2
Implement nGetContentType native
2014-11-17 00:37:02 +01:00
Marco Castelluccio
82e154228d
Make the nNeedMoreDataImmediatelly message a warning instead of an error
2014-11-17 00:36:09 +01:00
Marco Castelluccio
dd7d7b81cc
Split audio player logic into its own class
2014-11-17 00:35:28 +01:00
Marco Castelluccio
841a9d936d
Implement isVideoControlSupported native
2014-11-17 00:31:33 +01:00
Marco Castelluccio
e8b64786b1
Add jpg and jpeg to the extToFormat map
2014-11-17 00:29:19 +01:00
Marco Castelluccio
7c88f32adf
Return true in isVolumeControlSupported if media format is 'MPEG_layer_3'
2014-11-15 16:34:03 +01:00
Marco Castelluccio
dc9609ebc9
Add audio/mpeg to the list of supported content types
2014-11-15 16:32:32 +01:00
Marco Castelluccio
b343baf9ff
Print the className as a JS string instead of a Java class in checkInByMidlet0
2014-11-15 16:27:42 +01:00
Marco Castelluccio
c5a1db6d61
Define extToFormat outside guessFormatFromURL
2014-11-14 23:44:27 +01:00
Marco Castelluccio
8f15bd1a2c
Guess format from URL in the Player constructor
2014-11-14 20:09:30 +01:00
Myk Melez
8aa09356b3
Merge pull request #594 from marco-c/Player_getMediaFormat
...
getMediaFormat should return UNKNOWN if the url is null or if the conten...
2014-11-14 10:44:26 -08:00
Marco Castelluccio
189f7e9438
getMediaFormat should return UNKNOWN if the url is null or if the contentSize is 0. Fixes #590 .
2014-11-14 19:12:18 +01:00
Marco Castelluccio
4bbd508fbe
nSetWholeContentSize second parameter is a long
2014-11-14 18:46:38 +01:00
Yuan Xulei
7e90108522
Simplify the logical of ListCache.
2014-11-14 11:29:01 +08:00
Yuan Xulei
9a72349c84
Fix typos.
2014-11-14 11:29:01 +08:00
Yuan Xulei
b78eb9a688
Add stub native methods of nSwitchToForeground and nSwitchToBackground.
2014-11-14 11:29:00 +08:00
Yuan Xulei
febe75cd7c
Setting mute on and off doesn't change volume level returned by getLevel.
2014-11-14 11:29:00 +08:00
Yuan Xulei
db9e77d94e
Support pausing and resuming audio playing.
2014-11-14 11:29:00 +08:00
Yuan Xulei
8208948737
implement getMediaTime.
2014-11-14 11:29:00 +08:00
Yuan Xulei
fa729f3b9b
Properly close the audio playing.
2014-11-14 11:29:00 +08:00
Yuan Xulei
d2d4ac64d1
Fix meida format issue.
2014-11-14 11:28:58 +08:00
Yuan Xulei
647a47be2b
Implement the native methods of volume control for DirectVolume
2014-11-14 11:28:07 +08:00
Yuan Xulei
418d9d74b9
Don't decode the audio buffer without data.
2014-11-14 11:26:40 +08:00
Yuan Xulei
a6c17eb729
Add wav audio player.
2014-11-14 11:26:36 +08:00
Yuan Xulei
32cd95e439
Implement some native methods under com/sum/mmedia
2014-11-14 11:04:17 +08:00
Yuan Xulei
ee2df44a20
Implement native method to enumerate content types for com.sun.mmedia.DefaultConfiguration.
2014-11-14 11:04:17 +08:00
Tim Abraldes
9d6491a134
Remove superfluous console logging
2014-11-12 12:14:06 -08:00
Tim Abraldes
b3483a3692
Implement various `VirtualKeyboard` methods
...
Implements:
VirtualKeyboard.isVisible
VirtualKeyboard.getXPosition
VirtualKeyboard.getYPosition
VirtualKeyboard.getWidth
VirtualKeyboard.getHeight
VirtualKeyboard.setVisibilityListener
Also updates the documentation of a couple of classes
2014-11-12 11:49:43 -08:00
Marco Castelluccio
9b972134ca
Implement Graphics::drawSubstring native
2014-11-12 18:48:43 +01:00
Pin Zhang
dc15489c1a
Move libs/text_editor.js to midp/text_editor.js
2014-11-12 18:44:32 +08:00
Pin Zhang
742ea6d38f
Fixed regression: the caret position lost.
...
caret position is lost in the case:
- Edit TEXTAREA field, input some character
- Edit PASSWORD field
- Edit TEXTAREA field again, the caret lost.
2014-11-12 18:44:32 +08:00
Pin Zhang
2a97cec733
Implement password editor.
2014-11-12 18:44:32 +08:00
Marco
5fa9a64432
Merge pull request #559 from PinZhang/pzhang/texteditor-focus-issue
...
Fix LWUIT text editor focus issue.
2014-11-12 11:00:57 +01:00
Pin Zhang
c81521a90d
Fix LWUIT key release issue.
...
`com.sun.lwuit.Display.keyReleased` is never been called which causes
`com.sun.lwuit.Form.keyRepeated` is invoked repeately.
2014-11-12 15:22:03 +08:00
Pin Zhang
b1eb31db2c
Fix LWUIT text editor focus issue.
...
We need to click twice to focus the text editor, because setVisible()
is called after setFocus().
2014-11-12 10:04:25 +08:00
Marco Castelluccio
0c0c4136e8
Merge branch 'master' of https://github.com/andreasgal/j2me.js into pimproxy_natives
2014-11-11 22:19:46 +01:00
Marco Castelluccio
f171dca902
Disable opening PIM list in write mode (because it hasn't been implemented yet)
2014-11-11 13:33:06 +01:00
Marco Castelluccio
06f88cd5dd
Fix warning messages in incomplete natives; create an array of supported fields instead of hardcoding them in the getFieldsCount and getFields natives
2014-11-11 13:19:44 +01:00
Marco Castelluccio
9c9ea737d5
Remove logging statement; update number of passing tests
2014-11-11 00:00:30 +01:00
Marco Castelluccio
8302fc3233
Add other fields to the supported fields list; support listOpen and listClose natives; support natives to get contacts as vcards
2014-11-10 23:18:16 +01:00
Myk Melez
509f6d184e
Merge pull request #554 from marco-c/locktopartialview
...
Enable image.processing to work also if aspect is "LockToPartialView"
2014-11-08 13:46:24 -08:00
Myk Melez
a66d43c9d2
Merge pull request #553 from EricRahm/issue_388
...
Switch to |fs.close| calling |fs.flush|
2014-11-08 13:45:24 -08:00
Marco Castelluccio
c213cfe730
Implement other PIM natives
2014-11-08 18:01:12 +01:00
Marco Castelluccio
a22d7763ee
Add other stub natives
2014-11-08 17:19:24 +01:00
Marco Castelluccio
26bc1f9702
Update nokia.image-processing Scale error message
2014-11-07 22:27:58 +01:00
Eric Rahm
24f8fb439a
File.Connection.truncateImpl should use size param
...
|fs.truncate| is too simple for this case, we need to use |fs.ftruncate|
like it was originally using.
2014-11-07 09:34:18 -08:00
Myk Melez
94e7a0957a
Merge pull request #546 from PinZhang/pzhang/texteditor-position
...
Fix TextEditor position issue.
2014-11-07 08:34:02 -08:00
Marco Castelluccio
fa6375da0d
WIP PIM natives
2014-11-07 11:08:53 +01:00
Marco Castelluccio
7a8c5165b7
Enable image.processing to work also if aspect is "LockToPartialView"
2014-11-07 10:39:55 +01:00
Pin Zhang
ddcfb6e3f7
Fix TextEditor position issue.
...
When using LWUIT library, the position of TextEditor set by TextField
is incorrect when the TITLE_LAYER of MIDPWindow is shown.
2014-11-07 13:55:23 +08:00
Eric Rahm
3f8cee9756
Switch to |fs.close| calling |fs.flush|
...
Issue #388 .
- Adds a dirty flag to our FD, updates it on write/truncate/flush
- Only flush if the dirty flag is set
- |fs.close| calls flush
2014-11-06 18:08:12 -08:00
Myk Melez
0796ec4f26
Merge pull request #547 from marco-c/getFirst_getNext
...
Implement getFirst and getNext methods for nokia.contacts
2014-11-06 17:37:16 -08:00
Marco Castelluccio
acb44691fb
Send only the first 30 characters of the contact ID, because some MIDlets only accept contact IDs that are long less than 30 characters
2014-11-07 02:06:37 +01:00
Marcus Cavanaugh
7cf675802d
Enhance tap support with mouse/pointer events and a threshold.
2014-11-06 16:33:03 -08:00
Marco Castelluccio
9f6e0dc645
Implement getFirst and getNext. Fixes #517 .
2014-11-06 19:06:57 +01:00