diff --git a/Doc/Makefile b/Doc/Makefile index 00799530b578fc14f8cf2ad7c5b430b037fc1d5c..2f33e6c9b6f5570d0bf63a3d8c891efe84e762ed 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -54,6 +54,7 @@ all: ${BUILDROOT}/${BUILDNAVI}/printversion.pdf ${BUILDROOT}/${BUILDNAVI}/index. popd;\ done; cd ${BUILDROOT}/Sda1/Ref/Video;$(MAKE) all + cd ${BUILDROOT}/Sd1/Ref/Video;$(MAKE) all cd ${BUILDROOT}; tar c- ${DOCMODULES} | tar -x -C ${BUILDNAVI} ${BUILDROOT}/${BUILDNAVI}/index.html: ${BUILDROOT}/${SCRIPTBASENAME}.xml diff --git a/Doc/Sd1/Ref/Video/Makefile b/Doc/Sd1/Ref/Video/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..086138f74eed881a674ea6b0d1d6e00f623376b1 --- /dev/null +++ b/Doc/Sd1/Ref/Video/Makefile @@ -0,0 +1,20 @@ +# Hint: .ogv --> mp4 +# ffmpeg -i dataInsert.ogv -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre slow -crf 22 -threads 0 dataInsert.mp4 +# ffmpeg -i $<.ogv -aq 80 -vcodec libx264 -strict -3 -preset slow -crf 25 -threads 0 $< + + +mp4Set = scannerUsage.mp4 + +ogvSet = $(foreach file,$(mp4Set),$(file).ogv ) + +all: $(ogvSet) + + + +%.ogv:% + ffmpeg2theora -o $<.ogv $< + +clean: + rm -f $(ogvSet) + +#end diff --git a/Doc/Sd1/Ref/Video/scannerUsage.mp4 b/Doc/Sd1/Ref/Video/scannerUsage.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..8458a41655158c9de06b05088294ba4c023d8346 Binary files /dev/null and b/Doc/Sd1/Ref/Video/scannerUsage.mp4 differ diff --git a/Doc/Sd1/Ref/Video/scannerUsage.txt b/Doc/Sd1/Ref/Video/scannerUsage.txt new file mode 100644 index 0000000000000000000000000000000000000000..7552980c71b7892c51fd4ba3747473967122e6a4 --- /dev/null +++ b/Doc/Sd1/Ref/Video/scannerUsage.txt @@ -0,0 +1,7 @@ +1. This video demonstrates a simple means to receive user input values from standard input. + +2. We start our application and simply enter the requested value at the corresponding prompt. + +3. In the current example our input just gets echoed back to standard output. + +4. You may however use input values to do more sophisticated stuff. diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml index 47a745f96e7467b3782e5056753fe7aec66202fc..2078bbe05f013f1ce0d696c90611ed7b32581b9e 100644 --- a/Doc/Sd1/statements.xml +++ b/Doc/Sd1/statements.xml @@ -69,6 +69,21 @@ public class BarOrder { scan.close(); } }</programlisting> + + <para>The following video demonstrates a complete user input + example:</para> + + <figure xml:id="sd1VideoUsingScannerClass"> + <title>Using the <classname + xlink:href="https://docs.oracle.com/javase/8/docs/api/java/util/Scanner.html">Scanner</classname> + class.</title> + + <mediaobject> + <videoobject> + <videodata fileref="Ref/Video/scannerUsage.mp4"/> + </videoobject> + </mediaobject> + </figure> </question> <answer>