J2ME access Default media player track running in background - mobile

Is there any way to access track being played in Music player running in background in J2ME?
or at least the path of the file

AFAIK you can't able to access the default media player using Java ME.

Search for APIBridge.jar on google. This jar file allows you to read sms from inbox, use native camera application. So there might be possibility, It allows you to use Native Media Player.

Related

Video streaming including application overlay components

I want to make a react-native app having the capability of video streaming from a mobile app to a connected browser user. On top of that, I want to overlay some application components so connected users can see video streaming as well as some of the application UI.
For an example take a reference of the below-given image. Here, video streaming is running in the car showroom and there are a few app components shown as an overlay of the video like an app menu and a car image.
I want to achive same functionality and using VideoSDK platform for video streaming service.
So far I have created react-native app and able to stream video through camera to the connected browser user.
Next, I want to add my app menu on top of the video as per the image and therefore i am thinking screenshare with combination of video sharing is way to go.
The above image is the actual implementation using video SDK in the browser but as you can see screen share window is opening in a totally different context which is not the expected implementation.
Can someone suggest how can I achieve the functionality of video streaming having the capability of app overlay components?
I have reviewed your requirement and I am glad to inform you that we do have application with same requirements, for further discussion and demos can we connect over mail i.e. karan10010#gmail.com

Codename One, Possible to access photos without using Display.getInstance().openGallery()?

Is there are way for codenameone apps to access the images stored on the device programmatically and not using Display.getInstance().openGallery().
I want to construct my own gui for selecting images.
Thx
No. You can access these files as read only in a device specific way using native interfaces. Historically this wasn't possible technically in iOS and it was only possible to launch a picker UI to view the content of the camera roll.
For iOS the Photo's native API can be used https://developer.apple.com/documentation/photos?language=objc
It would require wrapping that with a native interface which is non-trivial https://www.codenameone.com/how-do-i---access-native-device-functionality-invoke-native-interfaces.html

Is there any way to stream music in the background with Ionic framework?

I'm developing an Android app using Ionic for music streaming, like a personal Spotify. I can easily play an audio file using Streaming Media plugin, but it seems that this plugin was made for video purposes, because it always brings the player to the front in fullscreen, so you can't navigate through the app while the music is playing, you also can't lock your screen or the playback is stopped.
Is there any way to stream music in the background? Like when I tap the song I want to play, it just starts playing without bringing in another screen? (like you can easily do in AndroidStudio with MediaPlayer). I've search it anywhere for the past week and I just can't find any solution.
I realized Background-Audio in my ionic2/3 Project with
cordova-plugin-media 3.0.1 "Media"
cordova-plugin-music-controls 2.1.4 "MusicControls"
and to workaround some issues on ios I need to add this plugin also
nl.kingsquare.cordova.background-audio 1.0.1 "background-audio"

How to save an image into photo gallery using j2me

I am making an application for nokia, samsung, lg ets using j2me.
I want to save an image into photo gallery of mobile. But i didn't have any idea what path i use to save image?
Look on this article, Getting Started with the FileConnection APIs. Also look on this example, File Connection Using J2ME api JSR 75.
String initDir = System.getProperty("fileconn.dir.photos");
Mobile's Internal Memory can make issue if it is limited. So You should use Memory card to save the images.
You can create a folder in Memory card and access it using E:/<folder-name> in to your J2ME code.

How to play .3gp videos in mobile using RTMP (FMS) and HTTP?

I am not able to play video on mobile device which is .3gp container and H.263 / AMR_NB encoded. I just want to play my website videos in mobile device also just like youtube.com. I want to use RTMP and HTTP both. My requirement is as follows-
Which codec and container will be best?
Should I use FLV to play video on mobile device?
RTSP required or can be use RTMP?
Is NetStream and NetConnection methods different from Flash Player in Flash Lite Player?
How to play 3gp video using RTMP stream ie. ns.play(“mp4:mobilevideo.3gp”, 0, -1, true) is it ok or any thing else required?
For mobile browser and computer browser, can I use single player or I have to make different player for computer browser and mobile browser?
It would be better if I can do it with single player for both mobile and computer browser.
Sample code required for testing. If you can.
I got below article in which they mention that we can play video 3gp container in mobile also. Please find the article.
Articles URL-
http://www.hsharma.com/tech/articles/flash-lite-30-video-formats-and-video-volume/
http://www.adobe.com/devnet/logged_in/dmotamedi_fms3.html
Thanks
Sunil Kumar
We've established that it's possible to play mp4 within a 3gp wrapper, but only if the file has an mp4 extension, and for Flash 9 onwards.
See http://www.adobe.com/eeurope/products/hdvideo/faq/
Hi I am not able to play video on mobile device which is .3gp container and H.263 /AMR_NB encoded. I just want to play my website videos in mobile device also just like youtube.com. I want to use RTMP and HTTP both. My requirement is as follows-
Which codec and container will be best?
Should I use FLV to play video on mobile device?
RTSP required or can be use RTMP?
.flv is not supported on all devices that support FL 3.0. Please refer to the following threads in the nokia discussion forum:http://discussion.forum.nokia.com/forum/showthread.php?p=731458#post731458 regarding transcoding in 3gp to be used in the rtsp server.
You can use http for flv.
Is NetStream and NetConnection methods different from Flash Player in Flash Lite Player?
I have no clue about this.
How to play 3gp video using RTMP stream ie. ns.play(“mp4:mobilevideo.3gp”, 0, -1, true) is it ok or any thing else required?
For the rtsp, you need to setup the darwin streaming server, which is pretty simple to install and then place your 3gp/mp4 files there. There is no need for a netstream object for this. You can simply use the 'play' method with the instance of the video object:
.play(<3gp_Or_mp4__file>);
For mobile browser and computer browser, can I use single player or I have to make different player for computer browser and mobile browser? It would be better if I can do it with single player for both mobile and computer browser.
No clue.
I would recommend you to look at the 3gp players official website at http://www.3gp-player.com .
You can read and get some information about playing 3gp video files on both Desktop/Laptop computers, and cellphones/mobile devices.
Most of the tools offered there are free, and so is the information about all the 3gp player / converters.
Hope this helps you.

Resources