05-06-2009 11:28 AM
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
Solved! Go to Solution.
05-20-2009 03:50 PM
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/playerap
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
05-20-2009 03:56 PM
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/playerap
05-21-2009 04:46 AM
Brightcove Inc., a leading global provider of cloud content services, provides a family of products used to publish and distribute the world's professional digital media. The company's products include Brightcove Video Cloud, the market-leading online video platform, and Brightcove App Cloud, the pioneering content app platform. Together, more than 4,200 customers in 50 countries rely on Brightcove's cloud content services to build and operate exceptional media experiences across PCs, smartphones, tablets and connected TVs.
Brightcove Inc.
© 2012 Brightcove Inc.
