Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

YouTube timestamps

Like (0) ShareShare
ReportReport
Posted on 5 Jul 2020 23:50:38 by 12

Hey team,

 

In my app, I have a gallery containing data sourced from an excel file.

 

One column contains a unique YouTube URL including a timestamp, field name "VideoTimestamp".

 

In my Video control, I have the set the Media property to "Gallery1.Selected.VideoTimestamp". I also have a text input with its Text property set to "Gallery1.Selected.VideoTimestamp".

 

When I click on the gallery item, the text input is changing (to reflect the correct URL) however the embedded YouTube video is not changing to the correct timestamps (its sitting at a "last played" spot in the video).

 

I want the video to go to the timestamp as determined from the gallery.

 

All video settings are set to default settings.

 

Has anyone got any tips?

  • Michal Z.  Profile Picture
    147 on 27 Feb 2021 at 19:55:32
    Re: YouTube timestamps

    Found it - I have used a variable in the Video.StartTime and then by updating this variable got the result I needed. 

    Couldn't found this way anywhere. Maybe it was obvious but not for me 🙂

  • Michal Z.  Profile Picture
    147 on 27 Feb 2021 at 19:37:37
    Re: YouTube timestamps

    Hi @v-bofeng-msft 

    How did you manage to set the StartTime of the video?

    I cannot do this. When I create a button and trying to set "OnSelect" referring to the Video control, I can only set Start but not StartTime property. 

    Michal_0-1614454481286.png

     

    /Mike

     

  • DessiBroughton Profile Picture
    12 on 08 Jul 2020 at 09:17:07
    Re: YouTube timestamps

    Thanks heaps Bof, worked a treat.

     

    I had the timestamp in the Video URL  - which was totally unnecessary. All I needed to do was point the Start property at the time.

     

    Legend!

  • Verified answer
    v-bofeng-msft Profile Picture
    on 06 Jul 2020 at 02:49:57
    Re: YouTube timestamps

    Hi @DessiBroughton :

    Could you tell me what VideoTimestamp's data type is?Text or number?

    I made a test but did not encounted the problem you mentioned.

    1\set the gallery(Gallery2)'s item's property to :

     

    Table({VideoTimestamp:200},{VideoTimestamp:300},{VideoTimestamp:400},{VideoTimestamp:500})

     

    2\set the video control's StartTime property to:

     

    Gallery2.Selected.VideoTimestamp

     

    40.gif

    I suggest you pay attention to a few aspects:

    • The parameter of the StartTime attribute should be a number.
    • The parameter of the StartTime attribute represents that the video starts playing from the x second.

    Best Regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 394 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 193

#3
stampcoin Profile Picture

stampcoin 149

Overall leaderboard
Loading started