Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

011018_843AM_addingChangesFromCn1Repository #18

Merged
merged 217 commits into from
Oct 1, 2018
Merged
Changes from 1 commit
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
4f8ddce
Updated version
shai-almog Jun 26, 2018
4661ead
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Jun 26, 2018
e01cfa7
Made 0 length files possible in iOS
shai-almog Jun 26, 2018
eb681d2
Fixed regression in Android push notifications when app is not runnin…
shannah Jun 26, 2018
a3a70fa
Added initial support for rich push notifications. This commit inclu…
shannah Jun 28, 2018
51792e2
Updated version number
shai-almog Jun 29, 2018
b3db2be
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Jun 29, 2018
89eede0
Made analytics use app mode by default
shai-almog Jun 30, 2018
dbabe6b
Fixed a bug where showing the InteractionDialog twice caused the seco…
shai-almog Jul 1, 2018
db12e1f
Changes to remove the dependency on the old app engine servers
shai-almog Jul 1, 2018
b9acea2
Initial support for actions in push notifications. This commit adds …
shannah Jul 3, 2018
911c52f
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 3, 2018
d582a10
Added support for the FileChooser.setOpenFilesInPlace() method, which…
shannah Jul 3, 2018
2a7b524
Added support for push notification actions in Android. Requires for…
shannah Jul 4, 2018
4e38305
Added wrapper method to support previous method signature so that uni…
shannah Jul 4, 2018
069a86f
Tuned log and removed the old "out of date" logging
shai-almog Jul 5, 2018
71abfb0
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Jul 5, 2018
60369a3
Added support for options.frameworks system property that takes a sem…
shannah Jul 6, 2018
f8fd19d
Fixed some inconsistencies in how pushes are routed to the push callb…
shannah Jul 6, 2018
ab02d74
Fixed regression that caused iOS builds to fail when push notificatio…
shannah Jul 6, 2018
4623b11
Fixed #2471 (hopefully) exception when animating the component.
shai-almog Jul 8, 2018
b943878
Added fix for test commands where the text is uppercased in Android
shai-almog Jul 10, 2018
8dfd57d
Added StubUtil which is used as a minimal decoupling bridge for the F…
shannah Jul 10, 2018
062f2fd
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 10, 2018
23b6754
Fixed issue with simulator media not setting playing to false after c…
shannah Jul 11, 2018
f1422d3
Added some infrastructure for iOS password manager/autofill support. …
shannah Jul 11, 2018
fa5c77f
Added StringBuilder.append(StringBuffer)
shannah Jul 11, 2018
c810d23
Implement this RFE: https://github.com/codenameone/CodenameOne/issues…
Jul 12, 2018
93c139b
(Removed lambda expression)
Jul 12, 2018
3ac375d
(Removed another lambda expression)
Jul 12, 2018
fe5eb68
(Some variables declared final)
Jul 12, 2018
5014017
Merge pull request #2475 from jsfan3/master
shai-almog Jul 12, 2018
a7c4f41
Fixed side swipe behavior when editing and added ability to disable s…
shai-almog Jul 12, 2018
b955ec6
Added ability to force landscape/portarit to the test runner
shai-almog Jul 12, 2018
2a88ffb
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Jul 12, 2018
046d943
Fixed issue with LocalNotification not working on Android 7 due to no…
shannah Jul 12, 2018
65a416b
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 12, 2018
4c2c3ae
Action events in TextAreas and TextFields are now fired in focus lost…
shannah Jul 12, 2018
4a504e4
Added jaxb dependencies to designer which are now necessary for java 9
shannah Jul 13, 2018
d63a200
Added the theme constant lightweightPickerBool that forces lightweigh…
shai-almog Jul 15, 2018
0b1ef86
Fixed regression because of this pull request https://github.com/code…
shai-almog Jul 17, 2018
9d868f2
Fixed issues with clipping in UWP port. Previously, clipping complet…
shannah Jul 18, 2018
853fd8b
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 18, 2018
c937bac
Merge branch 'master' of https://github.com/codenameone/CodenameOne i…
shannah Jul 18, 2018
01d94be
Added ability to override PickerButtonBar style with PickerButtonBarN…
shannah Jul 18, 2018
52796c8
Added ability to override PickerButtonBar style with PickerButtonBarN…
shannah Jul 18, 2018
110fc6c
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 18, 2018
1c3e6f1
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 18, 2018
0782af5
Fixed performance regression from last clipping changes https://githu…
shannah Jul 18, 2018
3322dea
Added UWP Desktop Skin option in simulator to be able to see what a U…
shannah Jul 18, 2018
6367057
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 18, 2018
86fea99
Added ability to show search bar manually
shai-almog Jul 19, 2018
994a369
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Jul 19, 2018
59984d0
Workaround for potential issue mentioned here https://stackoverflow.c…
shai-almog Jul 19, 2018
3d985b8
Added pointerPressedListener to forms for textareas and textfields to…
shannah Jul 19, 2018
fec7828
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 19, 2018
f63ff74
Removed debugging code
shannah Jul 19, 2018
143c97d
TextFields now request focus when editString() is called on them. Th…
shannah Jul 19, 2018
38ab85e
Fixed time picker so that is shows 12:00am instead of 00:00am. Fixes…
shannah Jul 19, 2018
c67824e
Fixed issue with content pane adding space at top after picker is dis…
shannah Jul 19, 2018
f55d359
Added winTheme changes to UWP port for improvements to picker theme. …
shannah Jul 23, 2018
e46121e
Fixed issue with scroll position of containers being incorrect after …
shannah Jul 24, 2018
adae329
Resolved merge conflicts .. merging with master.
shannah Jul 24, 2018
5bd6b2d
Removed use of eawt APIs for Mac desktop and changed to standard Desk…
shannah Jul 24, 2018
5916f00
Increased source level to 1.6 to allow building on jdk9
shannah Jul 25, 2018
9c6ecf6
Increased source level of CLDC11 to 1.6 to allow building on jdk9
shannah Jul 25, 2018
49f30fb
Added core-src target to build the CodenameOne_SRC.zip file.
shannah Jul 25, 2018
0e4e05e
Added JavaFX runtime loader and fixed a few unit tests for JDK11 supp…
shannah Jul 27, 2018
787a5e7
Added jdk11 tests to travis
shannah Jul 27, 2018
f03d7d7
Fixed issue with downloading JavaFX when .codenameone directory doesn…
shannah Jul 27, 2018
5c61255
Added open and oracle JDKs to travis tests from JDK 8 right up to JDK…
shannah Jul 27, 2018
06b83d1
Removed early access travis tests. They require Java source level of…
shannah Jul 27, 2018
8017b33
Removed openjdk8 and openjdk9 travis tests because the JavaFX version…
shannah Jul 27, 2018
e5ab05c
Fixed classpath for builds
shannah Jul 27, 2018
a09fbde
Added clarification based on request in #2485
shai-almog Jul 27, 2018
7830ac5
Fixed issues with ResourceEditor in jdk11. Resource Editor works in …
shannah Jul 27, 2018
03f82ec
Fixed picker issue where set type caused a reset of a valid array as …
shai-almog Jul 28, 2018
7162906
Updated version
shai-almog Jul 28, 2018
9b22709
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Jul 28, 2018
dc4edc2
A shot in the dark guess about fixing #2486 I'm not sure how this wou…
shai-almog Jul 30, 2018
e033248
Fixed issue with action events not being fired on Android when the Ne…
shannah Jul 30, 2018
c434f9b
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Jul 30, 2018
1746d78
Added support for Graphics.clearRect. https://github.com/codenameone…
shannah Jul 30, 2018
c97cf4f
Attempt to fix this issue http://disq.us/p/1ud7a2d where a single tap…
shai-almog Jul 31, 2018
690152d
Removed the error dialog on devices so users don't run into it...
shai-almog Jul 31, 2018
a8ba045
Fixed for race conditions when asking for permissions followed by sta…
shannah Jul 31, 2018
fa51219
Added missing fields to Calendar in CLDC11. https://github.com/coden…
shannah Jul 31, 2018
fad252c
Fixed issue with setScrollOffUponContentPane initially moving toolbar…
shannah Jul 31, 2018
70fe8c2
Changed default skin to iPhoneX. https://github.com/codenameone/Code…
shannah Aug 1, 2018
06ec321
Fixed toolbar showing/hiding during scrolling. https://github.com/co…
shannah Aug 1, 2018
ad15853
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Aug 2, 2018
865ba57
Added support for minuteStep in iOS picker for DATETIME picker. http…
shannah Aug 2, 2018
8624bd3
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 2, 2018
a9dfcb9
Added support for text responses in push notifications on iOS. https…
shannah Aug 2, 2018
24916e0
Commit necessary for latest push changes in ios.
shannah Aug 3, 2018
c76ad2e
Some property types were missing. Improved the logic of the equals me…
shai-almog Aug 7, 2018
224dcdc
Fixed #2493 which is really a bug
shai-almog Aug 7, 2018
e020206
Fix for null pointer exception mentioned in this stack overflow threa…
shai-almog Aug 7, 2018
9646458
Made toIntValue more robust and consistent
shai-almog Aug 7, 2018
6b80791
Added iOS theme to the JavaSE Port
shai-almog Aug 7, 2018
56e9df3
Fixed issue with skins being too small on retina display.
shannah Aug 7, 2018
cc9fcda
CSS compiler improvements. WebView window is now disposed when it is…
shannah Aug 7, 2018
ad0d717
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 7, 2018
ac9447b
Fixed alignment issue in text component layout on iOS
shai-almog Aug 7, 2018
10a8c21
Disabled polling push fallback on non-android-market devices
shannah Aug 8, 2018
0c40761
Fixed NPE in LayeredLayout.getPreferredSize
shannah Aug 8, 2018
28f8574
Fixed issue with flooding the world with focus events when removing c…
shannah Aug 8, 2018
ae3dbe0
Fixed #2351 added a new way to express the maximum font size for auto…
shai-almog Aug 9, 2018
25c224f
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Aug 9, 2018
f5918d8
Fixed #2498 removed what is probably debug code
shai-almog Aug 10, 2018
c595edb
Added table binding initial support
shai-almog Aug 10, 2018
2ab32db
Improved the UI binding support for table model
shai-almog Aug 10, 2018
84ba971
Fixed #2387 this is a special case for hiding when the form isn't vi…
shai-almog Aug 10, 2018
c7a5fd2
Fixed fillRect with alpha to respect x and y translation of graphics …
shannah Aug 10, 2018
ad5d8ad
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 10, 2018
74d233f
Attempt to fix change in travis environment for Android API 17.
shannah Aug 10, 2018
c9ee263
Reverted last change. Travis seems to be playing with the android de…
shannah Aug 10, 2018
6167f70
Disabled android tests except for API 21 in travis because travis see…
shannah Aug 10, 2018
32aeaaa
Fixed #2500 the call to setValueAt used getModel(). That call returns…
shai-almog Aug 11, 2018
c9dbe5f
Fixed #2370 better error handling for the Rest API
shai-almog Aug 12, 2018
664e764
Fixed #2481 a system for customizing Map/JSON generation
shai-almog Aug 12, 2018
4c956d1
Added bearer API
shai-almog Aug 12, 2018
eacded0
Fixed #2503 conflict between column order & set editable
shai-almog Aug 13, 2018
a8f115b
Fixed #2504 null pointer exception due to map adapter
shai-almog Aug 13, 2018
a80588b
Initial work on RFE #2502
shai-almog Aug 14, 2018
e302707
Fixed #2502 implemented validation constraints on propertes within th…
shai-almog Aug 14, 2018
563b7b8
JSON strings generate date values with sensible string format
shai-almog Aug 14, 2018
ec66bb4
Added ability to convert an object to a date. If it's in a String for…
shai-almog Aug 14, 2018
34d2692
New store/load list of JSON objects
shai-almog Aug 14, 2018
0debd87
Fixed JSON syntax error
shai-almog Aug 15, 2018
316e18c
Fixed #2509 issues with sort logic
shai-almog Aug 15, 2018
bc50e77
Fixed #2510 added PropertyIndex.toJSONList() for consistency with oth…
shai-almog Aug 15, 2018
e7b6727
Fixed #2508 added the ability to fetch a list of property business ob…
shai-almog Aug 15, 2018
5d1c1d5
Fixed #2507
shai-almog Aug 15, 2018
f503ebd
Support for selecting multiple image in gallery. https://github.com/…
shannah Aug 15, 2018
b4346af
Fixed #2511 added an API to translate row values
shai-almog Aug 15, 2018
e5fad0f
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Aug 15, 2018
d7654a3
Added logging to help with #2512
shai-almog Aug 15, 2018
f8b6ca3
Fixed #2511 again. Damn stupid bug
shai-almog Aug 16, 2018
288e7d3
Another fix for soring #2511
shai-almog Aug 16, 2018
8e98cf6
Another fix for #2511
shai-almog Aug 16, 2018
1b66bc2
Fixed var-args method call compilation warning in Picker.
shannah Aug 16, 2018
8ce7901
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 16, 2018
b148ecb
Implemented multiple select in openGallery on UWP. https://github.co…
shannah Aug 16, 2018
7042789
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 16, 2018
b490ac4
Fixed mime filters in UWP openGallery when using multi-selection.
shannah Aug 16, 2018
2a51b61
Disabled java 11 tests while travis gets their act together.
shannah Aug 16, 2018
6c8dde1
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 16, 2018
178d5cd
Fixed preferred size of video component on simulator. This fixes an …
shannah Aug 17, 2018
d51da8b
Improved heuristic for checking if videos are playable in javafx befo…
shannah Aug 17, 2018
964d907
Added support for multi selection in openGallery in iOS. Will requir…
shannah Aug 17, 2018
f2d75b3
Fixed incorrect sizing of the floating action button as shown here ht…
shai-almog Aug 18, 2018
4682b3b
Updated theme
shai-almog Aug 18, 2018
a5a8eca
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Aug 18, 2018
f70afdf
FIX for invalid JSON produced by PropertyIndex.toJSONList()
jsfan3 Aug 19, 2018
e853d9e
Merge pull request #2523 from jsfan3/patch-1
shai-almog Aug 19, 2018
b3f8948
Fixed sizing of dialogs. https://github.com/codenameone/CodenameOne/…
shannah Aug 20, 2018
a6fbd97
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 20, 2018
b8b5905
Added javadocs about gallery multi-select. https://github.com/codena…
shannah Aug 20, 2018
31558b8
Guarded against catching key presses with key code 0, and treating th…
shannah Aug 20, 2018
a55f02b
Fixed issue with simulator getting stuck on uwp desktop skin when tog…
shannah Aug 23, 2018
1aef0b1
Fixed padding in media player
shai-almog Aug 23, 2018
47e2930
Added package private method to picker to suppress painting... this …
shannah Aug 23, 2018
3751bf7
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 23, 2018
13893d3
Fixed compilation error
shai-almog Aug 23, 2018
08febf0
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Aug 23, 2018
d6cc5fe
Added support for 'ios.doneButtonColor' display property which can be…
shannah Aug 24, 2018
90e843e
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 24, 2018
50c96c8
Fixed #2532 property exclusion was miscalculated
shai-almog Aug 25, 2018
9a4740a
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Aug 25, 2018
0e20373
Fixed #2533 date fields were incorrectly made editable
shai-almog Aug 25, 2018
f6fa4c0
Fixed issue with ios always autplaying videos.
shannah Aug 27, 2018
79fe9b2
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Aug 27, 2018
d460c52
Disabled use of splash screen images by default. These can be enable…
shannah Aug 27, 2018
22f3291
Fixed issue with dialog sizing. https://github.com/codenameone/Coden…
shannah Aug 29, 2018
f5ba13a
Adjusted HiDPI retina scale calculation so that it should work in mor…
shannah Aug 29, 2018
21461e5
Added cn1.fontScale java system property and CN1_FONT_SCALE environme…
shannah Aug 29, 2018
df189e4
Reverted support for font scaling system properties. Will add them i…
shannah Aug 29, 2018
9eaa8df
Changed iOS video components so that they don't prepare to play the v…
shannah Aug 30, 2018
badc914
Improvements for BrowserComponent so that javascript can be run on th…
shannah Aug 30, 2018
42edb85
Added support for executing JS in iOS browser component from main thr…
shannah Aug 30, 2018
0e7d080
Improved performance of BrowserComponent executeAndReturnString on An…
shannah Aug 31, 2018
34d8b9a
Added feature to send arguments to the app
shai-almog Sep 1, 2018
668ad0c
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Sep 1, 2018
cf6b14d
Fixed performance monitor issue
shai-almog Sep 4, 2018
419d42f
Updated templates for app icons in ParparVM to include all current ap…
shannah Sep 4, 2018
aa1d7fb
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Sep 4, 2018
8927c64
Fixed regression in browser component that caused javascript executio…
shannah Sep 4, 2018
3ce65a4
Added detection for the name of the generated VALUES static field in …
shannah Sep 10, 2018
b348c51
Updated version number
shai-almog Sep 13, 2018
10fc7fb
Added better javascript callback mechanisms on iOS and Android. The …
shannah Sep 14, 2018
c62317b
Added flag RENDER_WEBVIEWS_IN_FRONT which causes webviews to be rende…
shannah Sep 14, 2018
ee99bb7
Implemented Media.prepare() on iOS for videos so that the video will …
shannah Sep 14, 2018
772d46c
added getter for url
Sep 17, 2018
4e04f32
Merge remote-tracking branch 'origin/master' into codefreeze5
shannah Sep 17, 2018
e495399
Added warning on iOS attempt is made to create a texture that exceeds…
shannah Sep 18, 2018
6350204
Update README.md
shai-almog Sep 19, 2018
29a50e7
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Sep 19, 2018
cbac71f
Fixed regression with gallery multiselect causing subsequent capture …
shannah Sep 19, 2018
0f870ef
Fixed deadlock caused by race condition when calling stopEditing at t…
shannah Sep 19, 2018
ba8d0dd
Merge pull request #2548 from kutoman/patch-5
shai-almog Sep 21, 2018
34d9d1c
Changed video player to use the application audio session by default.…
shannah Sep 24, 2018
f87c6b2
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Sep 24, 2018
9ad86c5
Changed sharing and send message to use FileProviders for Android 8 c…
shannah Sep 24, 2018
6cbc741
Corrected app roots from previous installations on iOS since App root…
shannah Sep 24, 2018
f0f49ce
Made JSRef constructor public so that they can be created outside the…
shannah Sep 24, 2018
01fbd4b
Made transforms thread-safe on android. Fixes https://github.com/cod…
shannah Sep 24, 2018
b6a85e5
Added support for underlne borders so that border-bottom with solid c…
shannah Sep 25, 2018
66c87a6
Fixed round rect border handling to only use roundrectborder if eithe…
shannah Sep 25, 2018
b35333f
Fixed issue with android clip region getting corrupted unrecoverably …
shannah Sep 25, 2018
b7a8dcf
Changed iOS IAP implementation to return true to isSubscriptionSuppor…
shannah Sep 26, 2018
268c013
Fixed regression that caused pointer events not to be routed to botto…
shannah Sep 26, 2018
8ebc47c
Added ability to customize accordion headers
shai-almog Sep 27, 2018
1da5132
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shai-almog Sep 27, 2018
fdfee84
Fixed issue with Media.isPlaying not returning correct values in simu…
shannah Sep 28, 2018
2d6d723
Merge branch 'master' of https://github.com/codenameone/CodenameOne
shannah Sep 28, 2018
0a6226e
Fixed background painting order for components. Previously the compo…
shannah Sep 28, 2018
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
Prev Previous commit
Next Next commit
Changed video player to use the application audio session by default.…
… This ends up playing nicer with other audio sources in the app so that they don't interrupt each other. This is configurable with the display property ios.useApplicationAudioSession='false'.
shannah committed Sep 24, 2018
commit 34d9d1c321dd2aed862a84e7b0175365d6c6ae98
23 changes: 20 additions & 3 deletions Ports/iOSPort/nativeSources/IOSNative.m
Original file line number Diff line number Diff line change
@@ -2505,6 +2505,23 @@ void com_codename1_impl_ios_IOSNative_blockCopyPaste___boolean(CN1_THREAD_STATE_

}

BOOL cn1UseApplicationAudioSessionForMedia(CN1_THREAD_STATE_SINGLE_ARG) {
enteringNativeAllocations();
JAVA_OBJECT d = com_codename1_ui_Display_getInstance__(CN1_THREAD_GET_STATE_PASS_SINGLE_ARG);
JAVA_OBJECT key = fromNSString(CN1_THREAD_GET_STATE_PASS_ARG @"ios.useApplicationAudioSession");

JAVA_OBJECT defaultVal = fromNSString(CN1_THREAD_GET_STATE_PASS_ARG @"true");

JAVA_OBJECT res = com_codename1_ui_Display_getProperty___java_lang_String_java_lang_String_R_java_lang_String(CN1_THREAD_GET_STATE_PASS_ARG d, key, defaultVal);
finishedNativeAllocations();

NSString *nsres = toNSString(CN1_THREAD_GET_STATE_PASS_ARG res);
if ([nsres isEqualToString:@"false"]) {
return NO;
}
return YES;
}

JAVA_LONG com_codename1_impl_ios_IOSNative_createVideoComponent___java_lang_String_int(CN1_THREAD_STATE_MULTI_ARG JAVA_OBJECT instanceObject, JAVA_OBJECT str, JAVA_INT onCompletionCallbackId) {
__block MPMoviePlayerController* moviePlayerInstance;
dispatch_sync(dispatch_get_main_queue(), ^{
@@ -2518,7 +2535,7 @@ JAVA_LONG com_codename1_impl_ios_IOSNative_createVideoComponent___java_lang_Stri
}
moviePlayerInstance = [[MPMoviePlayerController alloc] initWithContentURL:u];
registerVideoCallback(CN1_THREAD_GET_STATE_PASS_ARG moviePlayerInstance, onCompletionCallbackId);
moviePlayerInstance.useApplicationAudioSession = NO;
moviePlayerInstance.useApplicationAudioSession = cn1UseApplicationAudioSessionForMedia(CN1_THREAD_GET_STATE_PASS_SINGLE_ARG);
// prepareToPlay will cause other av sessions to be interrupted at the time that the video
// component is created - which is disruptive. Better to just let it prepare to play
// at the time that the video is played - even if there is a delay.
@@ -2584,7 +2601,7 @@ JAVA_LONG com_codename1_impl_ios_IOSNative_createVideoComponent___byte_1ARRAY_in

moviePlayerInstance = [[MPMoviePlayerController alloc] initWithContentURL:u];
registerVideoCallback(CN1_THREAD_GET_STATE_PASS_ARG moviePlayerInstance, onCompletionCallbackId);
moviePlayerInstance.useApplicationAudioSession = NO;
moviePlayerInstance.useApplicationAudioSession = cn1UseApplicationAudioSessionForMedia(CN1_THREAD_GET_STATE_PASS_SINGLE_ARG);
// prepareToPlay will cause other av sessions to be interrupted at the time that the video
// component is created - which is disruptive. Better to just let it prepare to play
// at the time that the video is played - even if there is a delay.
@@ -2648,7 +2665,7 @@ JAVA_LONG com_codename1_impl_ios_IOSNative_createVideoComponentNSData___long_int

moviePlayerInstance = [[MPMoviePlayerController alloc] initWithContentURL:u];
registerVideoCallback(CN1_THREAD_GET_STATE_PASS_ARG moviePlayerInstance, onCompletionCallbackId);
moviePlayerInstance.useApplicationAudioSession = NO;
moviePlayerInstance.useApplicationAudioSession = cn1UseApplicationAudioSessionForMedia(CN1_THREAD_GET_STATE_PASS_SINGLE_ARG);
//#ifndef CN1_USE_ARC
// [moviePlayerInstance retain];
//#endif