How do I play video?

Get help using Construct 2

Post » Wed Sep 03, 2014 10:09 am

I have made short video and I trying to install it to in my game but nothing happens. I have all three different code types (mp4,ogv,WebM) Video is small slide show. file size is 3mb.
I have add media= video, I have set all sources in properties and autoplay is yes, but video is not playing.
Is there any good tutorial where I can see how make things work? Any idea what I have made wrongly?
B
7
S
1
Posts: 36
Reputation: 556

Post » Wed Sep 03, 2014 5:35 pm

Is there anyone who could help me?
B
7
S
1
Posts: 36
Reputation: 556

Post » Wed Sep 03, 2014 5:59 pm

If the video object is on your layout, the names of your videos are inputted in the video-object properties and the videos themselves have been added to the project files, it should work..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Sep 03, 2014 6:46 pm

Ok this is weird. I did not change nothing. I try it in Explorer browser and its work there. Then it try it again in chrome and it started to work there as well!?! it still not working if I try to use firefox. Only bit god know what happened.
B
7
S
1
Posts: 36
Reputation: 556

Post » Wed Sep 03, 2014 6:54 pm

I just use Firefox and the attached 'very' simple example works for me.

Does it work for you in Firefox?
You do not have the required permissions to view the files attached to this post.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Wed Sep 03, 2014 8:07 pm

I try it and it works fine. I just "fix" my problem. I removed the WebM format and now my video works firefox as well. I guess its fine if I only use mp4 and ogv format.
B
7
S
1
Posts: 36
Reputation: 556

Post » Fri Sep 05, 2014 1:10 pm

Now I had new problem. Every browser can play video clip but some phones not. When I try XDK emulator some phones play it and some not. My own phone not playing it as well. I have all three video sources. mp4, ogv and webm and they working now. Do I need video player plugin or what? And if i do where I can find it? I try it to search it but not find any.
B
7
S
1
Posts: 36
Reputation: 556

Post » Mon Nov 17, 2014 3:54 pm

Hi @MrRuho I have the same problem: cant reproduce videos on XDK
B
86
S
25
G
11
Posts: 652
Reputation: 11,045

Post » Sun Nov 30, 2014 2:42 pm

@Ashley ,

I've imported a video file named VideoTest in both mp4 and webm formats.

I set up the Video object and type the names of the video files (VideoTest.mp4, VideoTest.webm) on the H.264 source and WebM source fields respectively.

If I preview, the video playbacks OK.

If I export and upload the folder structure on the server, the video doesn't work. Looking on the exported folder, i see that C2 exported both video files with their names in lowercase letters (videotest.mp4, videotest.webm). I believe this is causing the problem.

Is this by design? Does indeed causing the problem? Should we only import and use files that are named with lowercase letters?

Thanks.
composer - multimedia artist
www.eli0s.com/en/
B
68
S
26
G
4
Posts: 1,146
Reputation: 9,649

Post » Sat Jan 17, 2015 5:53 am

Anyone got a solution?
B
86
S
25
G
11
Posts: 652
Reputation: 11,045


Return to How do I....?

Who is online

Users browsing this forum: stevenode and 11 guests