Difference between revisions of "Referencing AVI Files in MIRCdocuments"

From MircWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This article describes how to insert AVI, WMV, MPEG, or other video files into MIRCdocuments using the File Service and Author Service of the RSNA MIRC implementation. This article applies only to MIRC <b>T36b</b> or later. It has only been tested with Internet Explorer.
+
This article describes how to insert AVI, WMV, MPEG, or other video files into MIRCdocuments using the File Service and the Advanced Author Tool of the RSNA MIRC implementation.
  
 +
===Overview===
 
There are two steps in referencing an AVI file in a MIRCdocument:
 
There are two steps in referencing an AVI file in a MIRCdocument:
 
# Store the file in your file cabinet.
 
# Store the file in your file cabinet.
 
# Reference the file in a paragraph.
 
# Reference the file in a paragraph.
  
To store the AVI file in your file cabinet:
+
There are two basic ways to display an AVI, by displaying a link to the AVI or by embedding the AVI in the MIRCdocument itself. In both cases, video files are currently supported only in paragraphs in normal <b>section</b> elements, not in <b>image-section</b> elements.
# Log in on the query page.
 
# Select <b>My Files</b> in the <b>My Stuff</b> menu.  
 
# In the left pane of the File Cabinet page, select a file folder in which to store the AVI file.
 
# In the <b>File</b> menu, select <b>Upload file</b>.
 
# The <b>Add File</b> window will then appear. Click the <b>Browse</b> button.
 
# A file chooser will then appear. Navigate to the video file, and click <b>Open</b>.
 
# The file chooser will disappear. Click <b>Submit File</b> on the <b>Add File</b> window.
 
# Note the full path to the file folder in which the video file is stored. This is shown at the right end of the menu bar.  
 
  
To reference the AVI file in a MIRCdocument:
+
To display a link to the AVI, use an <b>anchor</b> tag. This will present a link to the AVI within the paragraph. When clicked, the user's AVI viewer will launch and display the AVI in a separate window.
# Create a new MIRCdocument or edit an existing one in the Author Service.
+
<pre>
# Select a section in which to insert the reference to the AVI file and click its tab.
+
Here is a <a href="path">movie</a>.
# Insert a paragraph or click on the text box of an existing one.
+
</pre>
# Enter text as shown in the box below, replacing <b>path</b> with the path to the folder, and <b>movie.avi</b> with the name of the video file in that folder.
 
# Click the <b>Save</b> button in the toolbar to save the document.
 
  
 +
To embed the AVI in the MIRCdocument, use an <b>embed</b> tag. This will put a viewer in the document.
 
<pre>
 
<pre>
Here is a <a href="[path/movie.avi]">movie</a>.
+
<embed src="path" style="width:100%;height:auto;"/>  
 
</pre>
 
</pre>
  
This will present a link to the AVI within the paragraph. When clicked, the user's AVI viewer will launch and display the AVI in a separate window.
+
In both cases, the <b><tt>path</tt></b> must be configured to cause the Advanced Author Service to copy the referenced file from a file cabinet into the folder with the MIRCdocument's other files. The format of the path depends on which MIRC implementation you are running. See the sections below for details.
 +
 
 +
===CTP/MIRC===
 +
The instructions in this section apply only to CTP/MIRC.
 +
 
 +
To reference an AVI in a file cabinet, the path to the referenced file cabinet <u>folder</u> must be enclosed in square brackets, and the filename must immediately follow the right square bracket. For example, here is an anchor tag referencing a file in the user's Misc_Files folder:
 +
 
 +
::<tt>Here is a <a href="[Personal/Misc_Files]video.avi">movie</a>.</tt>
 +
 
 +
Note that only the folder path is encapsulated within the square brackets, and the path must start with either <tt>Personal</tt> or <tt>Shared</tt>.  
  
For example, if the path to the folder is <b><tt>Personal/Files/Misc_Files</tt></b> and the video filename is <b><tt>video.mpeg</tt></b>, the text would be:
+
If the referenced file is in the root of the user's Personal file cabinet, no additional path information is required, for example: <tt>[Personal]video.avi</tt>.
  
<pre>
+
===Tomcat/MIRC===
Here is a <a href="[Personal/Files/Misc_Files/video.mpeg]">movie</a>.
+
The instructions in this section apply only to Tomcat/MIRC <b>T36b</b> or later. (Note: Tomcat/MIRC is now deprecated in favor of the CTP/MIRC implementation.)
</pre>
 
  
It is also possible to make the video play within the paragraph itself. To do so, use the following paragraph contents:
+
To reference an AVI in a file cabinet, the path to the <u>file</u> must be completely enclosed in square brackets, and the path itself must correspond to the path that is dislayed for the file by the file cabinet. For example, here is an anchor tag referencing a file in the user's Misc_Files folder:
  
<pre>
+
::<tt>Here is a <a href="[Personal/Files/Misc_Files/video.avi]">movie</a>.</tt>
<embed src="[path/movie.avi]"/>  
 
</pre>
 
  
Notes:
+
Note that the file name is encapsulated within the square brackets, and the path must start with either <tt>Personal/Files</tt> or <tt>Shared/Files</tt>.
* Video files are supported only in paragraphs in normal <b>section</b> elements, not in <b>image-section</b> elements.
 
* The square brackets in the reference to the video file are required.
 
* After copying the file into the file cabinet when the document is saved, the Author Service removes the bracketed reference from the source and replaces it with the filename of the video file, possibly modified to replace spaces in the name with underscores.
 

Latest revision as of 18:43, 2 July 2012

This article describes how to insert AVI, WMV, MPEG, or other video files into MIRCdocuments using the File Service and the Advanced Author Tool of the RSNA MIRC implementation.

1 Overview

There are two steps in referencing an AVI file in a MIRCdocument:

  1. Store the file in your file cabinet.
  2. Reference the file in a paragraph.

There are two basic ways to display an AVI, by displaying a link to the AVI or by embedding the AVI in the MIRCdocument itself. In both cases, video files are currently supported only in paragraphs in normal section elements, not in image-section elements.

To display a link to the AVI, use an anchor tag. This will present a link to the AVI within the paragraph. When clicked, the user's AVI viewer will launch and display the AVI in a separate window.

Here is a <a href="path">movie</a>.

To embed the AVI in the MIRCdocument, use an embed tag. This will put a viewer in the document.

<embed src="path" style="width:100%;height:auto;"/> 

In both cases, the path must be configured to cause the Advanced Author Service to copy the referenced file from a file cabinet into the folder with the MIRCdocument's other files. The format of the path depends on which MIRC implementation you are running. See the sections below for details.

2 CTP/MIRC

The instructions in this section apply only to CTP/MIRC.

To reference an AVI in a file cabinet, the path to the referenced file cabinet folder must be enclosed in square brackets, and the filename must immediately follow the right square bracket. For example, here is an anchor tag referencing a file in the user's Misc_Files folder:

Here is a <a href="[Personal/Misc_Files]video.avi">movie</a>.

Note that only the folder path is encapsulated within the square brackets, and the path must start with either Personal or Shared.

If the referenced file is in the root of the user's Personal file cabinet, no additional path information is required, for example: [Personal]video.avi.

3 Tomcat/MIRC

The instructions in this section apply only to Tomcat/MIRC T36b or later. (Note: Tomcat/MIRC is now deprecated in favor of the CTP/MIRC implementation.)

To reference an AVI in a file cabinet, the path to the file must be completely enclosed in square brackets, and the path itself must correspond to the path that is dislayed for the file by the file cabinet. For example, here is an anchor tag referencing a file in the user's Misc_Files folder:

Here is a <a href="[Personal/Files/Misc_Files/video.avi]">movie</a>.

Note that the file name is encapsulated within the square brackets, and the path must start with either Personal/Files or Shared/Files.