Difference between revisions of "Referencing AVI Files in MIRCdocuments"

From MircWiki
Jump to navigation Jump to search
m (Protected "Referencing AVI Files in MIRCdocuments" [edit=sysop:move=sysop])
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article describes how to insert AVI files into MIRCdocuments using the File Service and 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>
  
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>.  
  
Another alternative is to cause the AVI to play within the paragraph itself. To do so, use the following paragraph contents:
+
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===
<embed src="[user]movie.avi"/>  
+
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>
+
 
 +
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>
  
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>.
* AVI files are supported only in paragraphs in normal <b>section</b> elements, not in <b>image-section</b> elements.
 
* In the example above, the AVI file is called <b>movie.avi</b>.
 
* You can also insert WMV files in the same way.
 
* The text <b>[user]</b> must appear exactly as shown, immediately before the name of the movie. This instructs the Author Service to obtain the file from the user's file cabinet. The square brackets are required. Do not substitute your username for the word <b>user</b>; the Author Service knows who you are because you are authenticated.
 
* 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.
 

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.