prateekmedia / pstube

Watch and download videos without ads
https://android.izzysoft.de/repo/apk/com.prateekmedia.pstube
GNU General Public License v3.0
486 stars 59 forks source link

Video not playing on Windows #87

Open KalpanaChetan opened 1 year ago

KalpanaChetan commented 1 year ago

Fixed in latest development build, use exe

Originally posted by @prateekmedia in https://github.com/prateekmedia/pstube/issues/79#issuecomment-1371996753

App open but nothing show in first time

When I opened the app again , I saw some videos ,when I opened one video , it did not play

Why this happens in nightly build

prateekmedia commented 1 year ago

Can you send a screenshot of video not playing?

KalpanaChetan commented 1 year ago

Screenshot (48).png

Screenshot (49).png

Screenshot (47).png

Screenshot (50).png

prateekmedia commented 1 year ago

It has IN for Indian region, scroll down

KalpanaChetan commented 1 year ago

Ok

Quackdoc commented 1 year ago

it's possibly related to https://github.com/TeamPiped/piped_dart/issues/11. able to replicate.

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: DioError [DioErrorType.other]: Deserializing '[title, My wife Was MURDERED, description, My wife Was MURDERED with Preston ...' to 'VideoInfo' failed due to: Deserializing '[{url: /watch?v=TYItqhOZ2E8, type: stream, title: ULTIMATE Try Not To LAUGH C...' to 'BuiltList<StreamItem>' failed due to: Deserializing '[url, /watch?v=DFP5LE7vVsQ&playnext=1&list=RDCMUC70Dib4MvFfT1tU6MqeyHpQ, type...' to 'StreamItem' failed due to: Tried to construct class "StreamItem" with null field "duration". This is forbidden; to allow it, mark "duration" with @nullable.
#0      BuiltJsonSerializers._deserialize (package:built_value/src/built_json_serializers.dart:187:11)
#1      BuiltJsonSerializers.deserialize (package:built_value/src/built_json_serializers.dart:124:18)
#2      UnauthenticatedApi.streamInfo (package:piped_api/src/api/unauthenticated_api.dart:782:36)
<asynchronous suspension>
#3      PipedService.getVideoData (package:pstube/foundation/services/piped_service.dart:72:19)
<asynchronous suspension>
#4      VideosChangeNotifier.addVideoUrl (package:pstube/states/videos/videos_change_notifier.dart:33:23)
<asynchronous suspension>

Source stack:
#0      BuiltJsonSerializers._deserialize (package:built_value/src/built_json_serializers.dart:187:11)
#1      BuiltJsonSerializers.deserialize (package:built_value/src/built_json_serializers.dart:124:18)
#2      UnauthenticatedApi.streamInfo (package:piped_api/src/api/unauthenticated_api.dart:782:36)
<asynchronous suspension>
#3      PipedService.getVideoData (package:pstube/foundation/services/piped_service.dart:72:19)
<asynchronous suspension>
#4      VideosChangeNotifier.addVideoUrl (package:pstube/states/videos/videos_change_notifier.dart:33:23)
<asynchronous suspension>

#0      UnauthenticatedApi.streamInfo (package:piped_api/src/api/unauthenticated_api.dart:788:7)
<asynchronous suspension>
#1      PipedService.getVideoData (package:pstube/foundation/services/piped_service.dart:72:19)
<asynchronous suspension>
#2      VideosChangeNotifier.addVideoUrl (package:pstube/states/videos/videos_change_notifier.dart:33:23)
<asynchronous suspension>

EDIT: It is consistently duration is null issues after about testing 10 broken videos. however different servers sometimes pose videos that didn't cause the issue but now do. and the issue is consistent on the videos when not changing server