Difference between revisions of "Documentation/How Tos/Using Movies in Impress on Linux Without Java"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Prerequisites)
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation/NeedsRework}}
+
{{NeedsRework|EN}}
 +
{{DISPLAYTITLE:Using Movies in Impress on Linux Without Java}}
  
 
<!--
 
<!--
Line 9: Line 10:
  
 
= Overview =
 
= Overview =
This text gives quick instructions on how to run movies in OpenOffice.org presentations without using any Java Software,  
+
This text gives quick instructions on how to run movies in OpenOffice.org presentations without using any [http://www.java.com/en/ Java Software], specifically the [http://java.sun.com/products/java-media/jmf/ Java Media Frameworks (JMF)].
specifically the Java Media Frameworks (JMF).
+
  
 
The approach described here might be used for working with just a few movies, it is not suitable for larger presentations.
 
The approach described here might be used for working with just a few movies, it is not suitable for larger presentations.
  
{{Documentation/Note|A problem one is going to face is, that for starting the movie in Presentation Mode you will have to click on a graphic. In case you use to wander when presenting and also have fixed timings set up for your slides the approach described here will not be useful to you}}
+
{{Note|A problem one is going to face is, that for starting the movie in Presentation Mode you will have to click on a graphic. In case you use to wander when presenting and also have fixed timings set up for your slides the approach described here will not be useful to you}}
  
=Understanding the basic concept=
+
 
 +
=Understanding the Basic Concept=
  
 
==Prerequisites==
 
==Prerequisites==
Line 22: Line 23:
 
* OpenOffice.org 2.x
 
* OpenOffice.org 2.x
 
* [http://www.xinehq.de/ Xine] or [http://freshmeat.net/search/?q=player&trove_cat_id=125&section=trove_cat&Go.x=0&Go.y=0 any other movie player] of your preference
 
* [http://www.xinehq.de/ Xine] or [http://freshmeat.net/search/?q=player&trove_cat_id=125&section=trove_cat&Go.x=0&Go.y=0 any other movie player] of your preference
 +
  
 
==Functionality==
 
==Functionality==
Line 35: Line 37:
 
[[Image:Impress_movies_without_java01.png|frame|none|'''Figure 1:''' The concept]]
 
[[Image:Impress_movies_without_java01.png|frame|none|'''Figure 1:''' The concept]]
  
=Writing the external shell script=
+
 
 +
=Writing the External Shell Script=
 
   
 
   
 
  #!/bin/sh
 
  #!/bin/sh
 
  #file:///home/me/tmp/ooo-movie-hook/m1.sh
 
  #file:///home/me/tmp/ooo-movie-hook/m1.sh
 
  xine --no-splash --geometry 400x400+420+420 \ /home/me/moviedb/my_movie01.mpg
 
  xine --no-splash --geometry 400x400+420+420 \ /home/me/moviedb/my_movie01.mpg
 +
  
 
=Creating the OpenOffice.org Macro=
 
=Creating the OpenOffice.org Macro=
Line 47: Line 51:
 
  End Sub
 
  End Sub
  
=Linking the Macro to the graphic=
 
  
# Insert your personal ~"start-movie-button-graphic" via '''Insert > Image'''
+
=Linking the Macro to the Graphic=
# Right-Click on the image
+
 
 +
# Insert your personal "start-movie-button-graphic" via '''Insert > Picture'''
 +
# Right-click on the image
 
# Select '''Run macro''' as '''Action at mouse click'''
 
# Select '''Run macro''' as '''Action at mouse click'''
 
# Assign the macro
 
# Assign the macro
  
  
=KDE specific: Removing borders of movie player window=
+
=KDE Specific: Removing Borders of Movie Player Window=
  
 
# Open the KDE Control Center
 
# Open the KDE Control Center
# Select '''setup'''
+
# Select '''Setup'''
# For all window-instances, which are created by program $your_favourite_movie player do not display window borders.<br>
+
# For all window instances, which are created by your favourite movie player do not display window borders.<br>
You have nice integration of the external movie player with your OpenOffice.org presentation.
+
You have a nice integration of the external movie player with your OpenOffice.org presentation.
 +
 
  
 
{{PDL1}}
 
{{PDL1}}
 +
 +
[[Category: Documentation/How Tos/Impress]]
 +
[[Category:Impress]]

Latest revision as of 20:18, 2 July 2018

Edit-find-replace.png This article should be checked for accuracy and conformity to style.


Overview

This text gives quick instructions on how to run movies in OpenOffice.org presentations without using any Java Software, specifically the Java Media Frameworks (JMF).

The approach described here might be used for working with just a few movies, it is not suitable for larger presentations.

Documentation note.png A problem one is going to face is, that for starting the movie in Presentation Mode you will have to click on a graphic. In case you use to wander when presenting and also have fixed timings set up for your slides the approach described here will not be useful to you


Understanding the Basic Concept

Prerequisites


Functionality

We will use the following functionality for our purpose:

  • Insert > Picture > From File
  • Right click on the inserted graphic
  • Select Interaction
  • Select Run macro as Action at mouse click
  • By writing a simple macro running our shell script, which in turn starts our movie player, we hook our movie player in.
Figure 1: The concept


Writing the External Shell Script

#!/bin/sh
#file:///home/me/tmp/ooo-movie-hook/m1.sh
xine --no-splash --geometry 400x400+420+420 \ /home/me/moviedb/my_movie01.mpg


Creating the OpenOffice.org Macro

Sub Main
  Shell("/home/me/tmp/ooo-movie-hook/m1.sh",2)
End Sub


Linking the Macro to the Graphic

  1. Insert your personal "start-movie-button-graphic" via Insert > Picture
  2. Right-click on the image
  3. Select Run macro as Action at mouse click
  4. Assign the macro


KDE Specific: Removing Borders of Movie Player Window

  1. Open the KDE Control Center
  2. Select Setup
  3. For all window instances, which are created by your favourite movie player do not display window borders.

You have a nice integration of the external movie player with your OpenOffice.org presentation.


Content on this page is licensed under the Public Documentation License (PDL).
Personal tools