SubtitlingLanguageControl: How to turn on/off subtitles (ClosedCaption)?

Hi,
does anybody has an practice example to turn on and off programatically the subtitles?
I've developed an accessibility profile manager, and this is one of the settings I wish to control.
I'm trying to understand how SubtitlingLanguageControl works, but I feel stupid because I have no idea on how put it to work : (
Regards,
Alemao

I've found:
   * Ativa ou desativa a exibi��o de legendas (ClosedCaption).
   * Origem: MHP Wiki - http://mhpkdbwiki.s3.uni-due.de/mhpkdbwiki/index.php/Presentation_control
  public static void setSubtitling(boolean PbVisible)
    Player oPlayer = B4Player.getPlayer(); // Pega o player
    if (oPlayer != null)
      // Busca o controle de legendas
      SubtitlingLanguageControl oSubtitlingLanguageControl = (SubtitlingLanguageControl)oPlayer.getControl("org.davic.media.SubtitlingLanguageControl");
      if (oSubtitlingLanguageControl != null)
        // Busca as legendas dispon�veis
        System.out.println("SubtitlingLanguageControl encontrado");
        String[] aLanguages = oSubtitlingLanguageControl.listAvailableLanguages();
        if (aLanguages.length > 0)
          // Se encontrou alguma legenda dispon�vel
          System.out.println("Legendas dispon�veis");
          oSubtitlingLanguageControl.setSubtitling(PbVisible); // Ativa ou desativa conforme o par�metro
        else
          System.out.println("Legendas n�o dispon�veis");
      else
        System.out.println("SubtitlingLanguageControl nao encontrado");
  }XletView doesn't support this, as many other controls like BackgroundVideoPresentationControl and GainControl : (
alem�o, from Brazil

Similar Messages

  • When I open iTunes it will automatically go to full screen mode. I can't work out how to turn this off. Only iTunes opens to full screen mode.

    When I open iTunes it will automatically go to full screen mode. I can't work out how to turn this off. Only iTunes opens to full screen mode.

    Go to System Preferences (under the Apple logo in the menu bar).  Choose "General".  Click "Always close windows when quitting an application".
    That should fix it.

  • I know how to turn bluetooth off and on but my mac book pro asks me to turn bluetooth power on. How do I do this?

    I know how to turn bluetooth off and on but my mac book pro asks me to turn bluetooth power on. How do I do this?

    Are you recovering Lion or later Time Machine backup with a Lion or later machine?
    If you are, then use this article:
    http://support.apple.com/kb/HT4718
    Other Time Machine restore options are here:
    http://support.apple.com/kb/ht1427
    Note, if recovering from a PowerPC Mac (iMac G5, PowerMac, Mac Mini G4, iBook, Powerbook), this tip is important:
    http://discussions.apple.com/docs/DOC-2295
    Otherwise use the recommended restore option with whatever backup software you used initially.

  • Safari, how to turn on/off private browsing in ios7

    how to turn on/off private browsing in Safari on Ipad with Ios7

    Left of Safari screen.
    http://i1224.photobucket.com/albums/ee374/Diavonex/8eb4f554e7099a905efc53fef5bab 277_zpsa317fe00.jpg
    (See bottom left)
    http://i1224.photobucket.com/albums/ee374/Diavonex/e3611d61d700edbc01253ded54f71 f84_zps3894e0e1.jpg

  • How to turn on/off all layers in one go?

    How to turn on/off all layers in one go?
    I wanted to turn on and off all the layers in one go, is that possible?
    Thank you for the help,
    Best
    Jamal

    Hi,
    According to your description, I would like to share the link with you:
    Airplane Mode On or Off Shortcuts - Create in Windows 8
    http://www.eightforums.com/tutorials/24541-airplane-mode-off-shortcuts-create-windows-8-a.html
    If you want to the detail of the script, I suggest to post the question on Script Center forum for further help.
    Script Center forum:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Regards,
    Kelvin_Hsu
    TechNet Community Support

  • HT1758 I can't seem to turn off my assistant. It talks to me constantly (or on mute) and it goes through each box individually. This makes it difficult to navigate myself through pages. Please, if you know how to turn it off, help.

    I can't seem to turn off my assistant. It talks to me constantly (or on mute) and it goes through each box individually. This makes it difficult to navigate myself through pages. Please, if you know how to turn it off, help.

    In 10.6 or earlier go to: Apple / System Preferences / Universal Access and turn off Voice Over.
    In 10.8 go to: Apple / System Preferences / Accessibility / VoiceOver and uncheck the box for Enable VoiceOver.

  • I updated to 7.0.5.  I can't turn off apps from using cellular data. How to turn it off? Many thanks in advance!

    I updated to 7.0.5 just now, now I can't turn off apps from using cellular data, I turn them off but  as soon as I back out they automatically turn back on.  How to turn it off? Many thanks in advance!

    Yes i did that, but when i went back to my home screen all the applications that i've choose to not using data just automatically activate themselves.... ><

  • I just learned about apple radio on my Iphone, now please tell me how to turn it off! When I go to my home page it stays on! I had to turn off the phone.

    I just learned how to listen to music on my Apple Radio Station, now please tell me how to turn it off! I had to turn off the phone to make the radio stop playing!

    As when stopping the play of a song with the music app.
    There is a pause button and a fast forward button to the next song above the volume level indicator at the bottom. Select the pause button which will turn to a play button. When wanting to start playing again, press the play button.

  • HT1551 I by mistake turned on my speak feature on my apple TV, now it speaks everthing when I navigate the remote. I cannot figure how how to turn it off. Please help

    I by mistake turned on my speak reature on the my apple TV. Now it speaks everthing when I navigate through the remote. I cannot figure out how to turn it off.
    Please help.
    Thanks,
    BKK speak.

    Hi jwerrr,
    On your Apple TV, choose Settings > General > Accessibility 
    Change VoiceOver setting to OFF
    For more information, click on the link below:
    Apple - Support - Apple TV
    Cheers,
    Judy

  • Why are search queries automatically cleared from search bar? How to turn this off?

    Every time I search, the search bar query automatically clears itself 5-30 seconds later. I find this annoying and am just trying to determine if it is a FF feature or an add-on and how to turn it off.

    Maybe this extension: Second Search 0.7.2012122901
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to turn this off in my macosx

    Hi All, how to turn this off in my macosx
    http://postimg.org/image/4sq33zqn3/

    Go step by step and test.
      Quit Safari.
      Hold the shift key down and relaunch Safari.
    Reset Safari.
    Click Safari in the menu bar.
    From the drop down select "Reset Safari".
    Uncheck the box next to  " Remove saved names and passwords".
    Click "Reset".
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.
    Turn off Extensions if any, and launch Safari.
    Safari > Preferences > Extensions

  • HT1430 my brother pressed the voice activation and now i dont know how to turn it off.... any advice?

    my brother pressed the voice activation and now i dont know  how to turn it off... any advice?

    Do you mean Voice Control, which lets you speak commands, or VoiceOver, in which a voice speaks items on the screen?
    For Voice Control, just press the home button to exit.
    For VoiceOver:
    Turning VoiceOver On or Off

  • Had my Iphone 4s in rain and then the screen started to do funny things. (going to different screens and going to turn off screen) Want to put in a bag of rice now but can't turn it off, its just keeps turning itself on. Any help on how to turn it off.

    As the header say any help on how to turn it off or just put it in the bag of rice and hope for the best as its down to 25 % power anyways

    When an iDevice gets wet the First thing to do is Turn it Off... leaving it on is not good.
    If you cannot Turn it off... go to your nearest Apple Store.

  • I'm getting a bell sound every minute, and don't know how to turn it off.

    I'm getting a bell sound every minute, and don't know how to turn it off.

    I just fixed it!  I believe it was my Time Machine Connection.  I have a wireless connection to a NAS storage device (MyBookLive), which was not working properly.  I fixed it yesterday, and after time machine was downloaded, the bell went away.  I think Time Machine was trying to work every minute, and gave an alert when it couldn't.   Does this sound plausible?

  • My iphone 4 has a constant light on by the camera and i don't know how to turn it off?

    Hi there, i'm wondering if you can help me please. My friend has got an iphone 4 and there is a constant light on at the back by the camera. does anyone know how to turn it off please?

    Hello Vicklou83,
    Thanks for using Apple Support Communities.
    It sounds like the flashlight feature in iOS 7 might be turned on.  Take a look at this other discussions thread to assist in getting it resolved:
    How do I turn the flashlight off on my...: Apple Support Communities
    https://discussions.apple.com/thread/5655393
    Take care,
    Alex H.

Maybe you are looking for

  • Error while running reports in Portal

    Hi , While running a crystal reports in portal a pop-up appears with the following error message " Sorry = you are not logged into this server. Ensure that your user name and password, as well as the APS name are correct. " Can anyone help on this?

  • Illegal character in Auth-Header

    Hi, I am trying to send a SOAP Message from a HCP Application to a Webservice from Cloud for Customer. The request uses basic authentication. My problem now is, that I get a SOAP Exception saying that there is a illegal character in the auth header.

  • Installing a new 250Gb internal HD for a G4 MDD only formats as a 80G why?

    i recently bought an internal 250Gb as an extra internal drive for my G4 MDD DP 1.25Mhz, managed to format it ok and got it to be recognised and all that but it only mounts as a 80Gb drive and not 250Gb... any way i can change this? or fix it? as im

  • Trouble using Yahoo mail accounts on iPad

    Hello, I posted to another community as well, and we are working on this with no luck so far: I have yahoo based e-mail accounts.  I have them set to keep e-mails on server until I manually delete.  This works on my computer and iPhone, but not on th

  • Can anyone teach me how to draw this photorealistic picture?

    Dear all, Is there anyone that could teach me how to draw the "photorealistic" detail in the picture attached? Monetary compensation is available. Thank you very much David