Roku Inc. shares hovered between gains and losses and were up more than 1% in the extended session Wednesday after dropping about 9%. The streaming company beat on earnings and issued better-than-expected second-quarter guidance. Roku stock closed up 8.9% to $36.08 during regular trading. The company reported first-quarter net losses of $6.6 million, or 7 cents a share, compared with losses of $8.7 million, or $1.79 a share, in the year-ago period. Adjusted earnings were also 7 cents a share. Revenue rose to $136.6 million from $100.1 million in the year-ago period. Roku platform revenue exceeded hardware revenue for the first time, banking $75.1 million, which was above the FactSet consensus estimate. Analysts surveyed by FactSet had estimated GAAP losses of 16 cents a share on revenue of $127.5 million. For the second quarter, analysts model GAAP losses of 14 cents a share on revenue of $135.7 million. The company said it expects second-quarter net losses of $14 million to $19 million on sales of $135 million to $145 million. Roku stock has fallen 31% this year, with the S&P 500 index falling a fraction.