Description
Load video file
type of file : mp4
location of file : <Gallery -- Downloads> in your smart phone
Syntax
loadVideo(s, x, y, w, h)
Parameters
s : file name of video
x : x-coordinate
y : y-coordinate
w : width
h : height
Usages
loadVideo("filename.mp4", 200, 200, 100, 200)
Examples in arduino
#include "AppGosu.h"
AppGosu app;
void setup() {
app.start();
app.clearAll();
app.loadVideo("filename.mp4", 10, 200, 470, 300);
app.playVideo();
delay(5000); // video playing time
app.stopVideo();
}
void loop() {
}
Examples in other MCU (AVR, PIC, MSP430)
printf("loadVideo('filename.mp4',10,200,470,300);");
from AppGosu
-----------------------------------------
No comments:
Post a Comment