Difference between revisions of "Referencing AVI Files in MIRCdocuments"

From MircWiki
Jump to navigation Jump to search
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This article describes how to insert AVI files into MIRCdocuments using the Author Service of the RSNA MIRC implementation. 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.
# Click <b>My Files</b> on the query page.  
 
# If you are not already logged in, the system may ask you to do so.
 
# When your file cabinet is displayed, click the <b>Add</b> button in the left section of the bottom toolbar.
 
# The <b>Add File</b> window will then appear. Click the <b>Browse</b> button.
 
# A file chooser will then appear. Navigate to the AVI file, and click <b>Open</b>.
 
# The file chooser will disappear. Click <b>Submit File</b> on the <b>Add File</b> window.
 
  
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.
 
# 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="[user]movie.avi">movie</a>.
+
<embed src="path" style="width:100%;height:auto;"/>  
 
</pre>
 
</pre>
  
Notes:
+
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.
* AVI files are supported only in paragraphs in normal document sections, not in <b>image-section</b>s.
+
 
* The RSNA MIRC implementation does not yet support WMV files.
+
===CTP/MIRC===
* In the example above, the AVI file is called <b>movie.avi</b>.
+
The instructions in this section apply only to CTP/MIRC.
* The text <b>[user]</b> must appear immediately before the name of the movie. This instructs the Author Service to obtain the file from the user's file cabinet.  
+
 
* After copying the file into the file cabinet when the document is saved, the Author Service removes the <b>[user]</b> text from the source. Thus, it will not appear when the document is edited after being saved. This is not a problem since the file will already have been stored with the MIRCdocument and it will not have to be copied again.
+
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:
* The anchor tag (<b>a</b>) instructs the browser to fetch the <b>movie.avi</b> file from the server when the link text, <b>movie</b>, is clicked. This typically results in an application being launched to display the movie.
+
 
* If you want to force the movie to load in a separate window, you can add a <b>target</b> attribute as shown below:
+
::<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>.
 +
 
 +
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>.
 +
 
 +
===Tomcat/MIRC===
 +
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.)
 +
 
 +
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:
 +
 
 +
::<tt>Here is a <a href="[Personal/Files/Misc_Files/video.avi]">movie</a>.</tt>
  
<pre>
+
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>.
Here is a <a href="[user]movie.avi" target="_blank">movie</a>.
 
</pre>
 

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.