优酷 stream -> type

2017-6-26 admin Code

<?php
/**
 *
 * 优酷 stream -> type
 *
 * @author     Github
 *
 * 严重警告:
 * 1、源码仅供学习交流使用。
 * 2、禁止用于危害官方利益的行为。
 * 3、禁止用于违反法律法规的行为。
 *
 *
 */
$supported_stream_code = array('mp4hd3', 'hd3', 'mp4hd2', 'hd2', 'mp4hd', 'mp4', 'flvhd', 'flv', '3gphd');
$ids = array('BD', 'TD', 'HD', 'SD', 'LD');
$stream_code_to_id = array(
    'mp5hd3' => 'BD',
    'mp4hd3' => 'BD',
    'hd3'    => 'BD',
    'mp5hd2' => 'TD',
    'mp4hd2' => 'TD',
    'hd2'    => 'TD',
    'mp5hd'  => 'HD',
    'mp4hd'  => 'HD',
    'mp4'    => 'HD',
    'flvhd'  => 'SD',
    'flv'    => 'SD',
    '3gphd'  => 'LD'
);
$stream_code_to_profiles = array(
    'BD' => '1080p',
    'TD' => '超清',
    'HD' => '高清',
    'SD' => '标清',
    'LD' => '标清(3GP)'
);
$id_to_container = array(
    'BD' => 'flv',
    'TD' => 'flv',
    'HD' => 'mp4',
    'SD' => 'flv',
    'LD' => 'mp4'
);
$stream_type_to_hd = array(
    'BD' => 3,
    'TD' => 2,
    'HD' => 1,
    'SD' => 0,
    'LD' => 1,
);

标签: 优酷 youku

发表评论:

Powered by emlog