PalaTeam / flutter_video_cast

MIT License
37 stars 67 forks source link

Null Safety 2.0 with Chromecast, Airplay Platform specific updates #20

Open tsvillain opened 2 years ago

tsvillain commented 2 years ago

Below is the list of updates made on this plugin to work with the latest Flutter projects

This PR will close: #19 #18 #17

yelkamel commented 2 years ago

Can you merge this branch ? @PalaTeam pls

renanmgs commented 2 years ago

How can i use this in my project?

tsvillain commented 2 years ago

@renanmgs in pubspec.yaml add following:

flutter_video_cast:
    git:
      url: https://github.com/samyakkkk/flutter_video_cast.git
      ref: master
renanmgs commented 2 years ago

Do you know if it support .m3u8 files? I using it for a streamign app that used .m3u8.

tsvillain commented 2 years ago

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 https://github.com/PalaTeam/flutter_video_cast/pull/20#issuecomment-1040479607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKBQCZ347ZJK67N4DH6P3XTU3J4RXANCNFSM5KZ7YB3A . You are receiving this because you authored the thread.Message ID: @.***>

renanmgs commented 2 years ago

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: image

How it breaks DeepLinking: image

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)

tsvillain commented 2 years ago

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: image

How it breaks DeepLinking: image

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. Flutter folks can help you there.

kkoken commented 2 years ago

@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 position method, and it returns 10th seconds.)

jpolstre commented 2 years ago

Sí, es compatible con ese formato. El martes 15 de febrero de 2022 a las 21:51 renanmgs, @.> escribió: ¿Sabe si admite archivos .m3u8? Lo uso para una aplicación streamign que usaba .m3u8. — Responda a este correo electrónico directamente, véalo en GitHub < #20 (comentario) >, o cancele la suscripción < https://github.com/notifications/unsubscribe-auth/AKBQCZ347ZJK67N4DH6P3XTU3J4RXANCNFSM5KZ7YB3A >. Estás recibiendo esto porque eres el autor del hilo. ID del mensaje: @.>

My m3u8 video files use headers in order to play. How can I send the headers along with the url of the m3u8.

dmiedev commented 2 years ago

@AlessioValentiniAesys can you please review?