{"action":"created","issue":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1872","labels_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1872/labels{/name}","comments_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1872/comments","events_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1872/events","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1872","id":85540463,"number":1872,"title":"Video loop using video texture","user":{"login":"pavan4","id":464335,"avatar_url":"https://avatars.githubusercontent.com/u/464335?v=3","gravatar_id":"","url":"https://api.github.com/users/pavan4","html_url":"https://github.com/pavan4","followers_url":"https://api.github.com/users/pavan4/followers","following_url":"https://api.github.com/users/pavan4/following{/other_user}","gists_url":"https://api.github.com/users/pavan4/gists{/gist_id}","starred_url":"https://api.github.com/users/pavan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavan4/subscriptions","organizations_url":"https://api.github.com/users/pavan4/orgs","repos_url":"https://api.github.com/users/pavan4/repos","events_url":"https://api.github.com/users/pavan4/events{/privacy}","received_events_url":"https://api.github.com/users/pavan4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-05T13:59:12Z","updated_at":"2015-06-05T14:58:51Z","closed_at":null,"body":"I used the sample for rendering a video as a sprite  from here : https://github.com/GoodBoyDigital/pixi.js/tree/v2.x/examples/example%2025%20-%20Video \r\n\r\nI would like to knwo How could I run the video in a loop. I would also like to reset the playback i.e., start the video from the beginning by attaching the call to an event. Is it possible to do this? I could not get this information from the documentation.\r\n\r\nIf anyone could point me towards a guide I will be grateful"},"comment":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/comments/109320190","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1872#issuecomment-109320190","issue_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1872","id":109320190,"user":{"login":"englercj","id":944497,"avatar_url":"https://avatars.githubusercontent.com/u/944497?v=3","gravatar_id":"","url":"https://api.github.com/users/englercj","html_url":"https://github.com/englercj","followers_url":"https://api.github.com/users/englercj/followers","following_url":"https://api.github.com/users/englercj/following{/other_user}","gists_url":"https://api.github.com/users/englercj/gists{/gist_id}","starred_url":"https://api.github.com/users/englercj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/englercj/subscriptions","organizations_url":"https://api.github.com/users/englercj/orgs","repos_url":"https://api.github.com/users/englercj/repos","events_url":"https://api.github.com/users/englercj/events{/privacy}","received_events_url":"https://api.github.com/users/englercj/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T14:58:51Z","updated_at":"2015-06-05T14:58:51Z","body":"```js\r\n var stage = new PIXI.Stage(0xffffff);\r\n var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight);\r\n document.body.appendChild(renderer.view);\r\n requestAnimFrame(animate);\r\n var texture = PIXI.VideoTexture.fromUrl(\"testVideo.mp4\");\r\n var moveSprite = new PIXI.Sprite(texture);\r\n stage.addChild(moveSprite); \r\n function animate() {\r\n    requestAnimFrame(animate);\r\n    renderer.render(stage);\r\n }\r\n\r\n// you can access the video element like this:\r\ntexture.source;\r\n\r\n// you can do to it, anything you can do to an HTML5 video element. Such as, seeking, pausing, playing, looping, etc.\r\n```\r\n\r\nThis code you pasted is for v2, you should upgrade to v3 if you have a chance."}}