mrmaffen / vlc-android-sdk

VLC Android SDK pushed to Maven Central. Primarily used in project tomahawk-android.
792 stars 244 forks source link

Enable teletext and fullscreen mode by calling native function #81

Open ns50254 opened 7 years ago

ns50254 commented 7 years ago

Hello, I have been facing a problem enabling teletext and fullscreen mode in libvlc android. In videolan developers documentation I have found that there were two native function available libvlc_toggle_fullscreen (libvlc_media_player_t p_mi) and libvlc_toggle_teletext (libvlc_media_player_t p_mi). I want to access these two function through LibVLC instance. Can anyone guide me how to access those 2 methods and enable full screen and teletext in libvlc android player?

SaundersB commented 7 years ago

Not sure about teletext, but full screen mode can be obtained by setting the surface view to the full display, hiding the menu buttons on the screen, and keeping the screen awake.

JohanJarvi commented 6 years ago

@SaundersB can you provide some sample code of how to do this? Because I've been trying to set my surface view to the full display and my RTSP stream still only plays the size that the stream is, i.e. if my phone is set to HD (1920x1080) and my RTSP stream is 720, the screen won't get filled even though the surface view fills the whole screen.