Author Topic: Youtube Full screen autoplaying slide  (Read 256 times)

Offline timcough

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Youtube Full screen autoplaying slide
« on: February 07, 2017, 01:31:14 PM »
I had to make a slide for showing a YouTube video on a bunch of Scala Players. Here's the code in the off chance anyone else wants to make use of it.

Code: [Select]
!ScalaScript1101
// Saved by Scala Designer Release 11.01.00 at 2016-12-08 12:13:25
//Designed by Tim Coughlin - tim@squirrelnest.net
:"Autoplay Youtube.sca"
{
  Group:
    Template String(video("https://www.youtube.com/embed/youtube_code_here?autoplay=1"));
    Template Integer(Time_in_milliseconds(1000));
    BackgroundSettings(Size(1024, 768));
    Config.RecentPublishLocations(PublishLocation("scala ContentManager", "Autoplay Youtube"), PublishLocation("Scala", "Autoplay Youtube"));
  Sequence:
    :"Youtube Video"
    {
      Group:
        Picture("<local-storage-location>\YouTube-logo-full_color.png", Wipe("PaintRoller", Duration(1000), Direction(90), Acceleration(1, 1)), Backdrop(Pen(1)), Transparent(On), Margin(10, 10, 0, 0), UserPalette(RGBPen(1, $0, $ffffff, $999999, $555555, $712068, $df449c, $dc110e, $662200, $ff5a00, $ff9c00, $ffee00, $8800, $dd00, $cccc, $66ff, $aa, $777777, $bbbbbb, $dddddd)), AutoScale(FillAndTrim), Operation(On));
        WebClip(0, 0, video, Transparent(Off), Operation(On), RenderSize(1024, 768));
        HardDuration(Time_in_milliseconds);
    }
}


Also, you'll need to specify a display picture location under where it says
Code: [Select]
Picture("<local-storage-location>\YouTube-logo-full_color.png" or remove the display picture.

Offline HenryMac

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Youtube Full screen autoplaying slide
« Reply #1 on: February 10, 2017, 07:52:24 AM »
Thanks!!