[PLUGIN] Video

Post your completed addons to share with the community

Post » Sun Mar 11, 2012 12:40 am

im stuck i have to make a game with videos playing fom my computer, but without a video function its impossible :s...
B
32
S
9
G
6
Posts: 1,469
Reputation: 7,955

Post » Mon Mar 19, 2012 12:02 am

Update:

Add version to 1.0
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Fri Apr 06, 2012 1:32 am

@rexrainbow Question when my video displays on screen and i set event 'when pressed any key or space go to layout' this dont work
B
170
S
3
G
2
Posts: 65
Reputation: 6,057

Post » Fri Apr 06, 2012 2:04 am

[QUOTE=NRABrazil] Hi Rex,

Thanks for your great contributions for C2 community!

I test this plugin with a mp4 video file, which I copied to exporter folder in the server (Dropbox).

Video Test

It worked in Chrome, but not in iPad/Safari!

Anyone has tested it in iPad?
[/QUOTE] strange i'm using chrome too but video is not playing.. just a black screen
B
30
S
6
G
5
Posts: 433
Reputation: 6,061

Post » Fri Apr 06, 2012 3:54 am

@Guif0DA

Maybe it is unsupported format.

Reference: Video Formats


Video Formats and Browser Support

Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and Ogg:
Browser      MP4      WebM      Ogg
Internet Explorer 9      YES      NO      NO
Firefox 4.0      NO      YES      YES
Google Chrome 6      YES      YES      YES
Apple Safari 5      YES      NO      NO
Opera 10.6      NO      YES      YES

    MP4 = MPEG 4 files with H264 video codec and AAC audio codec
    WebM = WebM files with VP8 video codec and Vorbis audio codec
    Ogg = Ogg files with Theora video codec and Vorbis audio codec
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Fri Apr 06, 2012 4:09 pm

@kataryna

I test it before, it can change layout under playing video.

test capx, test in firefox.rexrainbow2012-04-06 16:10:38
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Mon Apr 16, 2012 11:21 am

for anyone wondering, this plugin cannot be used in android applications, it will throw exception: ERROR/http(2882): Null or empty value for header "Host". don't know why really, seems like android browser cannot play local videos from android_asset folder. as per http://stackoverflow.com/questions/5865946/how-to-play-video-in-android-web-view-using-html5 videos CAN be played from SD card, or by removing src attribute and controlling <video> by javascript. sad :(
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Mon Apr 16, 2012 11:25 am

ah, also, @rexrainbow if you're using:

<video src="..."></video>

i think this is bad. you shoud use this in your plugin:

<video>
<source src="video/video.ogv">
</video>
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Wed Apr 18, 2012 12:01 am

@ranma

Thanks, I'll check it latter.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Fri Apr 20, 2012 12:10 am

really nice plugin!
gratz Rex! :)
B
4
G
2
Posts: 7
Reputation: 1,446

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest