I'm trying to set up a simple Ruby on Rails application to display video in the user's mozilla browser.
The page my Ruby application generates is this:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Product X Lesson</title>
<link href="/stylesheets/style.css?1195723379" media="screen" rel="Stylesheet" type="text/css" />
</head>
<body>
<div id="content">
<p style="color: green"></p>
<embed pluginspage="http://www.videolan.org"
type="application/x-vlc-plugin"
progid="VideoLAN.VLCPlugin.2"
name="video1"
autoplay="no"
loop="yes"
height="240" width="352"
target="/images/PSA-Web-320.ogg?1193009495"
</embed>
<br />
<input type="button" value="Play" onclick="document.video1.play();" />
<input type="button" value="Pause" onclick="document.video1.pause();" />
<input type="button" value="Stop" onclick="document.video1.stop();" />
</div>
</body>
</html>
(event handler):Value undefined (result of expression document.video1.play) is not object.
Browser is Safari Version 3.0.4 (523.12.2).
Plug-in is latest downloadable plugin for OSX PowerPC.
Browser demo pages from videolan work fine.
Full console dump is as follows:------------------------------
argn=pluginspage, argv=http://www.videolan.org
argn=type, argv=application/x-vlc-plugin
argn=progid, argv=VideoLAN.VLCPlugin.2
argn=name, argv=video1
argn=autoplay, argv=no
argn=loop, argv=yes
argn=height, argv=240
argn=width, argv=352
argn=target, argv=/images/PSA-Web-320.ogg?1193009495
[[32;1m00000001[0m] main private debug: [0mopening config file /Users/B800354/Library/Preferences/VLC/vlcrc[0m
[[32;1m00000001[0m] main private warning: [33;1mconfig file /Users/B800354/Library/Preferences/VLC/vlcrc does not exist yet[0m
[[32;1m00000001[0m] main private debug: [0mchecking builtin modules[0m
[[32;1m00000001[0m] main private debug: [0mchecking plugin modules[0m
[[32;1m00000001[0m] main private debug: [0mloading plugins cache file /Users/B800354/Library/Preferences/VLC/cache/plugins-0404be.dat[0m
[[32;1m00000001[0m] main private debug: [0mrecursively browsing `vlc/modules'[0m
[[32;1m00000001[0m] main private debug: [0mrecursively browsing `/usr/local/lib/vlc'[0m
[[32;1m00000001[0m] main private debug: [0mrecursively browsing `vlc/plugins'[0m
[[32;1m00000001[0m] main private debug: [0mrecursively browsing `/Library/Internet Plug-Ins/VLC Plugin.plugin/Contents/MacOS/modules'[0m
[[32;1m00000001[0m] main private debug: [0mmodule bank initialized, found 206 modules[0m
[[32;1m00000001[0m] main private debug: [0mopening config file /Users/B800354/Library/Preferences/VLC/vlcrc[0m
[[32;1m00000001[0m] main private warning: [33;1mconfig file /Users/B800354/Library/Preferences/VLC/vlcrc does not exist yet[0m
[00000001] main private debug: CPU has capabilities AltiVec FPU
[00000001] main private debug: looking for memcpy module: 2 candidates
[00000001] main private debug: using memcpy module "memcpyaltivec"
[00000269] main playlist debug: waiting for thread completion
[00000269] main playlist debug: thread 26293760 (playlist) created at priority -47 (playlist/playlist.c:184)
[00000270] main private debug: waiting for thread completion
[00000270] main private debug: thread 27389952 (preparser) created at priority -47 (playlist/playlist.c:210)
[00000271] main interface debug: looking for interface module: 1 candidate
[00000271] main interface debug: using interface module "hotkeys"
[00000271] main interface debug: thread 26292224 (interface) created at priority -47 (interface/interface.c:198)
[00000269] main playlist debug: adding playlist item `http://localhost:3000/images/PSA-Web-320.ogg?1193009495' ( http://localhost:3000/images/PSA-Web-320.ogg?1193009495 )
(event handler):Value undefined (result of expression document.video1.play) is not object.