播放器是 video.js   html5的。q流媒体服务器tomcatflvhtml5

解决方案 »

  1.   

    那是走的Http协议,不是RTMP协议呀!
      

  2.   

    这本来就支持,没有什么好奇怪的。而且html5播放视频非常的简单。只不过如果高并发你的服务器能承受不。
      

  3.   

    这东西不需要你配置,默认就有了tomcat_home/conf/web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License.  You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        version="2.5">. . . . . .    <servlet>
            <servlet-name>default</servlet-name>
            <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
            <init-param>
                <param-name>debug</param-name>
                <param-value>0</param-value>
            </init-param>
            <init-param>
                <param-name>listings</param-name>
                <param-value>false</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>. . . . . .
        <mime-mapping>
            <extension>mov</extension>
            <mime-type>video/quicktime</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>movie</extension>
            <mime-type>video/x-sgi-movie</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>mp1</extension>
            <mime-type>audio/x-mpeg</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>mp2</extension>
            <mime-type>audio/x-mpeg</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>mp3</extension>
            <mime-type>audio/x-mpeg</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>mp4</extension>
            <mime-type>video/mp4</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>mpa</extension>
            <mime-type>audio/x-mpeg</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>mpe</extension>
            <mime-type>video/mpeg</mime-type>
        </mime-mapping>. . . . . .    <mime-mapping>
            <extension>zip</extension>
            <mime-type>application/zip</mime-type>
        </mime-mapping>  <!-- ==================== Default Welcome File List ===================== -->
      <!-- When a request URI refers to a directory, the default servlet looks  -->
      <!-- for a "welcome file" within that directory and, if present,          -->
      <!-- to the corresponding resource URI for display.  If no welcome file   -->
      <!-- is present, the default servlet either serves a directory listing,   -->
      <!-- or returns a 404 status, depending on how it is configured.          -->
      <!--                                                                      -->
      <!-- If you define welcome files in your own application's web.xml        -->
      <!-- deployment descriptor, that list *replaces* the list configured      -->
      <!-- here, so be sure that you include any of the default values that     -->
      <!-- you wish to include.                                                 -->    <welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list></web-app>
      

  4.   

    我还是错了,,之所以可以拖动,是html5支持的功能,然而使用flash播放器的时候,单纯的没有配置的tomcat还是不支持流媒体播放的,不能实现拖拽功能,必须等到视频加载完成才能播放