-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The method 'hashValues' isn't defined for the class 'DrmInitData' #1382
Comments
same issue . i am using flutter 3.27.1 |
This solve the error for me. Clone the repository and add it to the local_libraries drm_init_data.dart import 'scheme_data.dart'; class DrmInitData { final List schemeData; @OverRide @OverRide his_track_metadata_entry.dart class HlsTrackMetadataEntry { /// The GROUP-ID value of this track, if the track is derived from an EXT-X-MEDIA tag. Null if the /// The NAME value of this track, if the track is derived from an EXT-X-MEDIA tag. Null if the /// The EXT-X-STREAM-INF tags attributes associated with this track. This field is non-applicable (and therefore empty) if this track is derived from an EXT-X-MEDIA tag. @OverRide @OverRide scheme_data.dart import 'package:flutter/material.dart'; class SchemeData { /// The URL of the server to which license requests should be made. May be null if unknown. /// The mimeType of [data]. /// The initialization base data. /// Whether secure decryption is required. SchemeData copyWithData(Uint8List? data) => SchemeData( @OverRide
} @OverRide variant_info.dart class VariantInfo { /// The bitrate as declared by the EXT-X-STREAM-INF tag. */ /// The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not /// The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not /// The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES /// The CLOSED-CAPTIONS value as defined in the EXT-X-STREAM-INF tag, or null if the @OverRide @OverRide |
This package seems to be abandoned. I've forked it and fixed the latest flutter compatibility issues along with some other stuff.
|
This solution worked for me. |
../../../.pub-cache/hosted/pub.dev/better_player-0.0.84/lib/src/hls/hls_parser/drm_init_data.dart:22:23: Error: The method 'hashValues' isn't defined for the class 'DrmInitData'.
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
int get hashCode => hashValues(schemeType, schemeData);
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/better_player-0.0.84/lib/src/hls/hls_parser/hls_track_metadata_entry.dart:31:23: Error: The method 'hashValues' isn't defined for the class 'HlsTrackMetadataEntry'.
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
int get hashCode => hashValues(groupId, name, variantInfos);
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/better_player-0.0.84/lib/src/hls/hls_parser/scheme_data.dart:52:23: Error: The method 'hashValues' isn't defined for the class 'SchemeData'.
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
int get hashCode => hashValues(
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/better_player-0.0.84/lib/src/hls/hls_parser/variant_info.dart:44:23: Error: The method 'hashValues' isn't defined for the class 'VariantInfo'.
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
int get hashCode => hashValues(
^^^^^^^^^^
Target kernel_snapshot_program failed: Exception
The text was updated successfully, but these errors were encountered: