[muji/master] Add width, height and framerate for google compatibility

Sjoerd Simons sjoerd.simons at collabora.co.uk
Tue Jun 2 10:52:16 PDT 2009


---
 jingle.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/jingle.py b/jingle.py
index a7759c7..7b53b64 100644
--- a/jingle.py
+++ b/jingle.py
@@ -52,6 +52,12 @@ class JingleBaseDescription:
             pt['id'] = str(c.id)
             pt['name'] = c.encoding_name
             pt['clockrate'] = str(c.clock_rate)
+
+            if (c.encoding_name == "H264"):
+               pt['width'] = "320"
+               pt['height'] = "240"
+               pt['framerate'] = "30"
+
             if c.channels > 0:
                 pt['channels'] = str(c.channels)
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list