B4A Library FullscreenVideo

It is a "shortcut" wrap for this Github project. Download and play mp4's. Posting the following:
1. B4A library project (take note of the Manifest)
2. B4A Library files
3. The Java Code

Nothing else required. We can probably panel beat it a bit...

1.png


2.png


3.png


4.png



5.png


6.png

Sample Code:
B4X:
#Region  Project Attributes
    #ApplicationLabel: FullScreenVideo
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
#End Region


#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
   
End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

    Private Button1 As Button
    Private Label1 As Label
    Dim myvideo As FullScreenVideo
   
   
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
   
    Activity.LoadLayout("main")
    myvideo.Initialize("")
    Label1.Visible = True
    Label1.Text = "Wrapped by Johan Schoeman"
    myvideo.VideoURL = "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4"

End Sub

Sub Activity_Resume
   
   
End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub Button1_Click
   
  myvideo.StartVideo
 
End Sub

Library:
FullScreenVideo
Author:
Github: Toshiro , Wrapped by: Johan Schoeman
Version: 1
  • FullScreenVideo
    Methods:
    • Initialize (paramString As String)
    • IsInitialized As Boolean
    • StartVideo
    Permissions:
    • android.permission.INTERNET
    Properties:
    • VideoURL As String [write only]
 

Attachments

  • FullScreenVideoLibFiles.zip
    18.4 KB · Views: 269
  • b4aFullScreenVideo.zip
    68.5 KB · Views: 268
  • TheJavaCode.zip
    74.7 KB · Views: 253
Top