Roku (ROKU) - Get Report  shares are rising after hours Wednesday after the television-streaming company reported narrower-than-expected second-quarter losses.

The Los Gatos, Calif., company swung to a net loss of 8 cents a share from break-even in the year-earlier quarter. Analysts surveyed by FactSet were expecting the company to report a net loss of 23 cents a share.

Revenue reached $250.1 million, up 59% over the year-earlier $156.8 million. Analysts were expecting $223.9 million.

The company said it ended the quarter with $387 million in cash.

Roku raised its full year outlook. It now pegs the midpoint of its revenue estimate at $1.09 billion, a 46% increase year over year. 

Gross profit is now seen at $485 million instead of $470 million. Full year adjusted earnings before interest, taxes, depreciation and amortization should range $30 million to $40 million, Roku estimated. 

Roku shares were trading after hours up 8.5% at $109.56.