lib library
@deprecated Use 'package:flutter_chrome_cast/flutter_chrome_cast.dart' instead
This file exports everything for backward compatibility but is deprecated. For better performance and cleaner imports, use the new modular imports:
// Main import (all functionality)
import 'package:flutter_chrome_cast/flutter_chrome_cast.dart';
// Or selective imports
import 'package:flutter_chrome_cast/cast_context.dart';
import 'package:flutter_chrome_cast/discovery.dart';
import 'package:flutter_chrome_cast/session.dart';
import 'package:flutter_chrome_cast/media.dart';
import 'package:flutter_chrome_cast/widgets.dart';
Classes
- CastBreak
- Represents a break (e.g. ad break) included in the main video.
- CastBreakClips
- Represents a break clip (e.g. a clip of an ad during an ad break)
- CastMediaVolume
- Represents the volume settings for a cast media session.
- CastMessageEvent
- Represents a cast message event received from a Google Cast session.
- ExpandedGoogleCastPlayerController
- A full-screen cast player controller widget that displays media information, playback controls, and cast session details.
- FlutterIOSGoogleCastContextMethodChannel
- iOS-specific implementation of Google Cast context functionality.
- GoggleCastMediaStatus
- Represents the status of a media session, including player state, volume, repeat mode, and more.
- GooglCastPhotoMediaMetadataAndroid
- Android-specific implementation of photo media metadata.
- GoogleCastAndroidDevice
- Android-specific device representation.
- GoogleCastAndroidMediaStatus
- Android-specific implementation of media status.
- GoogleCastAndroidQueueItem
- Android-specific implementation of queue item.
- GoogleCastBrakeStatus
- Represents current status of a break, including IDs and timing information.
- GoogleCastContext
- Main entry point for Google Cast context functionality.
- GoogleCastContextAndroidMethodChannel
- Android-specific implementation of Google Cast context functionality.
- GoogleCastContextPlatformInterface
- Platform interface for Google Cast context functionality.
- GoogleCastDevice
- Represents a Google Cast device discovered on the network.
- GoogleCastDiscoveryCriteria
- Represents criteria for discovering Google Cast devices.
- GoogleCastDiscoveryCriteriaInitialize
- Provides initialization options for Google Cast discovery criteria.
- GoogleCastDiscoveryManager
- Main entry point for Google Cast device discovery functionality.
- GoogleCastDiscoveryManagerMethodChannelAndroid
- Android-specific implementation of the Google Cast discovery manager.
- GoogleCastDiscoveryManagerMethodChannelIOS
- iOS-specific implementation of the Google Cast discovery manager.
- GoogleCastDiscoveryManagerPlatformInterface
- Platform interface for Google Cast device discovery functionality.
- GoogleCastGenericMediaMetadata
- Describes a generic media artifact.
- GoogleCastGenericMediaMetadataAndroid
- Android-specific implementation of generic media metadata.
- GoogleCastImage
- Represents an image for Google Cast.
- GoogleCastIosDevice
- Represents a Google Cast device specific to iOS platforms.
- GoogleCastIOSMediaStatus
- Represents the media status for a Google Cast session on iOS.
- GoogleCastIosRequest
- Represents a request specific to iOS for Google Cast operations.
- GoogleCastMediaInformation
- Holds all metadata and configuration for a media item, including content ID, type, metadata, breaks, tracks, and more.
- GoogleCastMediaInformationAndroid
- Android-specific extension of GoogleCastMediaInformation.
- GoogleCastMediaInformationIOS
- iOS-specific implementation of GoogleCastMediaInformation.
- GoogleCastMediaLiveSeekableRange
- Provides the live seekable range with start and end time in seconds.
- GoogleCastMediaMetadata
- Holds metadata type and images for a media item.
- GoogleCastMediaSeekOption
- Enum defining the media control channel resume state.
- GoogleCastMediaTrack
- Represents a media track, including content type, ID, type, and serialization helpers.
- GoogleCastMiniController
- A floating mini controller widget for Google Cast media playback.
- GoogleCastMovieMediaMetadata
- Describes a movie media artifact.
- GoogleCastMovieMediaMetadataAndroid
- Android-specific implementation of movie media metadata.
- GoogleCastMusicMediaMetadata
- Describes a music track media artifact.
- GoogleCastMusicMediaMetadataAndroid
- Android-specific implementation of music media metadata.
- GoogleCastOptions
- Configuration options for Google Cast functionality.
- GoogleCastOptionsAndroid
- Android-specific cast options configuration.
- GoogleCastPhotoMediaMetadata
- Describes a photo media artifact.
- GoogleCastPlayerTexts
- Text configuration for customizing text labels in the ExpandedGoogleCastPlayerController widget.
- GoogleCastPlayerTheme
- Theme data for customizing the ExpandedGoogleCastPlayerController widget.
- GoogleCastQueueItem
- Represents an item in a media queue.
- GoogleCastQueueItemIOS
- Represents a queue item for Google Cast on iOS platforms.
- GoogleCastQueueLoadOptions
- Configuration options for loading queue items in Google Cast.
- GoogleCastRemoteMediaClient
- Main entry point for Google Cast remote media client functionality.
- GoogleCastRemoteMediaClientAndroidMethodChannel
- Android-specific implementation of Google Cast remote media client functionality.
- GoogleCastRemoteMediaClientIOSMethodChannel
- iOS-specific implementation of Google Cast remote media client functionality.
- GoogleCastRemoteMediaClientPlatformInterface
- Platform interface for Google Cast remote media client functionality.
- GoogleCastRequest
- Represents a request, including progress, external status, request ID, and error.
- GoogleCastSession
- Represents a Google Cast session.
- GoogleCastSessionAndroid
- Represents a Google Cast session on Android devices.
- GoogleCastSessionManager
- Main entry point for Google Cast session management functionality.
- GoogleCastSessionManagerAndroidMethodChannel
- Android-specific implementation of Google Cast session manager functionality.
- GoogleCastSessionManagerIOSMethodChannel
- iOS-specific implementation of Google Cast session manager functionality.
- GoogleCastSessionManagerPlatformInterface
- A class that manages sessions.
- GoogleCastTvShowMediaMetadata
- Describes a television show episode media artifact.
- GoogleCastTvShowMediaMetadataAndroid
- Android-specific implementation of TV show media metadata.
- GoogleCastVolume
- A widget that provides volume control for Google Cast devices.
- IOSGoogleCastOptions
- iOS-specific Google Cast options.
- IOSGoogleCastSessions
- Represents a Google Cast session on iOS devices.
- TextTrackStyle
- Describes style information for a text track. Colors are represented as strings “#RRGGBBAA” where XX are the two hexadecimal symbols that represent the 0-255 value for the specific channel/color. It follows CSS 8-digit hex color notation. (See http://dev.w3.org/csswg/css-color/#hex-notation).
- UserActionState
- Represents the state of a user action in a cast session.
- VastAdsRequest
- VAST ad request configuration.
Enums
- CastHlsSegmentFormat
- Format of an HLS audio segment.
- CastMediaPlayerState
- Represents the current state of the media player.
- CastMediaStreamType
- Represents the type of media stream for Google Cast playback.
- CastStatusType
- Represents different types of cast status events.
- GoogleCastConnectState
- Represents the connection state of a Google Cast session.
- GoogleCastMediaIdleReason
- Represents the reason why media playback became idle.
- GoogleCastMediaMetadataType
- Enum representing different types of media metadata for Google Cast.
- GoogleCastMediaRepeatMode
- Possible states of queue repeat mode.
- GoogleCastMediaResumeState
- Enum representing different media resume states for Google Cast.
- HlsVideoSegmentFormat
- Enum representing the HLS video segment format types.
- Rfc5646Language
- Enum representing RFC 5646 language codes.
- TextTrackEdgeType
- Enum representing text track edge types for styling captions.
- TextTrackFontGenericFamily
- Represents generic font families for text tracks in Google Cast.
- TextTrackFontStyle
- Possible text track font style.
- TextTrackType
- Enum representing different types of text tracks for Google Cast.
- TextTrackWindowType
- Possible text track window types.
- TrackType
- Enum representing different types of media tracks.
- UserAction
- User actions.
Extensions
- CastMediaPlayerStateAndroid on CastMediaPlayerState
- Android-specific extension for cast media player state.
- DateTimeString on DateTime
- Extension for DateTime string parsing.
- DurationExtension on Duration
- Extensions for Duration to provide formatting functionality.
- GoogleCastAndroidDevices on GoogleCastAndroidDevice
- Extension for creating a list of GoogleCastAndroidDevice from a map.
- GoogleCastAndroidStreamType on CastMediaStreamType
- Android-specific extension for stream type.
- GoogleCastIdleReasonAndroid on GoogleCastMediaIdleReason
- Android-specific extension for idle reason.
- GoogleCastMediaMetadataExtensions on GoogleCastMediaMetadata
- Extensions for GoogleCastMediaMetadata to provide additional functionality.
- GoogleCastRepeatModeAndroid on GoogleCastMediaRepeatMode
- Android-specific extension for repeat mode.
- GoogleCastTextTrackStyleAndroid on TextTrackType
- Android-specific extension for text track type.
- GoogleCastTrackTypeAndroid on TrackType
- Android-specific extension for track type.
- HColor on Color
- Extension on Color to provide hex color functionality.
Functions
-
getPlayerPercentage(
GoggleCastMediaStatus mediaStatus, Duration? currentDuration) → double? - Calculates the playback percentage based on current position and total duration.