Reply
Visitor
marco
Posts: 2
Registered: ‎02-06-2009
0 Kudos
Accepted Solution

Chenge video title

Hello,

I'm looking for a way to change the video title trought AcrionScript.

 

I'm able to retrive the title using "videoPlayer.getCurrentVideo().displayName" variable, but its sseems that "displayName" is a read only variable.

 

There is any way to change it dinamically?

 

Thanks

Moderator
BC-Erika
Posts: 185
Registered: ‎12-09-2008
0 Kudos

Re: Chenge video title

Hi Marco,

 

There's no way to change the actual video's name through ActionScript, you'd need to interact with the database - using the Media API, the Media Manager, or Batch Upload to actually alter the value.

 

If you're just trying to change what displays run-time, I haven't tried this before but you might be able to figure a way to do it using a custom template and your own code. In our templates, the Title shown is bound to the displayName value:

 

<TitleLabel  width="160" height="40" 
text="{videoPlayer.selectedItem.displayName}" type="title" />

 

http://help.brightcove.com/developer/docs/playerapi/beml-data.cfm

 

I'm not sure how exactly it could be done, but removing this binding and setting the value yourself might be possible? I hope this helps give you some ideas.

 

Erika

Brightcove Team
BC-JHuebner
Posts: 109
Registered: ‎01-26-2009
0 Kudos

Re: Chenge video title

Marco,

 

If you create a custom template you can bind the displayed title in the player to a different variable.

Please see our help page on Data Binding in BEML:

http://help.brightcove.com/developer/docs/playerapi/beml-data.cfm

Visitor
marco
Posts: 2
Registered: ‎02-06-2009
0 Kudos

Re: Chenge video title

Thanks! :smileyhappy: