×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Director fullscreen 16:9 video

Director fullscreen 16:9 video

Director fullscreen 16:9 video

(OP)
Hi there,
I'm currently working on a Director project that includes 16:9 video, which initially comes up in a window in the stage, and when the user clicks on the video, it goes fullscreen. My problem is, when the video goes fullscreen, it takes the resolution of the monitor and squashes the video into 4:3 mode. Does anyone know how to fix this? Or if there is a script that can fix this?

I'm using MPEG Advance Xtra, and they have a fullscreen toggle script that I will post below. But I an unable to work out how to fix this for 16:9 vision. Any help would be much appreciated!

-- Mpeg Advance Xtra Full Screen behavior

-- You are free to use, modify and redistribute this code with your Director projects

property pFullScreenAtStart
property pFullScreenOnClick
property pIsFullScreen
property pOriginalStageRect
property pOriginalSpriteRect

on mouseUp me
  if pFullScreenOnClick then
    me.toggleFullScreen()
  end if
end

on beginSprite me
  if pFullScreenAtStart then
    me.toggleFullScreen()
  end if
end

on toggleFullScreen me
  if not pIsFullScreen then
    pOriginalStageRect = (the stage).rect
    pOriginalSpriteRect = sprite(me.spritenum).rect.duplicate()
    (the stage).rect = the desktoprectlist[1]
    sprite(me.spritenum).rect = the desktoprectlist[1]
    pIsFullScreen = true
  else
    (the stage).rect = pOriginalStageRect
    sprite(me.spritenum).rect = pOriginalSpriteRect
    updatestage
    --force the stage to redraw, necessary in MacOS Classic
    the stagecolor = the stagecolor
    updatestage
    pIsFullScreen = false
  end if
end

on endsprite me
  if pIsFullScreen then
    me.toggleFullScreen()
  end if
end

on getPropertyDescriptionList  
  set description = [:]
  addprop description, #pFullScreenAtStart, [#default: false, #format:#boolean, #comment: "Enable full screen at beginsprite:"]
  addprop description, #pFullScreenOnClick, [#default: true , #format:#boolean, #comment: "Toggle full screen on click:"]
  
  return description
end

on getBehaviorDescription me
  return "Drag to video sprite to enable it to resize the stage and play in full screen mode." & RETURN & "PARAMETERS:" & RETURN & "• Enable full screen at beginsprite -  When enabled the movie will go in full screen mode as soon as the video sprite is initialized"  & RETURN & "• Toggle full screen on click -  Determines if full screen mode will be enabled and disabled when the user clicks on the video sprite."  
end

RE: Director fullscreen 16:9 video

sprite(me.spritenum).rect = the desktoprectlist[1]

This line is setting the video to the shape of the monitor. You can modify it so that the rect stays 16:9.

Kenneth Kawamoto
www.materiaprima.co.uk

RE: Director fullscreen 16:9 video

you also have to make sure that your video is in the correct pixel aspect ratio prior to importing it into Director.

ideally, you'd encode the video file to square pixels - which would mean that you'd need to change a 16:9 video to something like 1024 X 576. then when you import it into Director you can  check "keep aspect ratio" in the behaviours tab for fullscreen script.

Dan

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close