Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dreamer2057
Channel Surfer

SetDestinationRect negative positioning

Hello!

Is it real set playing rectangle to negative position numbers?
I use SetDestinationRect function (http://sdkdocs.roku.com/display/sdkdoc/ifVideoPlayer#ifVideoPlayer-SetDestinationRectrectasObjectasV...).

m.player.SetDestinationRect(-10, 0,1280,720)

When setting these values (negative) picture behaves very strangely. First of all it moves right, like on the picture below:

Then, when i try increase negative value, for ex:
m.player.SetDestinationRect(-11, 0,1280,720)

m.player.SetDestinationRect(-12, 0,1280,720)

...
m.player.SetDestinationRect(-100, 0,1280,720)

...
m.player.SetDestinationRect(-200, 0,1280,720)

it starts moving to the left, like this:

After a certain value, picture disappears, shifted very far to the right, i suppose.

Also i suppose, that shift by axis 'y' works similarly.

Can someone explain how works mechanism of the displaying picture?

P.S. What i want to do:

Increase picture (by zooming), shift its position and to crop by the top and bottom.

THANKS!
Sincerely, Sergey Shoshin, software developer.
0 Kudos
2 REPLIES 2
Evgheny
Visitor

Re: SetDestinationRect negative positioning

I have the same issue
0 Kudos
psatish
Visitor

Re: SetDestinationRect negative positioning

Having the same issue. Is it a Roku firmware bug? Is it likely to be fixed .
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.