Teacher Chen’s cloud on-demand V4.0
illustrate:
1: Teacher Chen’s cloud on-demand video streaming is derived from Thunder Cloud Broadcasting, which uses cloud storage technology that is currently popular around the world to realize direct online playback of video files.
2: Teacher Chen’s cloud on-demand support supports ed2k, magnet, thunder links, http, ftp links, BT seed 40-digit hash value, xlpan address (xlpan://). At the same time, you can also directly upload BT torrent seeds, and we will directly Play the video resources in the torrent for you
3: Currently, cloud on-demand provides 3 channels (Telecom, China Unicom, and ordinary)
(1) The telecommunications channel can be fast-forwarded (unbuffered areas can be dragged around without errors), which is suitable for users of telecommunications networks (this channel is selected by default)
(2) The China Unicom channel can be fast-forwarded and is suitable for viewing by China Unicom network users. (3) The ordinary channel cannot be fast-forwarded and is suitable for viewing by all users. Since Xunlei has officially set up anti-leeching on the player, China Telecom and China Unicom channels use unofficial native playback. Currently, it is an external player for calling Xunlei entertainment channels. This player cannot have external subtitles and cannot select the resolution of the video. The advantage is that it can fast forward.
The ordinary channel uses the native Thunder cloud player, which can plug in subtitles, select the resolution of the video, and watch the download speed of the video file. The disadvantage is that it cannot fast forward.
How to use:
1: Teacher Chen’s cloud on-demand source code uses the PHP language. As long as your space supports PHP, the entire source code is 35kb. No files will be generated later, so there is no pressure on the space, because during the playback process, Thunder’s streaming media data is called , so there is no requirement for space bandwidth (10W IP will not exceed 2M bandwidth)
2: Since the source code is released by amateurs, it is only for everyone's convenience, so no advertising slots are set up. Users are asked to modify the source code to place ads.
3: Due to browser flash version issues, chrome and 360 speed browsers will have errors when using China Telecom and China Unicom channels.
4: Due to the constant updates of Xunlei (blocking ports and players), the external debugging interface used by the source code released by Mr. Chen this time is iframe, which is convenient for later maintenance.
5: Webmasters can choose the default playback channel according to their own needs (specific method: change "http://api.yundianbo.tv/?u=" to "http://api" in line 59 of index.php .yundianbo.tv/?u=$url&load=dx” [dx means China Telecom, lt means China Unicom, pt means ordinary])
6: The source code shared this time can be embedded in various websites. The specific usage method is (1): $url value is the video file address, which can be ed2k, magnet, thunder link, http, ftp link, BT seed 40 bits Hash value, xlpan address (xlpan://), but Teacher Chen here recommends that you use the address after hexadecimal transcoding. The specific conversion function provides two versions of php and js ("hexadecimal conversion function" in the source code root directory .txt" file), users in other languages can Google.
(2): The $load value is the channel address [dx means China Telecom, lt means China Unicom, pt means ordinary], if not written, the default telecommunications channel will be used.
7: All the content of this source code comes from Xunlei. This source code is only published for everyone's learning and communication. Please do not use it on illegal websites or commercial websites, otherwise you will be responsible for the consequences.
V4.0 update content
1: The player is suitable for any size, the default is 100%*100% (full screen). If you need other sizes, please pass the value in the url, specifically "&w=[0-9]+&h=[0-9] +" where w is the width and h is the height, which can be a percentage or a specific fixed value. Please define it according to your web page. The adding method is similar to Article 5 (remember, other parameters must be placed in u later)
2: Add playback channel judgment. Browsers that play incorrectly will enter the normal channel, and browsers that play normally will enter the fast-forward channel. The premise is that there is no channel value in the parameters passed by the webmaster.
3: Add IP judgment. China Unicom users enter the China Unicom channel, other users enter the Telecom channel, and users with abnormal browsers enter the ordinary channel for playback regardless of whether the channel is set or not.
4: Delete the browser judgment code in the source code and hand it over directly to the interface for judgment, which will facilitate later updates.
5: Fixed the bug where the title of the torrent file list in the play window overflowed, causing the player to be misaligned, and several other bugs.
6: Add cloud on-demand webmaster communication group: ⑨⑦⑥①⑨⑧④0
Expand