Instant messenger streaming with libVLC python wrapper - python

I'm trying to develop an instant messenger client that supports video streaming. I am working with the libVLC wrapper for Python. Most basic functions of an IM client are already there, my problem comes with the video streaming. I've been able to do basic tests like streaming a video and playing it in a tkinter form with my own code. But when it comes to streaming to many users, and recieving many streams from other users I'm completely lost. I'd appreciate any help you can give me, maybe this is not the right way to do it and you can point me out the direction I should take, everything helps as I am not a very experienced programmer. Thanks in advance.

I don't think it will be easy.
http://wiki.videolan.org/VideoLan_VideoConference#See_also might give you some clues as to directions to try...

Related

Python: Watching a directory for changes on webserver

I just recently learned Python and now I thought about making a very simple online game for fun. I don't know what the game should be but I thought I should be able to somehow communicate with others playing the game.
I figured I could save actions I'm doing in the game in a file on a Webserver. The game should then run some function for the other players if the file gets changed. Now my question: Is there any way to watch that file for changes? I tried watchdog but as far as I found it only works on local files. I could probably use a loop with urllib2 checking the content but I'm afraid that's not very elegant or fast.
Im using Python 2.7.13 on a Windows 10 computer.
Thanks in advance for your answer :)
(disclaimer, I agree with #roganjosh in the comments, I don't think this is the right way to approach your problem, but just to answer your question)
In order to monitor changes in a webserver, unless they provide some other API, usually you do implement a loop but instead of getting the whole file all the time, you only send a "HEAD" request. If you see updates in the file then you fetch it.
See this answer for more information: How do you send a HEAD HTTP request in Python 2?

Yowsup - Whatsapp Python Library

I am absolutely new to Python and the Rasberry Pi. I had a look at the Yowsup library to be able to send a Whatsapp message with my Rasberry Pi.
By using yowsup-cli I can send a message etc.
My problem.... I dont understand the sample programs at all. From a .NET background I would think that one would create an Object and then perhaps do something like Object.SendMessage("Number", "Message")
The examples seems to be much more complicated. I truly dont understand. Have someone written a simple Python Script before doing what I want to do? Just as an example so that I understand more clearly? I have done a lot of reading. I guess I am stuck with .NET in my head.
Thank you!
Jaco

citrix GUI automation or packet injection?

most of my job is on a citrix ICA app.
i work in a winsows enviroment.
among other things, i have to print 300 reports from my app weekly. i am trying to automate this task. i was using a screenshot automation tool called sikuli, but it is not portable form station to station.
i thought i might be able to inject packets and send the commands on that level. i was not able to read the packets i captured with whireshark or do anythin sensable with them.
i have expirence with python and if i get pointed in the right direction, i am pretty sure i can pull something off.
does anyone have any ideas on how to do this (i am leaning towards packet injection aat the moment, but am open to ideas).
thanks for the help,
sam
after a lot of research, it cant be done. some manipulation like change window focus with the ICA COM object.

Can Gstreamer be used server-side to stream audio to multiple clients on demand?

I'm working on an audio mixing program (DAW) web app, and considering using Python and Python Gstreamer for the backend. I understand that I can contain the audio tracks of a single music project in a gst.Pipeline bin, but playback also appears to be controlled by this Pipeline.
Is it possible to create several "views" into the Pipeline representing the project? So that more than one client can grab an audio stream of this Pipeline at will, with the ability to do time seek?
If there is a better platform/library out there to use, I'd appreciate advice on that too. I'd prefer sticking to Python though, because my team members are already researching Python for other parts of this project.
Thanks very much!
You might want to look at Flumotion (www.flumotion.org). It is a python based streaming server using GStreamer, you might be able to get implementation ideas from that in terms of how you do your application. It relies heavily on the python library Twisted for its network handling.

Playing MMS streams within Python

I'm writing a XM desktop application (I plan on releasing the source on github when I'm finished if anyone is interested) Anyway, the one part I know very little about is how to play media within Python (I'm using PyQt for the frontend). Basically, I have a mms:// url that I need to play. I was wondering if there is a library that could accomplish this or something, really I just need someone to point me in the right direction.
I know its possible, because SMplayer (Python implementation of MPlayer that uses Qt) works with MMS, I may have to take a peak at they're source if worse comes to worse.
You can have a look at
PyMedia
PyGame
wxPython
Here is a code snippet of doing a similar thing with wxPython.
All of these can play media files.

Categories

Resources