New User With Questions

joolzg

Member
Licensed User
Longtime User
OK starting android development, and trying to make an IPTV player.

Got the logging on to my server, downloading channel list, downloading all icons so all well and good but a few problems.

1. How do i find the mac addresses of all connections, im using a tablet which has wifi and this is ok, but i also have a chinese box with both wifi and wired. So how do i find out if i have a connection and which one is working so i can get the mac address?

2. Want to be able to show all channel icons as a full screen and use a swipe gesture to move between pages, any pointers to sample code

3. Again, want to be able to change channel by swiping up/down? any pointers

4. Video is playing on the tablet but not full screen? only taking around 80% of the screen width. Whats the real way to do this so it works on most tablets and chinese media players

5. I also want a "channel info" and "epg" box over the video, are Panels the best way?. These will be independent of each other.

Thats all to start with, but im impressed on how easy it is to write and test, just having to try and remember VB, a good 10 years since i wrote in basic

joolz
 

joolzg

Member
Licensed User
Longtime User
1. Mac Address is part of the protection :)

2. Will Look

4. Yes and working, just not filling screen, now my tablet is 1024x564 resolution

5. OK got a semi-transparent box on screen but ....

What is the best way to do the bar, i need a panel with a bitmap, and 6 different text regions, which will be filled in with things like channel name, current time, epg information etc. I tried adding a bitmap to the panel but i get an error about incompatible types. So is there a demo that shows adding bitmaps and text to a panel

joolz
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I think that you can get the MAC address with the ABWifi library. It will probably return the wireless hardware address.

The video size in VideoView is a known issue related to the native VideoView implementation. On some devices the video playback size is smaller than the view itself. It may be related to the video file.

You can create a layout file just for the panel and load it with Panel.LoadLayout.
You will then be able to add all the views and bitmaps with the visual designer.
 
Upvote 0

joolzg

Member
Licensed User
Longtime User
Nope on my chinese box which is connected via rj45 i get no mac address from ABWifi

on the panels, if i create it in the designer how do i make it so the panel is sized correctly on different devices?

joolz
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
4) If you have problems with Screen-size and you are not able to sort it out, you might need to open an external video-player using intents. The disadvantage is that your app requires a third-party app and you won't be able to add OSD (On Screen Display).
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top