Linux (x64/arm64) MediaPlayer
Posted: 21 Nov 2022, 13:39
Hi,
I need to be able to play some video files in my current project. I saw here that it's not supported on linux, so i wanted to implement a "libmpv" media player (with a "DynamicTextureSource").
After a few research i discovered the "GEMediaPlayer" module which seems to target linux arm64 only. I then compiled the "libMediaPlayer.so" and "mp" binary targeting linux x64, but i do get a lot of "threading" errors until it crash:
By the way, is there a discord server (or IRC or something) to talk to you guys ?
Many thanks in advance for your help!
I need to be able to play some video files in my current project. I saw here that it's not supported on linux, so i wanted to implement a "libmpv" media player (with a "DynamicTextureSource").
After a few research i discovered the "GEMediaPlayer" module which seems to target linux arm64 only. I then compiled the "libMediaPlayer.so" and "mp" binary targeting linux x64, but i do get a lot of "threading" errors until it crash:
I'm a little new to C# and such... I wonder if the problem comes from the "GEMediaPlayer" which may not be supported anymore (even on linux arm64 which is the original target) or if i'm doing something wrong. I'd like to move to the mpv implementation, but i'm a little worried about loosing my time on this if i'm unable to fix this threading problem first...GEMediaPlayer: Loading "Particles.mp4"
[NOESIS/I] '/HelloWorld;component/Particles.mp4' loaded
GEMediaPlayer: CreateState
GEMediaPlayer: Alloc
GEMediaPlayer: OpenMedia
GEMediaPlayer: OpenMedia OK
GEMediaPlayer: stream OK
[NOESIS/E] The calling thread (46905) cannot access this HelloWorld.MainWindow because a different thread (46886) owns it
[NOESIS/E] The calling thread (46905) cannot access this AdornerDecorator because a different thread (46886) owns it
[NOESIS/E] The calling thread (46905) cannot access this RootVisual because a different thread (46886) owns it
[NOESIS/E] The calling thread (46905) cannot access this View because a different thread (46886) owns it
GEMediaPlayer: stream OK
GEMediaPlayer: Play
[NOESIS/E] The calling thread (46905) cannot access this View because a different thread (46886) owns it
[NOESIS/E] The calling thread (46905) cannot access this VirtualizingStackPanel because a different thread (46886) owns it
[NOESIS/E] The calling thread (46905) cannot access this ListBox because a different thread (46886) owns it
.....
By the way, is there a discord server (or IRC or something) to talk to you guys ?
Many thanks in advance for your help!