How do I get video object to play ??

Get help using Construct 2

Post » Wed Jun 18, 2014 11:12 pm

Hey-- sorry if everyone is asking this-- i cannot find a tutorial on it so i am asking-- here's the deal;
I have a new project with a video object and a button in it and have loaded a short ".ogv" video clip as per the instructions and i want to get the video to play when i click the button-- it is not working the same way as the audio object when i click a button for that.
I would be grateful for any help at all &&
kind regards, mark-p.
B
12
S
3
G
3
Posts: 93
Reputation: 3,951

Post » Thu Jun 19, 2014 2:11 am

Hm? There is a Video Object? Or is it a plugin?
Either way, best thing to do right now is to link 'dat capx
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,481

Post » Thu Jun 19, 2014 8:07 am

Without the .capx it's hard to say but a few suggestions:

Are you certain you are using the Button Objects's conditions to test for click?

Have you imported the video file?

Have you put the exact video file name in the correct source field for the Video plugin?
e.g. if the video is a webm video entitled 'myway.webm' then that should be the exact file name you should use, no quotes, in the webm source field.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,554
Reputation: 60,452

Post » Thu Jun 19, 2014 9:19 am

Manual Entry

It covers it nicely. I was playing around the other day. Pretty cool addition indead.

Take note of this
Due to the complexities of video compression and the patent-encumbrance of h.264, Construct 2 does not provide a video importer like it does with audio. You must encode your video files yourself, and then import them as project files.

Also what browser as not all browsers play ogg files. You have to import each format as project file.
THese are the formats:
WebM source
Ogg Theora source
H.264
The play/stop/pause etc is easy once it is set up properly - check the manual entry.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,728

Post » Thu Jun 19, 2014 11:19 pm

Hey "DUTOIT"-- thanks-- i would goto the tutorial-- but there is no tutorial-- && it does not "Do It Nicely" as of yet < if there is a Tut, i cannot find it && if someone will shoot the link to me here i will be very grateful >.
Also-- are ya'll saying that i have to put all three formats of the same video clip into the project to get it to play on ANY browser as opposed to EVERY browser ??
Anyway-- there's not really any need for a capx-- i have one button, one video object, one .ogv file-- that is all && i will post a screenshot or two && yes-- as far as i can tell-- i have loaded the correct file name into the correct field. Again, if someone knows the location of a tutorial or wants to write one and shoot me the link-- i will be very grateful. I just need to be able to get it to play when i click the button for now &&
kind regards, mark-p.
B
12
S
3
G
3
Posts: 93
Reputation: 3,951

Post » Thu Jun 19, 2014 11:30 pm

Why can I not delete this ??
Last edited by markpouncey on Sat Jun 28, 2014 11:47 pm, edited 1 time in total.
B
12
S
3
G
3
Posts: 93
Reputation: 3,951

Post » Fri Jun 20, 2014 6:30 am

I've attached a .capx. Does this work for you?

If not, what browsers are you testing on?
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
137
S
31
G
87
Posts: 5,554
Reputation: 60,452

Post » Fri Jun 20, 2014 8:38 am

markpouncey wrote: Also-- are ya'll saying that i have to put all three formats of the same video clip into the project to get it to play on ANY browser as opposed to EVERY browser ??


Yip, you need all three video formats to play in all the main browsers. Google html5 video player - that is what this is, it will show you what browsers play what files etc etc
There are no tutorials yet, as it was just released to beta a week or so ago.
The main man "zenox98" has put a capx above which should solve it for you.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,728

Post » Wed Jun 25, 2014 8:46 pm

DUTOIT-- you da man !!! thanks so much for your help && for your time.
kind regards, mark-p.
B
12
S
3
G
3
Posts: 93
Reputation: 3,951

Post » Wed Jun 25, 2014 8:50 pm

>> zenox98-- you also-- are da man-- thanks you so much for your time and your help-- i am grateful to you &&
kind regards, mark-p.
B
12
S
3
G
3
Posts: 93
Reputation: 3,951

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests