Skip to content

Video playback repeats the first second. #33

@bluenell99

Description

@bluenell99

Hello, I've recently purchased the Android package to use on our Fire TV devices as Unity's built in player proved too temperamental. It's working almost perfectly on the devices however I've noticed two specific issues:

  1. Despite "autoplay" "loop playback" and "auto transition" are set to FALSE, the videos seem to loop back to the start and play a second or so before the EventPlaybackStop event function is called. This only appears to happen when on the Fire TV device.

The implementation for this seems fairly simple, where I'm simply invoking an onVideoFinished event action when the EventPlaybackStopped function is called for my external systems to listen to. but the EventPlaybackStopped function is called after it has done this small re-loop.

  1. Despite starting the video after the EventPlaybackReady event function is called, I am noticing that the video starts with a second or so of black before the video actually starts playing.

As for the way I've implemented:

I first call my own function SetURL() which clears the active streams, and creates a new stream and video content via the AddStream() and AddVideoContent() functions. From my understanding, this should then start preparing/buffering the video.

Then the EventPlaybackReady function is called, to which I fire my own onVideoPrepared; event which my external systems subscribe to;

Finally, these systems call a "StartPlayback" function where Play() function on the HISPlayerManager is called.

I appreciate that the Fire TV devices are an odd platform to target, so I was wondering if there's any advice how I might stop this odd looping behaviour and black screens from happening. I rely on these events for the flow of the application where videos need to start and end cleanly before transitioning to various UI screens.

  • HISPlayer Unity Video Player SDK version: 4.9.1
  • Unity version: 6000.0.3f1
  • Operating system (OS): (In editor, windows 11, Android Device: Fire OS Android v11 API 30

Any advice would be greatly appreciated,
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions