Share My Creation Online Radio

This is a online radio implemented in b4j with a lot of features...
Not sure where to upload the program, due to memory issues.

Here we go... (fixed bug systemfile._geticon (java line: 261) )

Create one folder and copy all files into it, run MIRADIOS.jar and enjoy it.
ffplay.exe and ffmpeg.exe are a bit extended, but they are necessary to play and record audio streams,
unless you already installed FFMPEG suite tools. (not sure if newer versions works properly)
FFmpeg Download
.
Version Used
The program is still under developing process so it's expected to find some kind of bug,
nevertheless it works as expected.
 

Attachments

  • miradios.png
    miradios.png
    243.1 KB · Views: 3,308
Last edited:

EarthMan

New Member
Licensed User
Longtime User
Just tested it and getting below. I look forward to seeing it work.

java -jar MIRADIOS.jar

And below was the output, ending with "java.lang.RuntimeException: Object should first be initialized (JavaObject).


C:\dev\MIRADIOS>java -jar MIRADIOS.jar
Initialize
Create
0x00ffffff
0xff00ffff
TEXT-Recording Level
DRAW
HORIZONTAL
SHOW SCALE
1.1015625--8.8828125-82.095703125-11.70703125
330-40
390-40
390-40
DESCRIPTION-Direct Audio Device: DirectSound Playback
DESCRIPTION-Direct Audio Device: DirectSound Playback
DESCRIPTION-Direct Audio Device: DirectSound Playback
DESCRIPTION-Direct Audio Device: DirectSound Capture
Capture-Primary Sound Capture Driver
DESCRIPTION-Direct Audio Device: DirectSound Capture
Capture-Microphone Array (Realtek Audio)
Name-Microphone Array
DESCRIPTION-Port Mixer
DESCRIPTION-Port Mixer
DESCRIPTION-Port Mixer
C:\dev\MIRADIOS\nircmd.exe
EqualizerInit
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
0-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
2
DRAW
SHOW BOTH
ScaleWidth-10
2
DRAW
SHOW BOTH
ScaleWidth-10
2
DRAW
SHOW BOTH
ScaleWidth-10
2
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
1-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
2-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
3-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
1
DRAW
SHOW BOTH
ScaleWidth-10
1
DRAW
SHOW BOTH
ScaleWidth-10
1
DRAW
SHOW BOTH
ScaleWidth-10
1
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
4-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
5-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
6-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
7-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
1
DRAW
SHOW BOTH
ScaleWidth-10
1
DRAW
SHOW BOTH
ScaleWidth-10
1
DRAW
SHOW BOTH
ScaleWidth-10
1
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
8-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
9-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
DRAW
SHOW BOTH
ScaleWidth-10
3
Initialize
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
Vertical
10-10-0
10
DRAW
SHOW BOTH
ScaleWidth-10
DRAW
SHOW BOTH
ScaleWidth-10
4
DRAW
SHOW BOTH
ScaleWidth-10
4
DRAW
SHOW BOTH
ScaleWidth-10
4
DRAW
SHOW BOTH
ScaleWidth-10
4
256
DESCRIPTION-Direct Audio Device: DirectSound Playback
DESCRIPTION-Direct Audio Device: DirectSound Playback
Name-Speakers / Headphones
Alias-(Realtek Audio)
DESCRIPTION-Direct Audio Device: DirectSound Playback
Name-DELL U2414H
Alias-(Intel(R) Display Audio)
DESCRIPTION-Direct Audio Device: DirectSound Capture
DESCRIPTION-Direct Audio Device: DirectSound Capture
DESCRIPTION-Port Mixer
DESCRIPTION-Port Mixer
DESCRIPTION-Port Mixer
(Realtek Audio) / Headphones
(Intel(R) Display Audio)
2
DESCRIPTION-Direct Audio Device: DirectSound Playback
DESCRIPTION-Direct Audio Device: DirectSound Playback
DESCRIPTION-Direct Audio Device: DirectSound Playback
DESCRIPTION-Direct Audio Device: DirectSound Capture
Capture-Primary Sound Capture Driver
DESCRIPTION-Direct Audio Device: DirectSound Capture
Capture-Microphone Array (Realtek Audio)
Name-Microphone Array
DESCRIPTION-Port Mixer
DESCRIPTION-Port Mixer
DESCRIPTION-Port Mixer
Speakers / Headphones (Realtek
DELL U2414H (Intel(R) Display A
Microphone Array (Realtek Audio
(Realtek Audio)ne Array
1
C:\

systemfile._geticon (java line: 261)
java.lang.RuntimeException: Object should first be initialized (JavaObject).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4j.object.JavaObject.getCurrentClass(JavaObject.java:259)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:119)
at b4j.example.systemfile._geticon(systemfile.java:261)
at b4j.example.main._appstart(main.java:462)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at b4j.example.main.start(main.java:49)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:186)
at java.lang.Thread.run(Unknown Source)
 
Last edited:

Vitor

Member
Hi EarthMan did you try double _click MIRADIOS.JAR instead running with command line java -jar MIRADIOS.jar ?
 

EarthMan

New Member
Licensed User
Longtime User
Hi Vitor. I did double click and not jar would not run. That would probably work if you setup your jar files to run with java by default. The command I used to run should usually run any jar file if set up correctly with manifest file etc... Wanting to see if others have the same issue.
 

Vitor

Member
HI EarthMan. There was a bug indeed in systemfile._geticon (java line: 261) corrected and updated above.
What i found is that when i run from the command line i'm not able to play streams which is the aim of the app,
don't ask me why, but i believe that's something with ffplay path, by the contrary when i run with double_click
I play the stream as expected.
 

EarthMan

New Member
Licensed User
Longtime User
Hi Vitor, I ran it with the java -jar <> command as that's the only way it worked for me.

Good work 👍
 
Top