cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DessiBroughton
Frequent Visitor

YouTube timestamps

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?

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

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

View solution in original post

4 REPLIES 4
v-bofeng-msft
Community Support
Community Support

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

View solution in original post

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!

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

 

Michal
Kudo Collector
Kudo Collector

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 🙂

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,387)