Author Topic: Youtube TV (in web browser)  (Read 1871 times)

0 Members and 1 Guest are viewing this topic.

rio14

  • Contributor
  • ***
  • Posts: 59
  • Karma: 4
    • View Profile
Youtube TV (in web browser)
« on: March 02, 2016, 11:07:59 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Youtube TV (in web browser)
« Reply #1 on: March 03, 2016, 01:49:49 PM »
RoboB should  normally support anything that Internet Explorer supports.  It will depend on which version of Internet Explorer you have installed.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Youtube TV (in web browser)
« Reply #2 on: March 03, 2016, 04:00:57 PM »
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.
Code: [Select]
<?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>
« Last Edit: March 03, 2016, 04:04:19 PM by nime5ter »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Youtube TV (in web browser)
« Reply #3 on: March 03, 2016, 04:48:08 PM »
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

Code: [Select]
<?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>[youtube]https://www.youtube.com/watch?v=cJLv2JzWhSc[/youtube]</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
« Last Edit: March 03, 2016, 05:37:41 PM by PegLegTV »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Youtube TV (in web browser)
« Reply #4 on: March 03, 2016, 06:43:58 PM »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Youtube TV (in web browser)
« Reply #5 on: March 03, 2016, 07:53:15 PM »
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