Android Question How to use the b4a Default to implement Fullscreen with SimpleMediaManager

winjiadh

Active Member
Licensed User
Longtime User
I found an example of using SimpleMediaManager to play videos for full screen playback, but it was written using B4XPage. I want to use it for programs written in B4A in the past, and I don't want to modify all the programs to B4XPage, as it would require a lot of work.
B4X:
MediaManager SetMediaFromFile (pnl2, File. DirAssets, "2. mp4", "video/*", "Create Map" (MediaManager. REQUEST.Callback: Me))
Here "me" is a class, how should I create my own new class in b4a's default to use it? I don't quite understand this. I have attached the code written by B4XPage and the code I wrote using default. I hope someone can help me modify it. Thank you.
 

Attachments

  • B4XPages.zip
    46.1 KB · Views: 29
  • Default.zip
    45.9 KB · Views: 22

winjiadh

Active Member
Licensed User
Longtime User
B4XPages.zip is OK.
The Default.zip need modify.
I hope someone can help me modify it. Thank you is very much.
 
Upvote 0

winjiadh

Active Member
Licensed User
Longtime User
Upvote 0
Top