B4J Question [SOLVED] SimpleMediaManager - SetMediaFromFile - Invalid mime!

LucaMs

Expert
Licensed User
Longtime User
I tried both:
B4X:
smm.SetMediaFromFile(Pane1, "C:\Users\sg\Desktop\", "myfile.mp4", "video/*", CreateMap(smm.REQUEST_RESIZE_MODE : "FILL_NO_DISTORTIONS"))
smm.SetMediaFromFile(Pane1, "C:\Users\sg\Desktop\", "myfile.mp4", "video/mp4", CreateMap(smm.REQUEST_RESIZE_MODE : "FILL_NO_DISTORTIONS"))
and also an AVI file, getting anyway that error message, "Invalid mime".

There is also a log I think written by the SimpleMediaManager library:
*** Add a reference to the video library and add SMM_VIDEO to the build configuration ***
 
Solution
There is also a log I think written by the SimpleMediaManager library:
*** Add a reference to the video library and add SMM_VIDEO to the build configuration ***
Did you add SMM_VIDEO to the build configuration? and I don't think the extra works for video

teddybear

Well-Known Member
Licensed User
There is also a log I think written by the SimpleMediaManager library:
*** Add a reference to the video library and add SMM_VIDEO to the build configuration ***
Did you add SMM_VIDEO to the build configuration? and I don't think the extra works for video
 
Last edited:
Upvote 0
Solution

LucaMs

Expert
Licensed User
Longtime User
I think the extra is meaningless for the video, it can be null or any map.
There is a problem in MediaView, about the "header":

1726060528772.png


In the image above you can see it, even though the speaker is touching the video; if I change the MediaView size (increasing only the width) it is covered by the video.

The above, however, regardless of the "extra" (for which I should open another thread, but first find the solution myself).
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
There is a problem in MediaView, about the "header":

View attachment 156825

In the image above you can see it, even though the speaker is touching the video; if I change the MediaView size (increasing only the width) it is covered by the video.

The above, however, regardless of the "extra" (for which I should open another thread, but first find the solution myself).
?

1726112709866.png
and
1726112744621.png


1726112632011.png


1726112676096.png
 
Last edited:
Upvote 0
Top