-
Notifications
You must be signed in to change notification settings - Fork 66
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
Null Safety 2.0 with Chromecast, Airplay Platform specific updates #20
base: master
Are you sure you want to change the base?
Conversation
Can you merge this branch ? @PalaTeam pls |
How can i use this in my project? |
@renanmgs in pubspec.yaml add following:
|
Do you know if it support .m3u8 files? I using it for a streamign app that used .m3u8. |
Yes, it supports that format.
…On Tue, 15 Feb, 2022, 9:51 pm renanmgs, ***@***.***> wrote:
Do you know if it support .m3u8 files? I using it for a streamign app that
used .m3u8.
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBQCZ347ZJK67N4DH6P3XTU3J4RXANCNFSM5KZ7YB3A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi @tsvillain, i found a problem with the package: It is stated that we need to use FlutterFragmentActivity with CastContext.getSharedInstance(applicationContext), but if i use this my app lose the hability to DeepLink (use external links as directions to routes). Deeplinking works if i use FlutterActivity instead of FlutterFragmentActivity, but the ChromeCast Button crashes the app when pressed. How it works with DeepLinking but crashes on press: I need to use the AudioService package due to some other things that i do in the app, but i found no problem keeping it in the same method in the second image (i cropped it from the image) |
This should be on StackOverflow. |
@tsvillain onSessionEnded callback method called I tried to get the video's last position; however, it always returns the position I start to cast. Do you guys have any idea to solve this issue? (For example, video duration is 60 seconds, I started to cast at 10th seconds, I seek to 30th seconds. Then, I ended the session. When on onSessionEnded callback method, I call |
My m3u8 video files use headers in order to play. How can I send the headers along with the url of the m3u8. |
@AlessioValentiniAesys can you please review? |
Below is the list of updates made on this plugin to work with the latest Flutter projects
Chromecast specific updates:
position()
returns current position of casted video inFuture<Duration?>
.duration()
returns the full duration of the casted video inFuture<Duration?>
.setVolume(volume: 0.8)
used to set the chromecast volume value can be from 0 to 1 (0.8 = 80% volume).getVolume()
returns current volume of the chromecast device inFuture<double>
.endSession()
as the name suggest will end the current session with chromecast device.Airplay specific updates:
isAirplayConnected
return true if airplay is connected.This PR will close: #19 #18 #17