Video Streaming

walterf25

Expert
Licensed User
Longtime User
Hello all, i'm working on an application where i'm using the UDP method, i have a server i created on my computer using visual studio, and i have the client on my phone, so far i can receive and send data packets, i can control my computer's mouse through my phone as well as other things.
Currently i can assign a directory path on the server and it will list all the files contained within that folder, my question is this....
is it possible to stream from the server to the client a video file, either .mp4, .mkv, .avi or any other video format, i know there's an application out there called skifta that does this, i would like to create an app that i can connect to the server from my phone and stream a video file on my computer to my phone?

any one has any idea on how to do this, or can someone maybe point me in the right direction?

thanks,
Walter
 

walterf25

Expert
Licensed User
Longtime User
Hi NJDude, i'm using the UDP method, on the server side on my computer, i'ts simply a server which sends and receives data packets to and from the phone, how can i implement the MediaPlayerStream on the server side, or in other words when i list all the video files, when i choose one of the files how will the server side stream that file?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Actually you need to use VideoView for videos.
You need to call:
B4X:
VideoView.LoadVideo("http", "http://192.168.1.100/MyCoolVideo.mp4")
You will also need to add the INTERNET permission to the manifest editor:
B4X:
AddPermission("android.permission.INTERNET")

You so not need to do anything special in the server side. However not all formats are supported by Android.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…