Vasken
September 10, 2018, 5:06pm
1
Hello All,
It’s not autoplaying, but when tapping the UI , I am calling the video.play
Fortunately my video has audio, and on video.play() I hear the audio playing but video is not displayed.
I reffered to this: https://developer.playcanvas.com/en/tutorials/video-textures/
tutorial, using a plane, and my videotexture,js is attached to my plane, using a similar material as the tutorial is using.
Is there any other tutorial that actually shows a video being played? or any hints?
Tried on Chrome, Safari desktop and android phone, none of them showed the video, but all played the audio.
thanks in advance!
@yaustar @dave @max need your help please
yaustar
September 19, 2018, 2:02pm
2
Just tried forking the existing tutorial project and it works for me? https://playcanvas.com/editor/scene/646193
1 Like
Vasken
September 19, 2018, 2:15pm
3
@yaustar I used the code from this project, but talking about this project, where and how you can see the video playing ?
All I see is TV screens falling from the sky
yaustar
September 19, 2018, 2:39pm
4
Chrome on both Mac and Windows. Video is playing on the TVs.
Vasken
September 19, 2018, 2:49pm
5
OH I have these TV screens with black screens using chrome and safari on mac.
Might it be related to chrome or Safari versions ?
yaustar
September 19, 2018, 2:51pm
6
I’m using Version 69.0.3497.100 (Official Build) (64-bit)
Just tried it on Safari and that works too. Version macOs 10.13.6 (17G65)
1 Like
Vasken
September 20, 2018, 10:32am
7
@yaustarI just realized that I don’t see the videos on the TV screens when Fork the the project and run it from there, while before forking as I run it, I can see the videos… seems strange to me, if you can give any hints, many thanks again
yaustar
September 20, 2018, 11:00am
8
Do you get any errors in the browser console?
How fast is your internet connection?
Do you have any adblocker or other content filtering plugins on your browser?
In the network tab of developer tools, can you see the video being loaded/accessed?
1 Like
Vasken
September 20, 2018, 5:17pm
9
@yaustar thanks again.
I had issues with CORS and haven’t checked the console, my bad.
Also had the DOMException “the user didn’t interact with the document first.”
Handled both and now able to play video on my TV screens.
Thanks again for all the help!