-
Notifications
You must be signed in to change notification settings - Fork 11
/
README
60 lines (43 loc) · 1.1 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
WHAT IT IS
----------
This is GStreamer Browser Plugin, a browser plugin for multimedia playback using
GStreamer as its backend.
WHERE TO START
--------------
GStreamer Browser Plugin is at http://github.com/alessandrod/gst-browser-plugin
COMPILING AND INSTALLING (firefox only atm)
-------------------------------------------
Run:
./autogen.sh
./configure
make
make bundle
This will create an .xpi file. Load the file in firefox to install it.
Now if you type about:plugins in the address bar you should see Gst Browser
Plugin in the list of installed plugins.
DEBUGGING
---------
Close firefox if it's opened and relaunch it from the terminal with:
GST_DEBUG=gbp*:5 firefox
SAMPLE CODE
-----------
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script text="text/javascript">
$(function() {
var player = $("#player")[0];
player.uri = "file:///path/to/file.avi";
player.start();
});
</script>
</head>
<body>
<embed id="player" type="application/x-gbp"
border="5"
width="400"
height="400"
x-gbp-uri=""
/>
</body>
</html>