Using a code i got over the internet i managed to embed a .ram file on a html page. however after i copied this code to enter a second file the web page plays the second video in both palyers whenever i tell either of the files to play. Can someone help me fix this?

Heres the first file

<object id="bgp1" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="240"> <param name="src" 
value="Media/bobgetsphished.ram" /> <param name="autostart" value="false" /> <param name="controls" value="imagewindow" /> <param name="console" 
value="video" /> <embed type="audio/x-pn-realaudio-plugin" src="Media/bobgetsphished.ram" width="320" height="240" autostart="false" 
controls="imagewindow" console="video"></embed></object>

And heres the second

<object id="shs1" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="240"> <param name="src" 
value="Media/superhighwaysafety.ram" /> <param name="autostart" value="false" /> <param name="controls" value="imagewindow" /> <param name="console" 
value="video" /> <embed type="audio/x-pn-realaudio-plugin" src="Media/superhighwaysafety.ram" width="320" height="240" autostart="false" 
controls="imagewindow" console="video"></embed></object>

the only real difference between the files is the file path and the object id

Dani AI

Generated

Short answer: the two embedded players are being linked by the RealPlayer plugin, not by your file paths. As suspected, duplicate parameters can cause cross‑control behaviour; in RealPlayer the important one is the CONSOLE value — controls that share the same console name are intentionally linked, so clicking Play on one will affect the other. Restoring the correct ActiveX class GUID and giving each instance a unique console/name will fix it. (paperzz.com)

Do not invent a new classid. That attribute identifies the ActiveX control (a GUID) and must match the installed RealPlayer control; changing it will often break the control (which is what happened when changed the classid). Instead, give each object/embed a unique id/name and either a unique console string (or use the built‑in _unique console) so instances remain independent. Example (illustrative — different from OP code):

<!-- player A -->
<object id="rpA" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="240">
  <param name="src" value="Media/bobgetsphished.ram" />
  <param name="console" value="_uniqueA" />
  <param name="controls" value="ImageWindow" />
  <embed name="rpAembed" src="Media/bobgetsphished.ram" console="_uniqueA" controls="ImageWindow"></embed>
</object>

<!-- player B -->
<object id="rpB" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="240">
  <param name="src" value="Media/superhighwaysafety.ram" />
  <param name="console" value="_uniqueB" />
  <param name="controls" value="ImageWindow" />
  <embed name="rpBembed" src="Media/superhighwaysafety.ram" console="_uniqueB" controls="ImageWindow"></embed>
</object>

If possible, move away from .ram/RealPlayer altogether. A .ram is just a tiny metafile pointing at the real stream; modern sites convert the media to MP4/WebM and use HTML5 <video>/<audio> for broad browser support. Convert with a current ffmpeg build, for example: ffmpeg -i input.rm -c:v libx264 -c:a aac output.mp4, then embed with HTML5 controls. Converting avoids browser plugin problems (NPAPI/old plugins are deprecated) and is more future‑proof. (filext.com)

Notes: test with RealPlayer installed when debugging legacy embeds; don’t rely on ad‑hoc classid changes; prefer unique console/name values or, better yet, migrate files to HTML5 playback.

there are a lot of duplicated values (e.g. classid). perhaps making these unique between the 2 objects will help...

there are a lot of duplicated values (e.g. classid). perhaps making these unique between the 2 objects will help...

#
i tried changing the class id. the top video player which should play the bob gets phished video plays the superhighway safety whereas the second video which should play superhighway safety doesnt play at all.

Since i have changed the class id of the video the second video no longer plays.

Maybe a different control type than imagewindow

<param name="controls" value="imagewindow" />

might help

<embed type="audio/x-pn-realaudio-plugin" src="" width="3" height="2" autostart="true"
controls="imagewindow" console="video"></embed></object>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.