0

I can change scale of my simple page in safari by cmd+"+"

<!DOCTYPE HTML>
<html lang="en">
<head>
</head>
<body>
<video width="320" height="240" controls src='../videos/video.mp4'>
</video>
/body>
</html>

but can't change it in WebView by:

id doc = [[[self.web mainFrame] frameView] documentView];
[doc scaleUnitSquareToSize:NSMakeSize(0.5, 0.5)];
[doc setNeedsDisplay];

the video disappears for all scales except 1.0. Why?

in console: "FlateDecode: decoding error: incorrect data check."

SOLVED IN HTML

i've added zoom line in my html tag and video scale now is ok

maybe someone knows how to solve it in cocoa webkit

rozochkin
  • 679
  • 1
  • 7
  • 18

1 Answers1

0

Checkout these links

hope it helps

Community
  • 1
  • 1
mustafa96m
  • 329
  • 3
  • 16