Jump to content

Newbie Question: Videoplayer


Bolko
 Share

Recommended Posts

Hi there,

i´m considering using pixi for a web project with several minigames built-in.

Now I want to clear if there are any problems/limitations in using HD fullscreen video or a video player in pixijs?

 

I couldn´t find any Video Class (similar to Flash´s Video Class) in the docs,

so what is the common way of implementing a video player in pixi?

Link to comment
Share on other sites

Griaß dih,

 

try this

 

var vidTexture = PIXI.VideoTexture.fromUrl("yourVid.mp4");
var vidSprite = new PIXI.Sprite(vidTexture);
stage.addChild(vidSprite);
 
As for player controls.. I don't know anything about that, sorry. I too am a noob. But at least you get closer to your goal. 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...