Skip to content

Remote video via streaming protocols such as HLS or DASH #1937

Answered by thienphuoc
thienphuoc asked this question in Q&A
Discussion options

You must be logged in to vote

It's truly amazing; today I ran it again on version 2.1.3 and it seems to be resolved.

   ax::ui::VideoPlayer*  _videoPlayer = ax::ui::VideoPlayer::create();
    _videoPlayer->setPosition(winSize / 2);
    _videoPlayer->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
    _videoPlayer->setContentSize({800,600});
    _videoPlayer->setURL("https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8");
    _videoPlayer->play();
    this->addChild(_videoPlayer);

It is working well. I think you fixed it, right @rh101 ?

Thank you very much.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@thienphuoc
Comment options

thienphuoc May 29, 2024
Author Sponsor

@GamesStudioTwo
Comment options

@thienphuoc
Comment options

thienphuoc Jun 3, 2024
Author Sponsor

Answer selected by thienphuoc
@rh101
Comment options

rh101 Jun 3, 2024
Collaborator

@halx99
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants