The so-called streaming media refers to the media format that uses streaming transmission to play on the Internet. Streaming media is also called streaming media. It means that a media provider uses a video transfer server to send a program as a data packet to the network. After the user decompress the data through the extract device, the program will be displayed as before sending.
Some time ago, the boss asked me to study streaming media. It means that you can access the server address on Windows Mobile to watch videos on the server online. At the beginning, I found a lot of information about streaming media. For example, DirectShow, ffmpeg, and sdl are mostly written in C ++ (a lot of things are hard to understand ). Implementation is also complicated. At the same time, I also posted a lot of materials and examples from the Internet. I have been studying it for more than a week and haven't played it successfully on Mobile. I feel a little lost. What's even more frustrating is that the windows media player of Windows Mobile also supports streaming media in a blog and provides an example. Haha (helpless ).. I have studied things that have been so simple for a long time. You only need to give a URL and a code. Ah .. let's talk about how to call and implement streaming media on Mobile!
There are two implementation methods, but I think this is no different from a method. Let's look at it first:
First, it is implemented using the AxWMPLib. AxWindowsMediaPlayer control. In fact, I think it is just like Windows media player. But several dll: ComLib. dll, OcxControls. dll, OpenNETCF. windows. forms. axHost. dll, WMPlib. dll; then you only need to specify its URL!
Second, this method is simpler. You can directly call the windows media player in Windows mobile! System. Diagnostics. Process. Start ("\ Windows \ wmplayer.exe", "http: // 192.168.2.66/myasystem/music/SHE-Chinese.wmv ");
Although both methods can achieve online playback, I still have some questions that I don't understand. I also hope that the Daniel can give me some advice:
1. How do I specify the playback address of a video file?
2. After the video is played, the video file is automatically deleted. I don't know how to control it?
3. If the network speed is too slow, it will not be downloaded after I pause. It can only be played a bit later?