Excercise: Downloading and playing of a video

Program an application that downloads a video from the internet (from a certain URL)
and open the video for playing. (video is in *.3gp format)


1. Create an application menu with 1 item called "get video" to choose.


2. Create a function called fetching. Use the url.retrieve function that
is provided through the urllib module to download the video file from the
Internet and store it on your mobile's c: drive.

import urllib

urllib.urlretrieve(url, tempfile)


3. Use the content handler to open the video ready for playing.


Example file: ex_video_download.py

Description: ex_video_download_descr.py
















Previous | Next | Menu     Copyright (c) 2006 Jurgen Scheible