# \OpenTokMediaMode

Defines values for the mediaMode parameter of the OpenTok.OpenTok.generateSession() method.

## Summary

Methods
Properties
Constants
No public methods found
No public properties found
ROUTED
RELAYED
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
abstract

File
  MediaMode.php
Package
Class hierarchy
  \OpenTok\Util\BasicEnum
  \OpenTok\MediaMode

## Tags

todo |

## Constants

### ROUTED

    ROUTED

The session will send streams using the OpenTok Media Router.

#

## Tags

todo |

### RELAYED

    RELAYED

The session will attempt send streams directly between clients. If clients cannot connect due to firewall restrictions, the session uses the OpenTok TURN server to relay streams.

#

## Tags

todo |

### MediaMode.php