Android translucent theme - android

I have on one side, an android application.
On the other side a video stream.
The two of them are combined together using an image mixer that puts the android application over the video stream.
Something similar to tv banner:
I am trying to make the android application translucent in order to "see through" to the image under it.
My problem is that when I set the android application theme to #android:style/Theme.Translucent.NoTitleBar.Fullscreen , I then see the wallpaper and the launcher of Android OS.
This image found online shows the result:
I there a way to get rid of the wallpaper and the launcher behind the application to not have anything behind?
Thanks.

If you're seeing the launcher, it doesn't sound like your app is on top of the video, your app is around the video. Step 1 for this would be to make the video fullscreen, then put the app on top of it. Then the transparency code will work.

Related

API to draw menu over leanback launcher?

I'd like to create an app (actually just a menu) that should work just like the Android TV settings menu.
To be more specific, I'd like my app to cover only part of the screen and let any background video play on the remaining area (exactly like what happens with the settings menu).
Here's a picture of what I'd like to obtain:
This means that I should be able to:
open Live Channels
play some content
press the home button (at this point the channel will be playing in background behind the leanback launcher)
open my app, and have the background content continue playing
Of this, I just need to figure out how to obtain point 4, the rest is just how Android TV works by default.
Just to be clear, I don't want advices on how to create an app that plays a video and has a side menu, I want to integrate this menu inside the existing Android TV background videos feature.
Is it possible? I can't find any API for this.
For the app, you can do that using a transparent theme on the activity, that should keep the background visible (you can also decide to have a pseudo-transparent background to partially hide what's behind the activity, same way settings do).
The other question about playing the live channel on the background of the leanback launcher, I am not sure, but it sounds like it should be the standard procedure.

(Delphi XE8 Android) Tmediaplayer, Android buttons wont disappear after clicking on a video

I am currently porting my adventure game engine to Android using Delphi XE8 and Firemonkey. I wanna make MP4 videoplayback possible.
I am using a Trectangle with a Tmediaplayercontrol on it. Both are set to align=client.
The game itself runs in borderless fullscreen. Playback of a video works just fine. I make the rectangle visible and load the video. I can also hide the rectangle afterwards.
The problem is : When i tap on the running video the android buttons appear to the right... and won't go away. Even when the playback is finished and the rectangle not visible anymore.
Android Buttons blocking a part of the game
Also at this point the Back Button doesn't work anymore.
Does anyone know what is going on there and how i can prevent this when the user taps on the video?

Is it possible to add an logo as mark to html5 video player on iphone ios / android

I want to add an logo as mark (on the right bottom side) to an video on IOS or android but not into the video. I want add the logo as overlayer.
Is that possible?
That's possible using an overlay (div) element on top of the video element. For instance, the guys from dash-player.com are doing that. Just have a look into their DOM. The only limitation (to the best of my knowledge) is fullscreen playback on an iOS device, where no overlays are possible.

Volume slider while casting

I need to show the volume slider while casting an audio content to a Chromecast remote.
If I put the app to the background the slider is shown (see this).
The problem is that the framework does not show the slider when the app is not in the background.I guess it is because an application can decide to do something else.
I have tried to call
mAudioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_SAME, AudioManager.FLAG_SHOW_UI);
with no success: the slider that is shown does not have the Chromecast icon and does not report the current volume on the remote. In other words the slider is related with the local audio volume.
is there a way to ask the framework to keep showing the slider even when the app is in the foreground?
Edited
Actually the behaviour even with the VideoCast app is a bit inconsistent. On some phones it is enough to bring the app in the background and make the framework showing the volume slider. After that it will keep showing it even when the app is in the foreground. On other phones this does not work or it is not necessary because the slider is shown correctly.
There is a bit of improvement that can be made; when media is playing back (i.e. if it is not on pause), you can achieve what you want. To see how, you need to override onKeyDown; take a look at the CastVideos-android sample, in class VideoBrowserActivity and try that to see if it does what you'd like or not.
Since you want to show the Chromecast control instead of the generic music control, you need to call:
mAudioManager.adjustSuggestedStreamVolume(AudioManager.ADJUST_SAME,
AudioManager.USE_DEFAULT_STREAM_TYPE, AudioManager.FLAG_SHOW_UI);

How to use a music font to display sheet music on an android tablet

I am working on an android tablet app for displaying sheet music giving it some basic editing and playing capabilities.
My first hurdle is how to display the music in the first place.
The majority of desktop apps use music fonts, which makes zooming and resizing quite "simple". However, it would appear that I would need to be able to access the individual glyphs to do this - which is not possible in android as far as I understand.
Should I stick with a music font and try to find a way to get the information needed ?
Should I abandon this and be looking at using svg files or transparent PNGs ?
Can anyone advise here, please ?

Categories

Resources