News:

HOT TIP! In the command editor, you can ctrl-click and drag an item to create a copy of it.

Main Menu

Youtube TV (in web browser)

Started by rio14, March 02, 2016, 11:07:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rio14

thank you it works good now
other thing i iput the link of aljazeera tv on youtube it works on firefox  if some one has an  improvement for diplaying the window, i think robob doesnt support html5 and youtube. thank you

jitterjames

RoboB should  normally support anything that Internet Explorer supports.  It will depend on which version of Internet Explorer you have installed.

nime5ter

#2
I have tested the Al-Jazeera youtube stream in RoboB (using Internet Explorer 11) and it is working for me.

However, the only way I can make it full-screen is to use mouse emulation, because IE11 doesn't seem to support the youtube keyboard shortcuts.

But in this case, using a regular browser is fine -- Firefox or Chrome. If you want to have the video automatically go full-screen, you can use the keyboard shorcut "f".

*BUT* regular keyboard emulation does not work. Youtube keyboard shortcuts require DirectX, so you would need to enable the DxInput plugin.

e.g.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.6-->
<command id="174" name="++aljazeera full screen" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch.OpenURL</cmdType>
    <params>
      <param>https://PUT YOUR DESIRED YOUTUBE URL HERE</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>5000</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Window.Focus</cmdType>
    <params>
      <param>firefox</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>DxInput.KeyPress</cmdType>
    <params>
      <param>f</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>al ja zeera full screen</phrase>
</command>

TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

PegLegTV

#3
I've been working on a command for controlling netflix.com with RoboB and I found for keyboard shortcuts to work you have to click the mouse on the window then use DxInput to issue the keyboard shortcut,

this command makes a youtube video fullsceen using mouse emulation and dxinput

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.6-->
<command id="175" name="RoboB Youtube FullScreen " enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>RoboB.Select</cmdType>
    <params>
      <param>Youtube</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RoboB.Navigate</cmdType>
    <params>
      <param>https://www.youtube.com/watch?v=cJLv2JzWhSc</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RoboB.Show</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RoboB.Wait</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Mouse.MoveAbsolute</cmdType>
    <params>
      <param>200,200</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Mouse.LeftClick</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>DxInput.KeyPress</cmdType>
    <params>
      <param>f</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>


you may have to change the mouse coordinates

jitterjames

Personally I am not able to make youtube go full screen with the F key if I am using Internet Explorer.  It simply won't do it.  I get a message that full screen is unavailable with a link that is completely useless and provides no pertinent information.

Yet I can click on the fullscreen icon and it works fine.

PegLegTV

well that's better then I got with internet explorer (on windows 10) It would crash the browser when trying to load a video

Microsoft Edge and Firefox work with F to make it go full screen

when I use the command posted above it works 8 out of ten times but I think that has to do with weather the video has started