Thank you, Luhan, and thank you all again for participating in Xunlei's conference call to discuss the financial results of the first quarter of 2024. In the first quarter, total revenues were $80.4 million, representing a decrease of 19% year-over-year. The decrease was mainly attributable to the decreased revenue from our live streaming business as a result of the downsize of our domestic audio live streaming operations since June 2023.
Revenues from cloud computing were $30.2 million, representing a decrease of 7.8% year-over-year. The decrease was mainly due to the decreased revenues from certain of major customers of cloud computing services as well as the decreased sales revenue of cloud computing hardware devices.
Revenues from subscriptions were $33.1 million, representing an increase of 12.9% year-over-year. The increase was mainly driven by the increase in the number of subscribers. The number of subscribers was 5.76 million as of March 31, 2024, compared with 4.84 million as of March 31, 2023. The average revenue per subscriber for the first quarter of 2024 was RMB 39.5 million compared with RMB 41 million in the same period last year. The lower average revenue per subscriber was due to more promotional activities we conducted during the first quarter of 2024. Revenues from live streaming and other IVAS were $17.1 million, representing a decrease of 54.1% year-over-year. The decrease of live streaming and other IVAS revenues was mainly due to the downsize of our domestic audio live streaming operations since June 2023.
Costs of revenues were $37.1 million, representing 46.2% of our total revenues compared with $59.3 million or 59.8% of the total revenues in the same period of 2023. The decrease in the cost of revenues was mainly attributable to the decreased revenue sharing costs for our live streaming business, which was consistent with a decrease in live streaming revenues.
Bandwidth costs, as included in cost of revenues, were $27.1 million, representing 33.8% of our total revenues compared with $29.1 million or 29.3% of the total revenues in the same period of 2023. The decrease was primarily due to the decreased bandwidth usage for the development of innovative products and a decrease in sales revenue of our cloud computing services during the quarter. The remaining cost of revenues mainly consisted of the cost related to the revenue sharing costs for our live streaming business, payment handling charges, cost of inventories sold, and depreciation of servers and other equipment.
Gross profit for the first quarter of 2024 was $42.8 million, representing an increase of 8.2% year-over-year. Gross profit margin was 53.3% in the first quarter of 2024, compared with 39.9% in the same period of 2023. The increase in gross profit was mainly driven by the increase in the gross profit of our subscription business, and the increase in gross profit margin was mainly attributable to the increased percentage of subscription revenues to total revenues, which has a high gross profit margin as well as the decreased percentage of live streaming revenues to total revenues, which had a relatively lower gross profit margin.
Research and development expenses for the first quarter of 2024 were $17.6 million, representing 22% of our total revenues, compared with $18 million or 18.2% of our total revenues in the same period of 2023. The decrease was primarily due to the decrease in employee compensation incurred during the quarter. Sales and marketing expenses for the first quarter of 2024 were $10.1 million, representing 12.5% of our total revenues, compared with $9.3 million or 9.4% of our total revenues in the same period of 2023. The increase was primarily due to more marketing expenses incurred during the quarter for our subscription and overseas live streaming businesses as part of our ongoing efforts on user acquisition.
G&A expenses for the first quarter of 2024 were $11.1 million, representing 13.9% of our total revenues, compared with $11.7 million or 11.8% of our total revenues in the same period of 2023. The decrease was primarily due to the decreased share-based compensation expenses, partially offset by the increase in labor costs during the quarter. Operating income was $4 million compared with an operating income of $0.7 million in the same period of 2023. The increase in operating income was primarily attributable to the increase in gross profit from our subscription business during the quarter. Other income was $0.3 million compared with other income of $1.4 million in the same period of 2023. The decrease was primarily due to onetime write-off, a long-term investment, and a decrease in subsidy income received during the first quarter of 2024.
Net income was $3.6 million compared with $1.2 million in the same period of 2023. Non-GAAP net income was $4.5 million in the first quarter of 2024, compared with $5.5 million in the same period last year. The increase in net income was primarily attributable to the increase in the gross profit of our subscription business, partially offset by the decrease in other income as discussed above. The decrease in non-GAAP net income was primarily attributable to the increase in labor costs as compared with the same period of 2023. Diluted earnings per ADS in the first quarter of 2024 was approximately $0.06 as compared to $0.02 in the same period of 2023.
As of March 31, 2024, the company had cash, cash equivalents and short-term investments of $272.5 million, compared with $271.9 million as of March 31, 2023. The increase in cash, cash equivalents, and short-term investments was mainly due to the net cash from operations and proceeds from bank borrowings, partially offset by repayment of bank borrowings, spending on share buybacks, and payments for long-term investments during the first quarter of 2024.
Now turning to our share repurchase program. In June 2023, Xunlei announced that its Board of Directors has authorized repurchase of up to $20 million of its shares over the next 12 months. As of March 31, 2024, the company has spent approximately $4.7 million on share buybacks under the share repurchase program.
Finally, for our revenue guidance, for the second quarter of 2024, Xunlei estimates total revenues to be between $79 million and $84 million, and the midpoint of the range represents a quarter-over-quarter increase of approximately 1.4%. This estimate represents management's preliminary view as of the date of this press release, which is subject to change, and any change could be material.
Now we conclude prepared remarks for the conference call. Operator, we are ready to take questions.