~mahara-contributors/mahara-adminlang/adminlang-master

« back to all changes in this revision

Viewing changes to htdocs/artefact/file/blocktype/internalmedia/flowplayer/src/actionscript/org/flowplayer/controller/ConnectionProvider.as

  • Committer: Ruslan Kabalin
  • Date: 2011-08-03 14:54:09 UTC
  • Revision ID: git-v1:a3409b53a971ec3bad8b5d1329298046d9596381
Revert back to master brach.

The adminlang-master was mistakingly based on the mahara 1.3_STABLE. This is
required for easy merge with the master.

Command used:
for i in `git rev-list
f731cf9b2cf72b61ed6a317acab23a30b9046c8a..afb5850ba246f41b624c162e8d8e6e72c534f239`;
do git revert -n $i; done

Change-Id: I9db8553a66facfaca81492cd978f974c6e7b8892

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*    
2
 
 *    Copyright 2008 Anssi Piirainen
3
 
 *
4
 
 *    This file is part of FlowPlayer.
5
 
 *
6
 
 *    FlowPlayer is free software: you can redistribute it and/or modify
7
 
 *    it under the terms of the GNU General Public License as published by
8
 
 *    the Free Software Foundation, either version 3 of the License, or
9
 
 *    (at your option) any later version.
10
 
 *
11
 
 *    FlowPlayer is distributed in the hope that it will be useful,
12
 
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 *    GNU General Public License for more details.
15
 
 *
16
 
 *    You should have received a copy of the GNU General Public License
17
 
 *    along with FlowPlayer.  If not, see <http://www.gnu.org/licenses/>.
18
 
 */
19
 
 
20
 
package org.flowplayer.controller {
21
 
    import flash.events.NetStatusEvent;
22
 
        import org.flowplayer.model.Clip;
23
 
        
24
 
        /**
25
 
         * @author api
26
 
         */
27
 
        public interface ConnectionProvider {
28
 
                
29
 
                function set connectionClient(client:Object):void;
30
 
                
31
 
                /**
32
 
                 * Sets a listener that gets called if the connection fails.
33
 
                 * The function must have a parameter of type NetStatusEvent.
34
 
                 */
35
 
                function set onFailure(listener:Function):void;
36
 
 
37
 
        /**
38
 
         * Connects to the specified URL.
39
 
         * @param provider
40
 
         * @param clip
41
 
         * @param successListener
42
 
         * @param objectEncoding to be used in NetConnection.objectEncoding
43
 
         * @param rest
44
 
         * @return
45
 
         */
46
 
                function connect(provider:StreamProvider, clip:Clip, successListener:Function, objectEncoding: uint, connectionArgs:Array):void;
47
 
 
48
 
        /**
49
 
         * Called when a netStatusEvent is received.
50
 
         * @param event
51
 
         * @return if false, the streamProvider will ignore this event and will not send any events for it
52
 
         */
53
 
        function handeNetStatusEvent(event:NetStatusEvent):Boolean;
54
 
                
55
 
        }
56
 
}