• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Get time when play a stream

Guest
May 15, 2012 May 15, 2012

Copy link to clipboard

Copied

Hi

I'm using method play() of Stream to play list file. How do I get current time of video playing ? I try Stream.time but it return total time of Stream.

Views

956

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , May 15, 2012 May 15, 2012

I think you can process the approx time using watch on

Stream.onPlayStatus (http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e42SSASLR.html#WSba58fdee7d6ee05f-3e4c639a126965313a2-8000) which will trigger with NetStream.Play.Switch when stream switches. Find Stream.time at that time ( say startTime of current video).

Find Stream.time of playlist (say total time).

Current video play time = total stream time - start time of current video.

Votes

Translate

Translate
Adobe Employee ,
May 15, 2012 May 15, 2012

Copy link to clipboard

Copied

I think you can process the approx time using watch on

Stream.onPlayStatus (http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e42SSASLR....) which will trigger with NetStream.Play.Switch when stream switches. Find Stream.time at that time ( say startTime of current video).

Find Stream.time of playlist (say total time).

Current video play time = total stream time - start time of current video.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 16, 2012 May 16, 2012

Copy link to clipboard

Copied

LATEST

Yes, I do it success. thanks you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines