B4A Library ExoPlayer - MediaPlayer / VideoView Alternative - Erel    
Dec 25, 2023   
(60 reactions)   
tags: Code, Wewl, video, MediaPlayer/
ExoPlayer is an open source project that replaces the native MediaPlayer and VideoView types.
https... MediaPlayer. SimpleExoPlayerView provides the interface.
SimpleExoPlayer can be used without...
link: V1.52 - Previous fix was incomplete. New version solves the issue....
link: V1.51 - Fixes an incompatibility between ExoPlayer and Firebase. Make sure to update the additional...
link: V1.50 - New version based on ExoPlayer 2.13.3 (https://github.com/google/ExoPlayer/blob/release-v2...
B4i Question (Solved) MediaPlayer - not playing - f0raster0    
Aug 1, 2024 play the sound in my iphone:
MediaPlayer Demo https://www.b4x.com/android/forum/threads/solved-mediaplayer-does-not-play-mp3.129278/#post-811765
Is it possible that something changed in MediaPlayer...
link: -to-make-mediaplayer-ignore-the-silence-ringer-switch-setting.50224/#content
woooow, I've been...
link: -to-make-mediaplayer-ignore-the-silence-ringer-switch-setting.50224/#content...
link:
Your attachment does not contain a B4XMainPage.
I hope I updated it correctly :)...
B4J Library B4JVlcj (embed VLC MediaPlayer in your program/app) - moster67    
Mar 21, 2017   
(27 reactions)   
tags: Erel-wrapper of VLC (VideoLAN). With this wrapper, we can use VLC as a MediaPlayer in B4J.
I guess most... events which are required to create a functional MediaPlayer in B4J. I have tested it on Windows 10 and...
link: @moster67 Great library.
I am testing it on Raspberry PI3B with B4J. Video is coming from hard disk ...
link:
t, you can probably use B4JVlcj to stream your WebCam to a server (although not tested but consider...
link: GridPane1 with "scenegrid" XML layout works good for the resizing.
But how to do the same,...
B4i Question How to make Mediaplayer ignore the silence ringer switch setting? - Turbo3    
Feb 4, 2015How can we make Mediaplayer ignore the phone ringer silence switch setting?
I did find that if I added the code to allow mediaplayer to play in the background and when the phone is off it also seems to have made it ignore the silence ringer switch setting....
B4A Question MediaPlayer - delay between repetative MP.play - Declan    
Feb 22, 2026I have a mp3 audio file that I play to alert the user of an alarm event.
The duration of the mp3 file is 15 seconds.
I have 3 setting...
link:
Something like:
MP.Play
Wait For MP_Complete
Sleep(10000)
...
Many thanks...
link: Something like:
MP.Play
Wait For MP_Complete
Sleep(10000)
...
...
B4A Tutorial MediaPlayer tutorial - Erel    
Nov 14, 2010   
(7 reactions)   
tags: MediaPlayerThe MediaPlayer is used to play audio files.
MediaPlayer supports formats like: mp3, midi, wave and... order to play an audio file we first need to load the file:
MediaPlayer1.Load(File.DirAssets... File.DirAssets is used.
Now we can start playing the file with:
MediaPlayer1.Play
and pause the playback with:
MediaPlayer.Pause
Calling Play will resume from the same position.
Note that you can only call Pause while MediaPlayer is playing.
You can call MediaPlayer.Load at any point (after...
B4J Question B4JPackager11 Error With MediaPlayer, jAudioClip [SOLVED] - jmon    
Jul 19, 2019 Windows. I also tried with MediaPlayer, and get the same error when running the exe.
With MediaPlayer:
main._appstart (java line: -1)
java.lang.UnsupportedOperationException: Unsupported protocol "jrt"
at javafx.media/com.sun.media.jfxmedia.locator.Locator.<init>(Unknown Source)
at javafx.media/javafx.scene.media.Media.<init>(Unknown Source)
at b4j/anywheresoftware.b4j.objects.MediaPlayerWrapper.Initialize(Unknown Source)
at b4j/com.xxxx.xxxxx.main...
B4J Question Linux - MediaPlayer Cannot be created - Wrong URI: - hatzisn    
Jul 10, 2023I am getting this error when I try to play an mp3 file in MediaPlayer object in linux
MediaException: UNKNOWN : com.sun.media.jfxmedia.MediaException: Could not create player! : com.sun.media...
link: I solved it (the objcopy problem) with the following installation but again the same is valid (no so...
link: With Java 14 as it is in the B4JPackager11 thread, when I try to build I get this error:
Error: ja...
link: Worth testing with Java 14 or newer. It fails to create the media encoder....
B4A Question Highlighting lyrics lines in sync with MediaPlayer, timer or canvas - Serge Bertet (first post)    
Nov 23, 2026My app uses:
#SupportedOrientations: sensorLandscape
I tried rotating the device during a scroll and...
link: problem. my plan now is to stop polling with a timer, read the player position right before each...
link: I wrote an app like that, check on Google Play for AutoTAB.
It took me one and half year to write it...
link: the MediaPlayer position every 100 ms, but the scrolling jumps a bit and on my old phone the highlight trails...
B4A Code Snippet Choose audio file and play with MediaPlayer - fredo    
Nov 10, 2019   
(3 reactions) to Erel's "GetPathFromContentResult()" the path format expected by the MediaPlayer...
Private mp As MediaPlayer
End Sub
Sub Globals
Private LabelDir As Label
Private LabelFile...) ' content://com.android.providers.media.documents/document/audio%3A128
Private rp... GetPathFromContentResult(UriString As String, MediaType As String) As String
' Erel --> https://www.b4x.com/android/forum/threads/get-the-path-to-media-files-returned-from-contentchooser.39313/
If...
Page: 1  
2  
3  
4  
5  
6  
7