if you want to play video URL in MX player you need to call MX player by calling activity and your tag and value must set in realtime firebase database.
call MX player in Thunkable,Makeroid,Appybuilder
Pick firebase and Activity starter on your project.
Goto Firebase and create a project and choose your location.
Goto Database and create real-time database. choose Start in locked mode and Enable.
*Goto Rule you will see following code :
{
"rules": {
".read": false,
".write": false
}
}
Make change editing false to true like this :
{
"rules": {
".read": true,
".write": true
}
}
*Goto data firebase project and find Web API Key: xxxxxxxx-xxxxxxxxx (its looks like this
* Copy this web API key and Paste on thunkable project Firebase Token.
* Goto firebase database and copy look this code https://xxx-xxxxx.xxxxx.com and Pase on Thunkable Firebase URL.
* Goto firebase database and copy firebase project Bucket which is in just under of the xxxx.com URL likes this "Your project name-xxxxxx" paste on Thunkable firebase Project Bucket.
*Goto Thunkable activity starter and fill following :
- Action : android.intent.action.VIEW
- Activity Class : com.mxtech.videoplayer.ad.ActivityScreen
- Activity Package : com.mxtech.videoplayer.ad
- Data Uri: http://xxxxxxxxxxx.m3u8(your live video URL)
* Goto firebase database and tabbing + icon add a child
* give Tag name as you want (ex: test)
* fill your live tv URL on value.
- Goto Thunkable project's Block Section and fill like this :
finally, your app will start with MX player . in this method if there not installed MX player on users' smartphones they cant run live tv.